FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
typeshed/stdlib/json/decoder.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
158
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
/
decoder.pyi
Copy path
More file actions
More file actions
Latest commit
History
History
History
50 lines (45 loc) · 1.78 KB
Breadcrumbs
typeshed
/
stdlib
/
json
/
decoder.pyi
Copy path
File metadata and controls
50 lines (45 loc) · 1.78 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
import
sys
from
collections
.
abc
import
Callable
from
typing
import
Any
__all__
=
[
"JSONDecoder"
,
"JSONDecodeError"
]
class
JSONDecodeError
(
ValueError
):
msg
:
str
doc
:
str
pos
:
int
lineno
:
int
colno
:
int
def
__init__
(
self
,
msg
:
str
,
doc
:
str
,
pos
:
int
)
->
None
: ...
class
JSONDecoder
:
if
sys
.
version_info
>=
(
3
,
15
):
array_hook
:
Callable
[[
list
[
Any
]],
Any
]
|
None
object_hook
:
Callable
[[
dict
[
str
,
Any
]],
Any
]
parse_float
:
Callable
[[
str
],
Any
]
parse_int
:
Callable
[[
str
],
Any
]
parse_constant
:
Callable
[[
str
],
Any
]
strict
:
bool
object_pairs_hook
:
Callable
[[
list
[
tuple
[
str
,
Any
]]],
Any
]
if
sys
.
version_info
>=
(
3
,
15
):
def
__init__
(
self
,
*
,
object_hook
:
Callable
[[
dict
[
str
,
Any
]],
Any
]
|
None
=
None
,
parse_float
:
Callable
[[
str
],
Any
]
|
None
=
None
,
parse_int
:
Callable
[[
str
],
Any
]
|
None
=
None
,
parse_constant
:
Callable
[[
str
],
Any
]
|
None
=
None
,
strict
:
bool
=
True
,
object_pairs_hook
:
Callable
[[
list
[
tuple
[
str
,
Any
]]],
Any
]
|
None
=
None
,
array_hook
:
Callable
[[
list
[
Any
]],
Any
]
|
None
=
None
,
)
->
None
: ...
else
:
def
__init__
(
self
,
*
,
object_hook
:
Callable
[[
dict
[
str
,
Any
]],
Any
]
|
None
=
None
,
parse_float
:
Callable
[[
str
],
Any
]
|
None
=
None
,
parse_int
:
Callable
[[
str
],
Any
]
|
None
=
None
,
parse_constant
:
Callable
[[
str
],
Any
]
|
None
=
None
,
strict
:
bool
=
True
,
object_pairs_hook
:
Callable
[[
list
[
tuple
[
str
,
Any
]]],
Any
]
|
None
=
None
,
)
->
None
: ...
def
decode
(
self
,
s
:
str
,
_w
:
Callable
[...,
Any
]
=
...)
->
Any
: ...
# _w is undocumented
def
raw_decode
(
self
,
s
:
str
,
idx
:
int
=
0
)
->
tuple
[
Any
,
int
]: ...
Back
|
FazBrowse Home
|
New Git URL