diff --git a/stubs/PyYAML/@tests/stubtest_allowlist.txt b/stubs/PyYAML/@tests/stubtest_allowlist.txt index b9bd22490..a50b77fb0 100644 --- a/stubs/PyYAML/@tests/stubtest_allowlist.txt +++ b/stubs/PyYAML/@tests/stubtest_allowlist.txt @@ -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__ diff --git a/stubs/PyYAML/yaml/composer.pyi b/stubs/PyYAML/yaml/composer.pyi index 7bc87357c..4c80c5bd3 100644 --- a/stubs/PyYAML/yaml/composer.pyi +++ b/stubs/PyYAML/yaml/composer.pyi @@ -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"] diff --git a/stubs/PyYAML/yaml/constructor.pyi b/stubs/PyYAML/yaml/constructor.pyi index 14aeb646f..b024ba42e 100644 --- a/stubs/PyYAML/yaml/constructor.pyi +++ b/stubs/PyYAML/yaml/constructor.pyi @@ -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"] diff --git a/stubs/PyYAML/yaml/dumper.pyi b/stubs/PyYAML/yaml/dumper.pyi index e9b18e1dc..f40d9db52 100644 --- a/stubs/PyYAML/yaml/dumper.pyi +++ b/stubs/PyYAML/yaml/dumper.pyi @@ -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"] diff --git a/stubs/PyYAML/yaml/emitter.pyi b/stubs/PyYAML/yaml/emitter.pyi index ee8f9403b..68808c751 100644 --- a/stubs/PyYAML/yaml/emitter.pyi +++ b/stubs/PyYAML/yaml/emitter.pyi @@ -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"] diff --git a/stubs/PyYAML/yaml/error.pyi b/stubs/PyYAML/yaml/error.pyi index 35c410ac9..9fe53f15d 100644 --- a/stubs/PyYAML/yaml/error.pyi +++ b/stubs/PyYAML/yaml/error.pyi @@ -24,3 +24,5 @@ class MarkedYAMLError(YAMLError): problem_mark: Mark | None = None, note: str | None = None, ) -> None: ... + +__all__ = ["Mark", "YAMLError", "MarkedYAMLError"] diff --git a/stubs/PyYAML/yaml/loader.pyi b/stubs/PyYAML/yaml/loader.pyi index 950f18f9c..c3944411c 100644 --- a/stubs/PyYAML/yaml/loader.pyi +++ b/stubs/PyYAML/yaml/loader.pyi @@ -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"] diff --git a/stubs/PyYAML/yaml/parser.pyi b/stubs/PyYAML/yaml/parser.pyi index 1db45c4ed..b2c7b42db 100644 --- a/stubs/PyYAML/yaml/parser.pyi +++ b/stubs/PyYAML/yaml/parser.pyi @@ -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"] diff --git a/stubs/PyYAML/yaml/reader.pyi b/stubs/PyYAML/yaml/reader.pyi index cace808a8..a642be1b8 100644 --- a/stubs/PyYAML/yaml/reader.pyi +++ b/stubs/PyYAML/yaml/reader.pyi @@ -37,3 +37,5 @@ class Reader: def check_printable(self, data): ... def update(self, length): ... def update_raw(self, size=4096): ... + +__all__ = ["Reader", "ReaderError"] diff --git a/stubs/PyYAML/yaml/representer.pyi b/stubs/PyYAML/yaml/representer.pyi index c84c56218..517ea5155 100644 --- a/stubs/PyYAML/yaml/representer.pyi +++ b/stubs/PyYAML/yaml/representer.pyi @@ -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"] diff --git a/stubs/PyYAML/yaml/resolver.pyi b/stubs/PyYAML/yaml/resolver.pyi index cffe02a41..614425ab4 100644 --- a/stubs/PyYAML/yaml/resolver.pyi +++ b/stubs/PyYAML/yaml/resolver.pyi @@ -23,3 +23,5 @@ class BaseResolver: def resolve(self, kind, value, implicit): ... class Resolver(BaseResolver): ... + +__all__ = ["BaseResolver", "Resolver"] diff --git a/stubs/PyYAML/yaml/scanner.pyi b/stubs/PyYAML/yaml/scanner.pyi index 64890a19a..0feaf8caa 100644 --- a/stubs/PyYAML/yaml/scanner.pyi +++ b/stubs/PyYAML/yaml/scanner.pyi @@ -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"] diff --git a/stubs/PyYAML/yaml/serializer.pyi b/stubs/PyYAML/yaml/serializer.pyi index 471429020..ae1e98f79 100644 --- a/stubs/PyYAML/yaml/serializer.pyi +++ b/stubs/PyYAML/yaml/serializer.pyi @@ -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"] diff --git a/stubs/aiofiles/@tests/stubtest_allowlist.txt b/stubs/aiofiles/@tests/stubtest_allowlist.txt index a57cbbfca..6562daed8 100644 --- a/stubs/aiofiles/@tests/stubtest_allowlist.txt +++ b/stubs/aiofiles/@tests/stubtest_allowlist.txt @@ -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 diff --git a/stubs/aiofiles/aiofiles/__init__.pyi b/stubs/aiofiles/aiofiles/__init__.pyi index bc52b8e0c..64410d4ed 100644 --- a/stubs/aiofiles/aiofiles/__init__.pyi +++ b/stubs/aiofiles/aiofiles/__init__.pyi @@ -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"] diff --git a/stubs/aiofiles/aiofiles/tempfile/__init__.pyi b/stubs/aiofiles/aiofiles/tempfile/__init__.pyi index e8016aa8d..1e3bbbb33 100644 --- a/stubs/aiofiles/aiofiles/tempfile/__init__.pyi +++ b/stubs/aiofiles/aiofiles/tempfile/__init__.pyi @@ -321,3 +321,5 @@ def TemporaryDirectory( class AiofilesContextManagerTempDir(AiofilesContextManager[AsyncTemporaryDirectory]): async def __aenter__(self) -> str: ... # type: ignore[override] + +__all__ = ["NamedTemporaryFile", "TemporaryFile", "SpooledTemporaryFile", "TemporaryDirectory"] diff --git a/stubs/aiofiles/aiofiles/threadpool/__init__.pyi b/stubs/aiofiles/aiofiles/threadpool/__init__.pyi index 00c587ccd..cf4814ced 100644 --- a/stubs/aiofiles/aiofiles/threadpool/__init__.pyi +++ b/stubs/aiofiles/aiofiles/threadpool/__init__.pyi @@ -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") diff --git a/stubs/boltons/@tests/stubtest_allowlist.txt b/stubs/boltons/@tests/stubtest_allowlist.txt index 40d27d00f..2ad9d612d 100644 --- a/stubs/boltons/@tests/stubtest_allowlist.txt +++ b/stubs/boltons/@tests/stubtest_allowlist.txt @@ -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__ diff --git a/stubs/boltons/boltons/debugutils.pyi b/stubs/boltons/boltons/debugutils.pyi index 12bdcfccc..6b6f8f698 100644 --- a/stubs/boltons/boltons/debugutils.pyi +++ b/stubs/boltons/boltons/debugutils.pyi @@ -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"] diff --git a/stubs/boltons/boltons/dictutils.pyi b/stubs/boltons/boltons/dictutils.pyi index 6a6b851a9..d57469749 100644 --- a/stubs/boltons/boltons/dictutils.pyi +++ b/stubs/boltons/boltons/dictutils.pyi @@ -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"] diff --git a/stubs/boltons/boltons/excutils.pyi b/stubs/boltons/boltons/excutils.pyi index 5994c849e..bb6a42dbc 100644 --- a/stubs/boltons/boltons/excutils.pyi +++ b/stubs/boltons/boltons/excutils.pyi @@ -7,3 +7,5 @@ class ExceptionCauseMixin(Exception): def get_str(self) -> str: ... class MathError(ExceptionCauseMixin, ValueError): ... + +__all__ = ["ExceptionCauseMixin"] diff --git a/stubs/boltons/boltons/fileutils.pyi b/stubs/boltons/boltons/fileutils.pyi index df8ca7909..1cf22af89 100644 --- a/stubs/boltons/boltons/fileutils.pyi +++ b/stubs/boltons/boltons/fileutils.pyi @@ -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"] diff --git a/stubs/boltons/boltons/formatutils.pyi b/stubs/boltons/boltons/formatutils.pyi index 1f0656877..b9f3eb897 100644 --- a/stubs/boltons/boltons/formatutils.pyi +++ b/stubs/boltons/boltons/formatutils.pyi @@ -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", +] diff --git a/stubs/boltons/boltons/gcutils.pyi b/stubs/boltons/boltons/gcutils.pyi index 455af78e3..33e800610 100644 --- a/stubs/boltons/boltons/gcutils.pyi +++ b/stubs/boltons/boltons/gcutils.pyi @@ -12,3 +12,5 @@ class GCToggler: toggle_gc: GCToggler toggle_gc_postcollect: GCToggler + +__all__ = ["get_all", "GCToggler", "toggle_gc", "toggle_gc_postcollect"] diff --git a/stubs/boltons/boltons/jsonutils.pyi b/stubs/boltons/boltons/jsonutils.pyi index bd6a6d23f..0cc1bf7a4 100644 --- a/stubs/boltons/boltons/jsonutils.pyi +++ b/stubs/boltons/boltons/jsonutils.pyi @@ -23,3 +23,5 @@ class JSONLIterator: def __iter__(self) -> Self: ... def next(self) -> Any: ... __next__ = next + +__all__ = ["JSONLIterator", "reverse_iter_lines"] diff --git a/stubs/boltons/boltons/listutils.pyi b/stubs/boltons/boltons/listutils.pyi index 89f9b122e..35b8332ff 100644 --- a/stubs/boltons/boltons/listutils.pyi +++ b/stubs/boltons/boltons/listutils.pyi @@ -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"] diff --git a/stubs/boltons/boltons/namedutils.pyi b/stubs/boltons/boltons/namedutils.pyi index c92f6bb87..ff57445a5 100644 --- a/stubs/boltons/boltons/namedutils.pyi +++ b/stubs/boltons/boltons/namedutils.pyi @@ -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"] diff --git a/stubs/boltons/boltons/pathutils.pyi b/stubs/boltons/boltons/pathutils.pyi index 58d9d4c93..60566fa0f 100644 --- a/stubs/boltons/boltons/pathutils.pyi +++ b/stubs/boltons/boltons/pathutils.pyi @@ -11,3 +11,5 @@ def augpath( ) -> str: ... def shrinkuser(path: StrPath, home: str = "~") -> str: ... def expandpath(path: StrPath) -> str: ... + +__all__ = ["augpath", "shrinkuser", "expandpath"] diff --git a/stubs/boltons/boltons/queueutils.pyi b/stubs/boltons/boltons/queueutils.pyi index 9e6af5be6..df8eca210 100644 --- a/stubs/boltons/boltons/queueutils.pyi +++ b/stubs/boltons/boltons/queueutils.pyi @@ -12,3 +12,5 @@ class HeapPriorityQueue(BasePriorityQueue): ... class SortedPriorityQueue(BasePriorityQueue): ... PriorityQueue: TypeAlias = SortedPriorityQueue + +__all__ = ["PriorityQueue", "BasePriorityQueue", "HeapPriorityQueue", "SortedPriorityQueue"] diff --git a/stubs/boltons/boltons/setutils.pyi b/stubs/boltons/boltons/setutils.pyi index 97dc8004b..576687a76 100644 --- a/stubs/boltons/boltons/setutils.pyi +++ b/stubs/boltons/boltons/setutils.pyi @@ -97,3 +97,5 @@ class _ComplementSet: def __len__(self) -> int: ... def __iter__(self) -> Iterator[Any]: ... def __bool__(self) -> bool: ... + +__all__ = ["IndexedSet", "complement"] diff --git a/stubs/boltons/boltons/strutils.pyi b/stubs/boltons/boltons/strutils.pyi index f39ea8d3b..2dbd4f66a 100644 --- a/stubs/boltons/boltons/strutils.pyi +++ b/stubs/boltons/boltons/strutils.pyi @@ -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", +] diff --git a/stubs/boltons/boltons/tableutils.pyi b/stubs/boltons/boltons/tableutils.pyi index ce6d5b72f..f59606c03 100644 --- a/stubs/boltons/boltons/tableutils.pyi +++ b/stubs/boltons/boltons/tableutils.pyi @@ -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"] diff --git a/stubs/boltons/boltons/tbutils.pyi b/stubs/boltons/boltons/tbutils.pyi index 5900a48b7..a1fb06843 100644 --- a/stubs/boltons/boltons/tbutils.pyi +++ b/stubs/boltons/boltons/tbutils.pyi @@ -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", +] diff --git a/stubs/console-menu/@tests/stubtest_allowlist.txt b/stubs/console-menu/@tests/stubtest_allowlist.txt deleted file mode 100644 index 242ebed35..000000000 --- a/stubs/console-menu/@tests/stubtest_allowlist.txt +++ /dev/null @@ -1,4 +0,0 @@ -# TODO: missing from stub -consolemenu.__all__ -consolemenu.format.__all__ -consolemenu.items.__all__ diff --git a/stubs/console-menu/consolemenu/__init__.pyi b/stubs/console-menu/consolemenu/__init__.pyi index 8bc6c6cd7..e597f474c 100644 --- a/stubs/console-menu/consolemenu/__init__.pyi +++ b/stubs/console-menu/consolemenu/__init__.pyi @@ -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", +] diff --git a/stubs/console-menu/consolemenu/format/__init__.pyi b/stubs/console-menu/consolemenu/format/__init__.pyi index f43b6c563..cc963da05 100644 --- a/stubs/console-menu/consolemenu/format/__init__.pyi +++ b/stubs/console-menu/consolemenu/format/__init__.pyi @@ -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", +] diff --git a/stubs/console-menu/consolemenu/items/__init__.pyi b/stubs/console-menu/consolemenu/items/__init__.pyi index 570ff3f5e..29943004a 100644 --- a/stubs/console-menu/consolemenu/items/__init__.pyi +++ b/stubs/console-menu/consolemenu/items/__init__.pyi @@ -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"] diff --git a/stubs/mysqlclient/@tests/stubtest_allowlist.txt b/stubs/mysqlclient/@tests/stubtest_allowlist.txt index ca7d357fa..fbc91acd6 100644 --- a/stubs/mysqlclient/@tests/stubtest_allowlist.txt +++ b/stubs/mysqlclient/@tests/stubtest_allowlist.txt @@ -1,5 +1 @@ -# TODO: missing from stub -MySQLdb.__all__ -MySQLdb.constants.__all__ - MySQLdb.Connection diff --git a/stubs/mysqlclient/MySQLdb/__init__.pyi b/stubs/mysqlclient/MySQLdb/__init__.pyi index ab3a60939..740ff8fe5 100644 --- a/stubs/mysqlclient/MySQLdb/__init__.pyi +++ b/stubs/mysqlclient/MySQLdb/__init__.pyi @@ -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", +] diff --git a/stubs/mysqlclient/MySQLdb/constants/__init__.pyi b/stubs/mysqlclient/MySQLdb/constants/__init__.pyi index 3eaad111b..df9363bc4 100644 --- a/stubs/mysqlclient/MySQLdb/constants/__init__.pyi +++ b/stubs/mysqlclient/MySQLdb/constants/__init__.pyi @@ -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"] diff --git a/stubs/pyserial/@tests/stubtest_allowlist_win32.txt b/stubs/pyserial/@tests/stubtest_allowlist_win32.txt index 09a6a5fae..75273f1f2 100644 --- a/stubs/pyserial/@tests/stubtest_allowlist_win32.txt +++ b/stubs/pyserial/@tests/stubtest_allowlist_win32.txt @@ -1,6 +1,3 @@ -# TODO: missing from stub -serial.win32.__all__ - # Error: failed to import # ======================= serial.serialposix # Posix only diff --git a/stubs/pyserial/serial/win32.pyi b/stubs/pyserial/serial/win32.pyi index 0002114ac..be1cb025d 100644 --- a/stubs/pyserial/serial/win32.pyi +++ b/stubs/pyserial/serial/win32.pyi @@ -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", + ] diff --git a/stubs/pytz/@tests/stubtest_allowlist.txt b/stubs/pytz/@tests/stubtest_allowlist.txt index 6af1b5cb4..c25eb8283 100644 --- a/stubs/pytz/@tests/stubtest_allowlist.txt +++ b/stubs/pytz/@tests/stubtest_allowlist.txt @@ -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 diff --git a/stubs/pytz/pytz/__init__.pyi b/stubs/pytz/pytz/__init__.pyi index e934a3d15..78b0a8c4e 100644 --- a/stubs/pytz/pytz/__init__.pyi +++ b/stubs/pytz/pytz/__init__.pyi @@ -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", +] diff --git a/stubs/pytz/pytz/reference.pyi b/stubs/pytz/pytz/reference.pyi index cf9ceeebb..be187db03 100644 --- a/stubs/pytz/pytz/reference.pyi +++ b/stubs/pytz/pytz/reference.pyi @@ -36,3 +36,5 @@ Eastern: USTimeZone Central: USTimeZone Mountain: USTimeZone Pacific: USTimeZone + +__all__ = ["FixedOffset", "LocalTimezone", "USTimeZone", "Eastern", "Central", "Mountain", "Pacific", "UTC"] diff --git a/stubs/pytz/pytz/tzinfo.pyi b/stubs/pytz/pytz/tzinfo.pyi index 336558561..66c707950 100644 --- a/stubs/pytz/pytz/tzinfo.pyi +++ b/stubs/pytz/pytz/tzinfo.pyi @@ -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] = [] diff --git a/stubs/shapely/@tests/stubtest_allowlist.txt b/stubs/shapely/@tests/stubtest_allowlist.txt index 40afc59f2..2d094265a 100644 --- a/stubs/shapely/@tests/stubtest_allowlist.txt +++ b/stubs/shapely/@tests/stubtest_allowlist.txt @@ -1,6 +1,3 @@ -# TODO: missing from stub -shapely._ragged_array.__all__ - shapely\.geometry\.conftest shapely\.tests.* diff --git a/stubs/shapely/shapely/_ragged_array.pyi b/stubs/shapely/shapely/_ragged_array.pyi index e32f338d0..c79038f46 100644 --- a/stubs/shapely/shapely/_ragged_array.pyi +++ b/stubs/shapely/shapely/_ragged_array.pyi @@ -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"] diff --git a/stubs/simplejson/@tests/stubtest_allowlist.txt b/stubs/simplejson/@tests/stubtest_allowlist.txt index 083d34698..d2e504a07 100644 --- a/stubs/simplejson/@tests/stubtest_allowlist.txt +++ b/stubs/simplejson/@tests/stubtest_allowlist.txt @@ -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 diff --git a/stubs/simplejson/simplejson/__init__.pyi b/stubs/simplejson/simplejson/__init__.pyi index 4b61e31e3..aec7c35da 100644 --- a/stubs/simplejson/simplejson/__init__.pyi +++ b/stubs/simplejson/simplejson/__init__.pyi @@ -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", +] diff --git a/stubs/simplejson/simplejson/decoder.pyi b/stubs/simplejson/simplejson/decoder.pyi index ff1ef5646..8f9dc0506 100644 --- a/stubs/simplejson/simplejson/decoder.pyi +++ b/stubs/simplejson/simplejson/decoder.pyi @@ -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"] diff --git a/stubs/simplejson/simplejson/scanner.pyi b/stubs/simplejson/simplejson/scanner.pyi index ea5ba8c47..2e7f9fe58 100644 --- a/stubs/simplejson/simplejson/scanner.pyi +++ b/stubs/simplejson/simplejson/scanner.pyi @@ -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"] diff --git a/stubs/singledispatch/@tests/stubtest_allowlist.txt b/stubs/singledispatch/@tests/stubtest_allowlist.txt deleted file mode 100644 index 9ffaa2252..000000000 --- a/stubs/singledispatch/@tests/stubtest_allowlist.txt +++ /dev/null @@ -1,2 +0,0 @@ -# TODO: missing from stub -singledispatch.__all__ diff --git a/stubs/singledispatch/singledispatch.pyi b/stubs/singledispatch/singledispatch.pyi index bd3671473..8a04562c1 100644 --- a/stubs/singledispatch/singledispatch.pyi +++ b/stubs/singledispatch/singledispatch.pyi @@ -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"]