mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-08-12 02:42:29 +08:00
Add __all__ (#13704)
This commit is contained in:
@@ -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",
|
||||
]
|
||||
|
||||
@@ -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"]
|
||||
|
||||
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user