mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Use lowercase type everywhere (#6853)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
from _typeshed import SupportsRead
|
||||
from typing import IO, Any, Callable, Type
|
||||
from typing import IO, Any, Callable
|
||||
|
||||
from .decoder import JSONDecodeError as JSONDecodeError, JSONDecoder as JSONDecoder
|
||||
from .encoder import JSONEncoder as JSONEncoder
|
||||
@@ -11,7 +11,7 @@ def dumps(
|
||||
ensure_ascii: bool = ...,
|
||||
check_circular: bool = ...,
|
||||
allow_nan: bool = ...,
|
||||
cls: Type[JSONEncoder] | None = ...,
|
||||
cls: type[JSONEncoder] | None = ...,
|
||||
indent: None | int | str = ...,
|
||||
separators: tuple[str, str] | None = ...,
|
||||
default: Callable[[Any], Any] | None = ...,
|
||||
@@ -26,7 +26,7 @@ def dump(
|
||||
ensure_ascii: bool = ...,
|
||||
check_circular: bool = ...,
|
||||
allow_nan: bool = ...,
|
||||
cls: Type[JSONEncoder] | None = ...,
|
||||
cls: type[JSONEncoder] | None = ...,
|
||||
indent: None | int | str = ...,
|
||||
separators: tuple[str, str] | None = ...,
|
||||
default: Callable[[Any], Any] | None = ...,
|
||||
@@ -36,7 +36,7 @@ def dump(
|
||||
def loads(
|
||||
s: str | bytes,
|
||||
*,
|
||||
cls: Type[JSONDecoder] | None = ...,
|
||||
cls: type[JSONDecoder] | None = ...,
|
||||
object_hook: Callable[[dict[Any, Any]], Any] | None = ...,
|
||||
parse_float: Callable[[str], Any] | None = ...,
|
||||
parse_int: Callable[[str], Any] | None = ...,
|
||||
@@ -47,7 +47,7 @@ def loads(
|
||||
def load(
|
||||
fp: SupportsRead[str | bytes],
|
||||
*,
|
||||
cls: Type[JSONDecoder] | None = ...,
|
||||
cls: type[JSONDecoder] | None = ...,
|
||||
object_hook: Callable[[dict[Any, Any]], Any] | None = ...,
|
||||
parse_float: Callable[[str], Any] | None = ...,
|
||||
parse_int: Callable[[str], Any] | None = ...,
|
||||
|
||||
Reference in New Issue
Block a user