mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-04 12:35:49 +08:00
Add __all__ (#13704)
This commit is contained in:
@@ -1,17 +1,3 @@
|
||||
# TODO: missing from stub
|
||||
yaml.composer.__all__
|
||||
yaml.constructor.__all__
|
||||
yaml.dumper.__all__
|
||||
yaml.emitter.__all__
|
||||
yaml.error.__all__
|
||||
yaml.loader.__all__
|
||||
yaml.parser.__all__
|
||||
yaml.reader.__all__
|
||||
yaml.representer.__all__
|
||||
yaml.resolver.__all__
|
||||
yaml.scanner.__all__
|
||||
yaml.serializer.__all__
|
||||
|
||||
# yaml._yaml is for backwards compatibility so none of it matters anyway
|
||||
yaml._yaml.__test__
|
||||
|
||||
|
||||
@@ -16,3 +16,5 @@ class Composer:
|
||||
def compose_scalar_node(self, anchor: dict[Any, Node]) -> ScalarNode: ...
|
||||
def compose_sequence_node(self, anchor: dict[Any, Node]) -> SequenceNode: ...
|
||||
def compose_mapping_node(self, anchor: dict[Any, Node]) -> MappingNode: ...
|
||||
|
||||
__all__ = ["Composer", "ComposerError"]
|
||||
|
||||
@@ -101,3 +101,5 @@ class Constructor(SafeConstructor):
|
||||
def construct_python_object(self, suffix, node): ...
|
||||
def construct_python_object_apply(self, suffix, node, newobj=False): ...
|
||||
def construct_python_object_new(self, suffix, node): ...
|
||||
|
||||
__all__ = ["BaseConstructor", "SafeConstructor", "FullConstructor", "UnsafeConstructor", "Constructor", "ConstructorError"]
|
||||
|
||||
@@ -69,3 +69,5 @@ class Dumper(Emitter, Serializer, Representer, Resolver):
|
||||
tags: Mapping[str, str] | None = None,
|
||||
sort_keys: bool = True,
|
||||
) -> None: ...
|
||||
|
||||
__all__ = ["BaseDumper", "SafeDumper", "Dumper"]
|
||||
|
||||
@@ -126,3 +126,5 @@ class Emitter:
|
||||
def write_folded(self, text: str) -> None: ...
|
||||
def write_literal(self, text: str) -> None: ...
|
||||
def write_plain(self, text: str, split: bool = ...) -> None: ...
|
||||
|
||||
__all__ = ["Emitter", "EmitterError"]
|
||||
|
||||
@@ -24,3 +24,5 @@ class MarkedYAMLError(YAMLError):
|
||||
problem_mark: Mark | None = None,
|
||||
note: str | None = None,
|
||||
) -> None: ...
|
||||
|
||||
__all__ = ["Mark", "YAMLError", "MarkedYAMLError"]
|
||||
|
||||
@@ -25,3 +25,5 @@ class Loader(Reader, Scanner, Parser, Composer, Constructor, Resolver):
|
||||
|
||||
class UnsafeLoader(Reader, Scanner, Parser, Composer, Constructor, Resolver):
|
||||
def __init__(self, stream: _ReadStream) -> None: ...
|
||||
|
||||
__all__ = ["BaseLoader", "FullLoader", "SafeLoader", "Loader", "UnsafeLoader"]
|
||||
|
||||
@@ -43,3 +43,5 @@ class Parser:
|
||||
def parse_flow_mapping_value(self): ...
|
||||
def parse_flow_mapping_empty_value(self): ...
|
||||
def process_empty_scalar(self, mark): ...
|
||||
|
||||
__all__ = ["Parser", "ParserError"]
|
||||
|
||||
@@ -37,3 +37,5 @@ class Reader:
|
||||
def check_printable(self, data): ...
|
||||
def update(self, length): ...
|
||||
def update_raw(self, size=4096): ...
|
||||
|
||||
__all__ = ["Reader", "ReaderError"]
|
||||
|
||||
@@ -59,3 +59,5 @@ class Representer(SafeRepresenter):
|
||||
def represent_module(self, data: ModuleType) -> ScalarNode: ...
|
||||
def represent_object(self, data) -> SequenceNode | MappingNode: ...
|
||||
def represent_ordered_dict(self, data: Mapping[Any, Any]) -> SequenceNode: ...
|
||||
|
||||
__all__ = ["BaseRepresenter", "SafeRepresenter", "Representer", "RepresenterError"]
|
||||
|
||||
@@ -23,3 +23,5 @@ class BaseResolver:
|
||||
def resolve(self, kind, value, implicit): ...
|
||||
|
||||
class Resolver(BaseResolver): ...
|
||||
|
||||
__all__ = ["BaseResolver", "Resolver"]
|
||||
|
||||
@@ -95,3 +95,5 @@ class Scanner:
|
||||
def scan_tag_uri(self, name, start_mark): ...
|
||||
def scan_uri_escapes(self, name, start_mark): ...
|
||||
def scan_line_break(self): ...
|
||||
|
||||
__all__ = ["Scanner", "ScannerError"]
|
||||
|
||||
@@ -23,3 +23,5 @@ class Serializer:
|
||||
def anchor_node(self, node): ...
|
||||
def generate_anchor(self, node): ...
|
||||
def serialize_node(self, node, parent, index): ...
|
||||
|
||||
__all__ = ["Serializer", "SerializerError"]
|
||||
|
||||
@@ -1,8 +1,3 @@
|
||||
# TODO: missing from stub
|
||||
aiofiles.__all__
|
||||
aiofiles.tempfile.__all__
|
||||
aiofiles.threadpool.__all__
|
||||
|
||||
# These all delegate using *args,**kwargs, but stubs use signature of
|
||||
# method they are being delegated to.
|
||||
aiofiles.threadpool.binary.AsyncBufferedIOBase.close
|
||||
|
||||
@@ -8,3 +8,5 @@ from .threadpool import (
|
||||
stdout as stdout,
|
||||
stdout_bytes as stdout_bytes,
|
||||
)
|
||||
|
||||
__all__ = ["open", "tempfile", "stdin", "stdout", "stderr", "stdin_bytes", "stdout_bytes", "stderr_bytes"]
|
||||
|
||||
@@ -321,3 +321,5 @@ def TemporaryDirectory(
|
||||
|
||||
class AiofilesContextManagerTempDir(AiofilesContextManager[AsyncTemporaryDirectory]):
|
||||
async def __aenter__(self) -> str: ... # type: ignore[override]
|
||||
|
||||
__all__ = ["NamedTemporaryFile", "TemporaryFile", "SpooledTemporaryFile", "TemporaryDirectory"]
|
||||
|
||||
@@ -104,3 +104,5 @@ stderr: AsyncTextIndirectIOWrapper
|
||||
stdin_bytes: AsyncIndirectBufferedIOBase
|
||||
stdout_bytes: AsyncIndirectBufferedIOBase
|
||||
stderr_bytes: AsyncIndirectBufferedIOBase
|
||||
|
||||
__all__ = ("open", "stdin", "stdout", "stderr", "stdin_bytes", "stdout_bytes", "stderr_bytes")
|
||||
|
||||
@@ -1,19 +1,2 @@
|
||||
# TODO: missing from stub
|
||||
boltons.debugutils.__all__
|
||||
boltons.dictutils.__all__
|
||||
boltons.excutils.__all__
|
||||
boltons.fileutils.__all__
|
||||
boltons.formatutils.__all__
|
||||
boltons.gcutils.__all__
|
||||
boltons.jsonutils.__all__
|
||||
boltons.listutils.__all__
|
||||
boltons.namedutils.__all__
|
||||
boltons.pathutils.__all__
|
||||
boltons.queueutils.__all__
|
||||
boltons.setutils.__all__
|
||||
boltons.strutils.__all__
|
||||
boltons.tableutils.__all__
|
||||
boltons.tbutils.__all__
|
||||
|
||||
boltons.funcutils.CachedInstancePartial.__partialmethod__
|
||||
boltons.funcutils.InstancePartial.__partialmethod__
|
||||
|
||||
@@ -6,3 +6,5 @@ def pdb_on_exception(limit: int = 100) -> None: ...
|
||||
def wrap_trace(
|
||||
obj, hook: Callable[..., Any] = ..., which: str | None = None, events: str | None = None, label: str | None = None
|
||||
): ...
|
||||
|
||||
__all__ = ["pdb_on_signal", "pdb_on_exception", "wrap_trace"]
|
||||
|
||||
@@ -99,3 +99,5 @@ class FrozenDict(dict[_KT, _VT]):
|
||||
def popitem(self, *a, **kw) -> NoReturn: ...
|
||||
def setdefault(self, *a, **kw) -> NoReturn: ...
|
||||
def clear(self, *a, **kw) -> NoReturn: ...
|
||||
|
||||
__all__ = ["MultiDict", "OMD", "OrderedMultiDict", "OneToOne", "ManyToMany", "subdict", "FrozenDict"]
|
||||
|
||||
@@ -7,3 +7,5 @@ class ExceptionCauseMixin(Exception):
|
||||
def get_str(self) -> str: ...
|
||||
|
||||
class MathError(ExceptionCauseMixin, ValueError): ...
|
||||
|
||||
__all__ = ["ExceptionCauseMixin"]
|
||||
|
||||
@@ -91,3 +91,5 @@ class DummyFile:
|
||||
def __next__(self) -> NoReturn: ...
|
||||
def __enter__(self) -> None: ...
|
||||
def __exit__(self, exc_type, exc_val, exc_tb) -> None: ...
|
||||
|
||||
__all__ = ["mkdir_p", "atomic_save", "AtomicSaver", "FilePerms", "iter_find_files", "copytree"]
|
||||
|
||||
@@ -35,3 +35,12 @@ class DeferredValue(Generic[_T]):
|
||||
def __float__(self) -> float: ...
|
||||
def __unicode__(self) -> str: ...
|
||||
def __format__(self, fmt: str) -> str: ...
|
||||
|
||||
__all__ = [
|
||||
"DeferredValue",
|
||||
"get_format_args",
|
||||
"tokenize_format_str",
|
||||
"construct_format_field_str",
|
||||
"infer_positional_format_args",
|
||||
"BaseFormatField",
|
||||
]
|
||||
|
||||
@@ -12,3 +12,5 @@ class GCToggler:
|
||||
|
||||
toggle_gc: GCToggler
|
||||
toggle_gc_postcollect: GCToggler
|
||||
|
||||
__all__ = ["get_all", "GCToggler", "toggle_gc", "toggle_gc_postcollect"]
|
||||
|
||||
@@ -23,3 +23,5 @@ class JSONLIterator:
|
||||
def __iter__(self) -> Self: ...
|
||||
def next(self) -> Any: ...
|
||||
__next__ = next
|
||||
|
||||
__all__ = ["JSONLIterator", "reverse_iter_lines"]
|
||||
|
||||
@@ -28,3 +28,5 @@ BList: TypeAlias = BarrelList[_T]
|
||||
class SplayList(list[_T]):
|
||||
def shift(self, item_index: int, dest_index: int = 0) -> None: ...
|
||||
def swap(self, item_index: SupportsIndex, dest_index: SupportsIndex) -> None: ...
|
||||
|
||||
__all__ = ["BList", "BarrelList"]
|
||||
|
||||
@@ -2,3 +2,5 @@ from collections.abc import Iterable
|
||||
|
||||
def namedtuple(typename: str, field_names: str | Iterable[str], verbose: bool = False, rename: bool = False): ...
|
||||
def namedlist(typename: str, field_names: str | Iterable[str], verbose: bool = False, rename: bool = False): ...
|
||||
|
||||
__all__ = ["namedlist", "namedtuple"]
|
||||
|
||||
@@ -11,3 +11,5 @@ def augpath(
|
||||
) -> str: ...
|
||||
def shrinkuser(path: StrPath, home: str = "~") -> str: ...
|
||||
def expandpath(path: StrPath) -> str: ...
|
||||
|
||||
__all__ = ["augpath", "shrinkuser", "expandpath"]
|
||||
|
||||
@@ -12,3 +12,5 @@ class HeapPriorityQueue(BasePriorityQueue): ...
|
||||
class SortedPriorityQueue(BasePriorityQueue): ...
|
||||
|
||||
PriorityQueue: TypeAlias = SortedPriorityQueue
|
||||
|
||||
__all__ = ["PriorityQueue", "BasePriorityQueue", "HeapPriorityQueue", "SortedPriorityQueue"]
|
||||
|
||||
@@ -97,3 +97,5 @@ class _ComplementSet:
|
||||
def __len__(self) -> int: ...
|
||||
def __iter__(self) -> Iterator[Any]: ...
|
||||
def __bool__(self) -> bool: ...
|
||||
|
||||
__all__ = ["IndexedSet", "complement"]
|
||||
|
||||
@@ -64,3 +64,38 @@ class MultiReplace:
|
||||
def multi_replace(text: str, sub_map: dict[str, str], **kwargs) -> str: ...
|
||||
def unwrap_text(text: str, ending: str | None = "\n\n") -> str: ...
|
||||
def removeprefix(text: str, prefix: str) -> str: ...
|
||||
|
||||
__all__ = [
|
||||
"camel2under",
|
||||
"under2camel",
|
||||
"slugify",
|
||||
"split_punct_ws",
|
||||
"unit_len",
|
||||
"ordinalize",
|
||||
"cardinalize",
|
||||
"pluralize",
|
||||
"singularize",
|
||||
"asciify",
|
||||
"is_ascii",
|
||||
"is_uuid",
|
||||
"html2text",
|
||||
"strip_ansi",
|
||||
"bytes2human",
|
||||
"find_hashtags",
|
||||
"a10n",
|
||||
"gzip_bytes",
|
||||
"gunzip_bytes",
|
||||
"iter_splitlines",
|
||||
"indent",
|
||||
"escape_shell_args",
|
||||
"args2cmd",
|
||||
"args2sh",
|
||||
"parse_int_list",
|
||||
"format_int_list",
|
||||
"complement_int_list",
|
||||
"int_ranges_from_int_list",
|
||||
"MultiReplace",
|
||||
"multi_replace",
|
||||
"unwrap_text",
|
||||
"removeprefix",
|
||||
]
|
||||
|
||||
@@ -61,3 +61,5 @@ class Table:
|
||||
): ...
|
||||
def get_cell_html(self, value): ...
|
||||
def to_text(self, with_headers: bool = True, maxlen: Incomplete | None = None): ...
|
||||
|
||||
__all__ = ["Table"]
|
||||
|
||||
@@ -93,3 +93,14 @@ class ParsedException:
|
||||
def from_string(cls, tb_str: str) -> Self: ...
|
||||
|
||||
ParsedTB = ParsedException
|
||||
|
||||
__all__ = [
|
||||
"ExceptionInfo",
|
||||
"TracebackInfo",
|
||||
"Callpoint",
|
||||
"ContextualExceptionInfo",
|
||||
"ContextualTracebackInfo",
|
||||
"ContextualCallpoint",
|
||||
"print_exception",
|
||||
"ParsedException",
|
||||
]
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
# TODO: missing from stub
|
||||
consolemenu.__all__
|
||||
consolemenu.format.__all__
|
||||
consolemenu.items.__all__
|
||||
@@ -4,3 +4,14 @@ from .menu_formatter import MenuFormatBuilder as MenuFormatBuilder
|
||||
from .multiselect_menu import MultiSelectMenu as MultiSelectMenu
|
||||
from .prompt_utils import PromptUtils as PromptUtils
|
||||
from .selection_menu import SelectionMenu as SelectionMenu
|
||||
|
||||
__all__ = [
|
||||
"ConsoleMenu",
|
||||
"SelectionMenu",
|
||||
"MultiSelectMenu",
|
||||
"MenuFormatBuilder",
|
||||
"PromptUtils",
|
||||
"Screen",
|
||||
"items",
|
||||
"clear_terminal",
|
||||
]
|
||||
|
||||
@@ -12,3 +12,18 @@ from .menu_borders import (
|
||||
from .menu_margins import MenuMargins as MenuMargins
|
||||
from .menu_padding import MenuPadding as MenuPadding
|
||||
from .menu_style import MenuStyle as MenuStyle
|
||||
|
||||
__all__ = [
|
||||
"MenuBorderStyle",
|
||||
"MenuBorderStyleType",
|
||||
"MenuBorderStyleFactory",
|
||||
"MenuMargins",
|
||||
"MenuPadding",
|
||||
"MenuStyle",
|
||||
"AsciiBorderStyle",
|
||||
"LightBorderStyle",
|
||||
"HeavyBorderStyle",
|
||||
"DoubleLineBorderStyle",
|
||||
"DoubleLineOuterLightInnerBorderStyle",
|
||||
"HeavyOuterLightInnerBorderStyle",
|
||||
]
|
||||
|
||||
@@ -4,3 +4,5 @@ from .external_item import ExternalItem as ExternalItem
|
||||
from .function_item import FunctionItem as FunctionItem
|
||||
from .selection_item import SelectionItem as SelectionItem
|
||||
from .submenu_item import SubmenuItem as SubmenuItem
|
||||
|
||||
__all__ = ["CommandItem", "ExitItem", "ExternalItem", "FunctionItem", "MenuItem", "SelectionItem", "SubmenuItem"]
|
||||
|
||||
@@ -1,5 +1 @@
|
||||
# TODO: missing from stub
|
||||
MySQLdb.__all__
|
||||
MySQLdb.constants.__all__
|
||||
|
||||
MySQLdb.Connection
|
||||
|
||||
@@ -49,3 +49,47 @@ def Binary(x): ...
|
||||
def Connect(*args, **kwargs) -> Connection: ...
|
||||
|
||||
connect = Connect
|
||||
|
||||
__all__ = [
|
||||
"BINARY",
|
||||
"Binary",
|
||||
"Connect",
|
||||
"Connection",
|
||||
"DATE",
|
||||
"Date",
|
||||
"Time",
|
||||
"Timestamp",
|
||||
"DateFromTicks",
|
||||
"TimeFromTicks",
|
||||
"TimestampFromTicks",
|
||||
"DataError",
|
||||
"DatabaseError",
|
||||
"Error",
|
||||
"FIELD_TYPE",
|
||||
"IntegrityError",
|
||||
"InterfaceError",
|
||||
"InternalError",
|
||||
"MySQLError",
|
||||
"NUMBER",
|
||||
"NotSupportedError",
|
||||
"DBAPISet",
|
||||
"OperationalError",
|
||||
"ProgrammingError",
|
||||
"ROWID",
|
||||
"STRING",
|
||||
"TIME",
|
||||
"TIMESTAMP",
|
||||
"Warning",
|
||||
"apilevel",
|
||||
"connect",
|
||||
"connections",
|
||||
"constants",
|
||||
"converters",
|
||||
"cursors",
|
||||
"debug",
|
||||
"get_client_info",
|
||||
"paramstyle",
|
||||
"string_literal",
|
||||
"threadsafety",
|
||||
"version_info",
|
||||
]
|
||||
|
||||
@@ -1 +1,3 @@
|
||||
from . import CLIENT as CLIENT, CR as CR, ER as ER, FIELD_TYPE as FIELD_TYPE, FLAG as FLAG
|
||||
|
||||
__all__ = ["CR", "FIELD_TYPE", "CLIENT", "ER", "FLAG"]
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
# TODO: missing from stub
|
||||
serial.win32.__all__
|
||||
|
||||
# Error: failed to import
|
||||
# =======================
|
||||
serial.serialposix # Posix only
|
||||
|
||||
@@ -166,3 +166,88 @@ if sys.platform == "win32":
|
||||
OffsetHigh: _CField[Incomplete, Incomplete, Incomplete]
|
||||
|
||||
PVOID: TypeAlias = c_void_p
|
||||
|
||||
__all__ = [
|
||||
"GetLastError",
|
||||
"MS_CTS_ON",
|
||||
"FILE_ATTRIBUTE_NORMAL",
|
||||
"DTR_CONTROL_ENABLE",
|
||||
"_COMSTAT",
|
||||
"MS_RLSD_ON",
|
||||
"GetOverlappedResult",
|
||||
"SETXON",
|
||||
"PURGE_TXABORT",
|
||||
"PurgeComm",
|
||||
"N11_OVERLAPPED4DOLLAR_48E",
|
||||
"EV_RING",
|
||||
"ONESTOPBIT",
|
||||
"SETXOFF",
|
||||
"PURGE_RXABORT",
|
||||
"GetCommState",
|
||||
"RTS_CONTROL_ENABLE",
|
||||
"_DCB",
|
||||
"CreateEvent",
|
||||
"_COMMTIMEOUTS",
|
||||
"_SECURITY_ATTRIBUTES",
|
||||
"EV_DSR",
|
||||
"EV_PERR",
|
||||
"EV_RXFLAG",
|
||||
"OPEN_EXISTING",
|
||||
"DCB",
|
||||
"FILE_FLAG_OVERLAPPED",
|
||||
"EV_CTS",
|
||||
"SetupComm",
|
||||
"LPOVERLAPPED",
|
||||
"EV_TXEMPTY",
|
||||
"ClearCommBreak",
|
||||
"LPSECURITY_ATTRIBUTES",
|
||||
"SetCommBreak",
|
||||
"SetCommTimeouts",
|
||||
"COMMTIMEOUTS",
|
||||
"ODDPARITY",
|
||||
"EV_RLSD",
|
||||
"GetCommModemStatus",
|
||||
"EV_EVENT2",
|
||||
"PURGE_TXCLEAR",
|
||||
"EV_BREAK",
|
||||
"EVENPARITY",
|
||||
"LPCVOID",
|
||||
"COMSTAT",
|
||||
"ReadFile",
|
||||
"PVOID",
|
||||
"_OVERLAPPED",
|
||||
"WriteFile",
|
||||
"GetCommTimeouts",
|
||||
"ResetEvent",
|
||||
"EV_RXCHAR",
|
||||
"LPCOMSTAT",
|
||||
"ClearCommError",
|
||||
"ERROR_IO_PENDING",
|
||||
"EscapeCommFunction",
|
||||
"GENERIC_READ",
|
||||
"RTS_CONTROL_HANDSHAKE",
|
||||
"OVERLAPPED",
|
||||
"DTR_CONTROL_HANDSHAKE",
|
||||
"PURGE_RXCLEAR",
|
||||
"GENERIC_WRITE",
|
||||
"LPDCB",
|
||||
"CreateEventW",
|
||||
"SetCommMask",
|
||||
"EV_EVENT1",
|
||||
"SetCommState",
|
||||
"LPVOID",
|
||||
"CreateFileW",
|
||||
"LPDWORD",
|
||||
"EV_RX80FULL",
|
||||
"TWOSTOPBITS",
|
||||
"LPCOMMTIMEOUTS",
|
||||
"MAXDWORD",
|
||||
"MS_DSR_ON",
|
||||
"MS_RING_ON",
|
||||
"N11_OVERLAPPED4DOLLAR_484DOLLAR_49E",
|
||||
"EV_ERR",
|
||||
"ULONG_PTR",
|
||||
"CreateFile",
|
||||
"NOPARITY",
|
||||
"CloseHandle",
|
||||
]
|
||||
|
||||
@@ -1,8 +1,3 @@
|
||||
# TODO: missing from stub
|
||||
pytz.__all__
|
||||
pytz.reference.__all__
|
||||
pytz.tzinfo.__all__
|
||||
|
||||
# "Abstract" methods, see the .pyi file for more details.
|
||||
pytz.BaseTzInfo.localize
|
||||
pytz.BaseTzInfo.normalize
|
||||
|
||||
@@ -44,3 +44,20 @@ country_names: Mapping[str, str]
|
||||
ZERO: datetime.timedelta
|
||||
HOUR: datetime.timedelta
|
||||
VERSION: str
|
||||
|
||||
__all__ = [
|
||||
"timezone",
|
||||
"utc",
|
||||
"country_timezones",
|
||||
"country_names",
|
||||
"AmbiguousTimeError",
|
||||
"InvalidTimeError",
|
||||
"NonExistentTimeError",
|
||||
"UnknownTimeZoneError",
|
||||
"all_timezones",
|
||||
"all_timezones_set",
|
||||
"common_timezones",
|
||||
"common_timezones_set",
|
||||
"BaseTzInfo",
|
||||
"FixedOffset",
|
||||
]
|
||||
|
||||
@@ -36,3 +36,5 @@ Eastern: USTimeZone
|
||||
Central: USTimeZone
|
||||
Mountain: USTimeZone
|
||||
Pacific: USTimeZone
|
||||
|
||||
__all__ = ["FixedOffset", "LocalTimezone", "USTimeZone", "Eastern", "Central", "Mountain", "Pacific", "UTC"]
|
||||
|
||||
@@ -39,3 +39,5 @@ class DstTzInfo(BaseTzInfo):
|
||||
@overload
|
||||
def utcoffset(self, dt: datetime.datetime, is_dst: bool | None = None) -> datetime.timedelta: ...
|
||||
def dst(self, dt: datetime.datetime | None, is_dst: bool | None = None) -> datetime.timedelta | None: ...
|
||||
|
||||
__all__: list[str] = []
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
# TODO: missing from stub
|
||||
shapely._ragged_array.__all__
|
||||
|
||||
shapely\.geometry\.conftest
|
||||
shapely\.tests.*
|
||||
|
||||
|
||||
@@ -10,3 +10,5 @@ def to_ragged_array(
|
||||
def from_ragged_array(
|
||||
geometry_type: GeometryType, coords: ArrayLike[float], offsets: ArrayLikeSeq[int] | None = None
|
||||
) -> GeoArray: ...
|
||||
|
||||
__all__ = ["to_ragged_array", "from_ragged_array"]
|
||||
|
||||
@@ -1,8 +1,3 @@
|
||||
# TODO: missing from stub
|
||||
simplejson.__all__
|
||||
simplejson.decoder.__all__
|
||||
simplejson.scanner.__all__
|
||||
|
||||
# Speedups (C vs Python inconsistency):
|
||||
simplejson.scanner.make_scanner
|
||||
simplejson.scanner.JSONDecodeError.__init__
|
||||
@@ -18,4 +13,3 @@ simplejson.tests.*
|
||||
simplejson.compat
|
||||
simplejson.ordered_dict
|
||||
simplejson.tool
|
||||
simplejson.OrderedDict
|
||||
|
||||
@@ -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"]
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
# TODO: missing from stub
|
||||
singledispatch.__all__
|
||||
@@ -29,3 +29,5 @@ class singledispatchmethod(Generic[_T]):
|
||||
@overload
|
||||
def register(self, cls: type[Any], method: Callable[..., _T]) -> Callable[..., _T]: ...
|
||||
def __get__(self, obj: _S, cls: type[_S] | None = ...) -> Callable[..., _T]: ...
|
||||
|
||||
__all__ = ["singledispatch", "singledispatchmethod"]
|
||||
|
||||
Reference in New Issue
Block a user