FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
typeshed/stdlib/_json.pyi at main · python/typeshed · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
python
/
typeshed
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
2.1k
Star
5.1k
Code
Issues
212
Pull requests
155
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
typeshed
/
stdlib
/
_json.pyi
Copy path
More file actions
More file actions
Latest commit
History
History
History
59 lines (54 loc) · 1.7 KB
Breadcrumbs
typeshed
/
stdlib
/
_json.pyi
Copy path
File metadata and controls
59 lines (54 loc) · 1.7 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
import
sys
from
collections
.
abc
import
Callable
from
typing
import
Any
,
final
from
typing_extensions
import
Self
@
final
class
make_encoder
:
@
property
def
sort_keys
(
self
)
->
bool
: ...
@
property
def
skipkeys
(
self
)
->
bool
: ...
@
property
def
key_separator
(
self
)
->
str
: ...
@
property
def
indent
(
self
)
->
str
|
None
: ...
@
property
def
markers
(
self
)
->
dict
[
int
,
Any
]
|
None
: ...
@
property
def
default
(
self
)
->
Callable
[[
Any
],
Any
]: ...
@
property
def
encoder
(
self
)
->
Callable
[[
str
],
str
]: ...
@
property
def
item_separator
(
self
)
->
str
: ...
def
__new__
(
cls
,
markers
:
dict
[
int
,
Any
]
|
None
,
default
:
Callable
[[
Any
],
Any
],
encoder
:
Callable
[[
str
],
str
],
indent
:
str
|
None
,
key_separator
:
str
,
item_separator
:
str
,
sort_keys
:
bool
,
skipkeys
:
bool
,
allow_nan
:
bool
,
)
->
Self
: ...
def
__call__
(
self
,
obj
:
object
,
_current_indent_level
:
int
)
->
Any
: ...
@
final
class
make_scanner
:
if
sys
.
version_info
>=
(
3
,
15
):
array_hook
:
Any
object_hook
:
Any
object_pairs_hook
:
Any
parse_int
:
Any
parse_constant
:
Any
parse_float
:
Any
strict
:
bool
# TODO: 'context' needs the attrs above (ducktype), but not __call__.
def
__new__
(
cls
,
context
:
make_scanner
)
->
Self
: ...
def
__call__
(
self
,
string
:
str
,
index
:
int
)
->
tuple
[
Any
,
int
]: ...
def
encode_basestring
(
s
:
str
,
/
)
->
str
: ...
def
encode_basestring_ascii
(
s
:
str
,
/
)
->
str
: ...
if
sys
.
version_info
>=
(
3
,
15
):
def
scanstring
(
pystr
:
str
,
end
:
int
,
strict
:
bool
=
True
,
/
)
->
tuple
[
str
,
int
]: ...
else
:
def
scanstring
(
string
:
str
,
end
:
int
,
strict
:
bool
=
True
)
->
tuple
[
str
,
int
]: ...
Back
|
FazBrowse Home
|
New Git URL