mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Use lowercase tuple where possible (#6170)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from typing import Any, Callable, Tuple
|
||||
from typing import Any, Callable
|
||||
|
||||
class JSONDecodeError(ValueError):
|
||||
msg: str
|
||||
@@ -14,7 +14,7 @@ class JSONDecoder:
|
||||
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,
|
||||
*,
|
||||
@@ -23,7 +23,7 @@ class JSONDecoder:
|
||||
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]: ...
|
||||
def raw_decode(self, s: str, idx: int = ...) -> tuple[Any, int]: ...
|
||||
|
||||
Reference in New Issue
Block a user