mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-23 19:41:51 +08:00
Big diff: use lower-case list and dict (#5888)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from typing import Any, Callable, Dict, List, Tuple
|
||||
from typing import Any, Callable, Tuple
|
||||
|
||||
class JSONDecodeError(ValueError):
|
||||
msg: str
|
||||
@@ -9,21 +9,21 @@ class JSONDecodeError(ValueError):
|
||||
def __init__(self, msg: str, doc: str, pos: int) -> None: ...
|
||||
|
||||
class JSONDecoder:
|
||||
object_hook: Callable[[Dict[str, Any]], Any]
|
||||
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]
|
||||
object_pairs_hook: Callable[[list[Tuple[str, Any]]], Any]
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
object_hook: Callable[[Dict[str, Any]], Any] | None = ...,
|
||||
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_pairs_hook: Callable[[list[Tuple[str, Any]]], Any] | 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]: ...
|
||||
|
||||
Reference in New Issue
Block a user