mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
stdlib: add argument default values (#9501)
This commit is contained in:
@@ -21,12 +21,12 @@ class JSONDecoder:
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
object_hook: Callable[[dict[str, Any]], Any] | None = ...,
|
||||
parse_float: Callable[[str], Any] | None = ...,
|
||||
parse_int: Callable[[str], Any] | None = ...,
|
||||
parse_constant: Callable[[str], Any] | None = ...,
|
||||
strict: bool = ...,
|
||||
object_pairs_hook: Callable[[list[tuple[str, Any]]], Any] | None = ...,
|
||||
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 = ...) -> tuple[Any, int]: ...
|
||||
def raw_decode(self, s: str, idx: int = 0) -> tuple[Any, int]: ...
|
||||
|
||||
Reference in New Issue
Block a user