Skip to content

Commit 6087a97

Browse files
committed
.
1 parent aae4e27 commit 6087a97

File tree

1 file changed

+23
-4
lines changed

1 file changed

+23
-4
lines changed

stdlib/json/decoder.pyi

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from collections.abc import Callable
22
from typing import Any
3+
from _typeshed import Incomplete
34

45
__all__ = ["JSONDecoder", "JSONDecodeError"]
56

@@ -11,17 +12,35 @@ class JSONDecodeError(ValueError):
1112
colno: int
1213
def __init__(self, msg: str, doc: str, pos: int) -> None: ...
1314

15+
def JSONObject(
16+
s_and_end: tuple[str, int],
17+
strict: bool,
18+
scan_once: Callable[[Incomplete], Incomplete],
19+
object_hook: Callable[[Incomplete], Incomplete] | None,
20+
object_pairs_hook: Callable[[Incomplete], Incomplete] | None,
21+
memo: dict[Incomplete, Incomplete] | None = None,
22+
_w: Callable[[str, int], Incomplete] = ...,
23+
_ws: str = ...
24+
) -> tuple[Incomplete, int]: ...
25+
26+
def JSONArray(
27+
s_and_end: tuple[str, int],
28+
scan_once: Callable[[Incomplete], Incomplete],
29+
_w: Callable[[str, int], Incomplete] = ...,
30+
_ws: str = ...
31+
) -> tuple[list[Incomplete], int]: ...
32+
1433
class JSONDecoder:
1534
object_hook: Callable[[dict[str, Any]], Any]
1635
parse_float: Callable[[str], Any]
1736
parse_int: Callable[[str], Any]
1837
parse_constant: Callable[[str], Any]
1938
strict: bool
2039
object_pairs_hook: Callable[[list[tuple[str, Any]]], Any]
21-
parse_object: Callable[..., Any]
22-
parse_array: Callable[..., Any]
23-
parse_string: Callable[..., Any]
24-
memo: dict[Any, Any]
40+
parse_object: Callable[[Incomplete], Incomplete]
41+
parse_array: Callable[[Incomplete], Incomplete]
42+
parse_string: Callable[[Incomplete], Incomplete]
43+
memo: dict[Incomplete, Incomplete]
2544
def __init__(
2645
self,
2746
*,

0 commit comments

Comments
 (0)