Use lowercase tuple where possible (#6170)

This commit is contained in:
Akuli
2021-10-15 00:18:19 +00:00
committed by GitHub
parent 5f386b0575
commit 994b69ef8f
242 changed files with 1212 additions and 1224 deletions

View File

@@ -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]: ...