Add __all__ (#13704)

This commit is contained in:
Semyon Moroz
2025-03-25 14:09:32 +01:00
committed by GitHub
parent 4a750cef35
commit 9234985c3d
54 changed files with 311 additions and 63 deletions
+14
View File
@@ -1,4 +1,5 @@
from _typeshed import SupportsRichComparison
from collections import OrderedDict
from collections.abc import Callable
from typing import IO, Any, TypeVar, overload
from typing_extensions import TypeAlias
@@ -166,3 +167,16 @@ def load(
allow_nan: bool = ...,
) -> Any: ...
def simple_first(kv: tuple[_T, object]) -> tuple[bool, _T]: ...
__all__ = [
"dump",
"dumps",
"load",
"loads",
"JSONDecoder",
"JSONDecodeError",
"JSONEncoder",
"OrderedDict",
"simple_first",
"RawJSON",
]
+2
View File
@@ -28,3 +28,5 @@ class JSONDecoder:
def raw_decode(
self, s: str, idx: int = ..., _w: Callable[[str, int], Match[str]] = ..., _PY3: Literal[True] = ...
) -> tuple[Any, int]: ...
__all__ = ["JSONDecoder"]
+2
View File
@@ -13,3 +13,5 @@ class JSONDecodeError(ValueError):
endcolno: int | None
def make_scanner(context: JSONDecoder) -> Callable[[str, int], tuple[bool, int]]: ...
__all__ = ["make_scanner", "JSONDecodeError"]