diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3e7bf1766..615ebeb4d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -362,14 +362,16 @@ Example of a partial module with a partial class `Foo` and a partially annotated function `bar()`: ```python -def __getattr__(name: str) -> Any: ... # incomplete +from _typeshed import Incomplete class Foo: - def __getattr__(self, name: str) -> Any: ... # incomplete + def __getattr__(self, name: str) -> Incomplete: ... x: int y: str def bar(x: str, y, *, z=...): ... + +def __getattr__(name: str) -> Incomplete: ... ``` ## Stub file coding style diff --git a/stdlib/encodings/__init__.pyi b/stdlib/encodings/__init__.pyi index d86466762..2e83f0f65 100644 --- a/stdlib/encodings/__init__.pyi +++ b/stdlib/encodings/__init__.pyi @@ -1,5 +1,5 @@ +from _typeshed import Incomplete from codecs import CodecInfo -from typing import Any class CodecRegistryError(LookupError, SystemError): ... @@ -7,4 +7,4 @@ def normalize_encoding(encoding: str | bytes) -> str: ... def search_function(encoding: str) -> CodecInfo | None: ... # Needed for submodules -def __getattr__(name: str) -> Any: ... # incomplete +def __getattr__(name: str) -> Incomplete: ... diff --git a/stdlib/types.pyi b/stdlib/types.pyi index 16fe096d3..c282ab5b8 100644 --- a/stdlib/types.pyi +++ b/stdlib/types.pyi @@ -591,7 +591,8 @@ if sys.version_info >= (3, 9): @property def __typing_unpacked_tuple_args__(self) -> tuple[Any, ...] | None: ... - def __getattr__(self, name: str) -> Any: ... # incomplete + # GenericAlias delegates attr access to `__origin__` + def __getattr__(self, name: str) -> Any: ... if sys.version_info >= (3, 10): @final diff --git a/stubs/Pillow/PIL/_imaging.pyi b/stubs/Pillow/PIL/_imaging.pyi index 44d41cede..b9435b8fe 100644 --- a/stubs/Pillow/PIL/_imaging.pyi +++ b/stubs/Pillow/PIL/_imaging.pyi @@ -1,5 +1,5 @@ +from _typeshed import Incomplete from collections.abc import Sequence -from typing import Any from typing_extensions import Literal DEFAULT_STRATEGY: Literal[0] @@ -9,7 +9,7 @@ RLE: Literal[3] FIXED: Literal[4] class _Path: - def __getattr__(self, item: str) -> Any: ... # incomplete + def __getattr__(self, item: str) -> Incomplete: ... def path(__x: Sequence[tuple[float, float]] | Sequence[float]) -> _Path: ... -def __getattr__(__name: str) -> Any: ... # incomplete +def __getattr__(__name: str) -> Incomplete: ... diff --git a/stubs/Pygments/pygments/lexers/__init__.pyi b/stubs/Pygments/pygments/lexers/__init__.pyi index ff88b6ae8..5d043715e 100644 --- a/stubs/Pygments/pygments/lexers/__init__.pyi +++ b/stubs/Pygments/pygments/lexers/__init__.pyi @@ -1,4 +1,4 @@ -from _typeshed import StrOrBytesPath, StrPath +from _typeshed import Incomplete, StrOrBytesPath, StrPath from collections.abc import Iterator from typing import Any from typing_extensions import TypeAlias @@ -19,4 +19,4 @@ def guess_lexer_for_filename(_fn: StrPath, _text: str, **options: Any) -> LexerM def guess_lexer(_text: str | bytes, **options: Any) -> Lexer: ... # Having every lexer class here doesn't seem to be worth it -def __getattr__(name: str) -> Any: ... +def __getattr__(name: str) -> Incomplete: ... diff --git a/stubs/Pygments/pygments/styles/__init__.pyi b/stubs/Pygments/pygments/styles/__init__.pyi index 842f507ab..18906e415 100644 --- a/stubs/Pygments/pygments/styles/__init__.pyi +++ b/stubs/Pygments/pygments/styles/__init__.pyi @@ -1,5 +1,5 @@ +from _typeshed import Incomplete from collections.abc import Iterator, Mapping -from typing import Any from pygments.style import StyleMeta from pygments.util import ClassNotFound as ClassNotFound @@ -10,4 +10,4 @@ def get_style_by_name(name) -> StyleMeta: ... def get_all_styles() -> Iterator[str]: ... # Having every style class here doesn't seem to be worth it -def __getattr__(name: str) -> Any: ... +def __getattr__(name: str) -> Incomplete: ... diff --git a/stubs/Send2Trash/send2trash/__init__.pyi b/stubs/Send2Trash/send2trash/__init__.pyi index 5fa3c599c..9ff00ba71 100644 --- a/stubs/Send2Trash/send2trash/__init__.pyi +++ b/stubs/Send2Trash/send2trash/__init__.pyi @@ -1,4 +1,4 @@ -from _typeshed import StrOrBytesPath +from _typeshed import Incomplete, StrOrBytesPath from typing import Any from .exceptions import TrashPermissionError as TrashPermissionError @@ -7,4 +7,4 @@ from .exceptions import TrashPermissionError as TrashPermissionError def send2trash(paths: list[Any] | StrOrBytesPath) -> None: ... # Marked as incomplete because there are platform-specific plat_foo modules -def __getattr__(name: str) -> Any: ... # incomplete +def __getattr__(name: str) -> Incomplete: ... diff --git a/stubs/backports.ssl_match_hostname/backports/__init__.pyi b/stubs/backports.ssl_match_hostname/backports/__init__.pyi index cb0474fb0..8a93ba9cb 100644 --- a/stubs/backports.ssl_match_hostname/backports/__init__.pyi +++ b/stubs/backports.ssl_match_hostname/backports/__init__.pyi @@ -1,4 +1,4 @@ -from typing import Any +from _typeshed import Incomplete # Explicitly mark this package as incomplete. -def __getattr__(name: str) -> Any: ... +def __getattr__(name: str) -> Incomplete: ... diff --git a/stubs/bleach/bleach/html5lib_shim.pyi b/stubs/bleach/bleach/html5lib_shim.pyi index 52a028156..bfe7e9cac 100644 --- a/stubs/bleach/bleach/html5lib_shim.pyi +++ b/stubs/bleach/bleach/html5lib_shim.pyi @@ -1,17 +1,17 @@ +from _typeshed import Incomplete from collections.abc import Generator, Iterable -from typing import Any class HTMLParser: # actually html5lib.HTMLParser - def __getattr__(self, __name: str) -> Any: ... # incomplete + def __getattr__(self, __name: str) -> Incomplete: ... class Filter: # actually html5lib.filters.base.Filter - def __getattr__(self, __name: str) -> Any: ... # incomplete + def __getattr__(self, __name: str) -> Incomplete: ... class SanitizerFilter: # actually html5lib.filters.sanitizer.Filter - def __getattr__(self, __name: str) -> Any: ... # incomplete + def __getattr__(self, __name: str) -> Incomplete: ... class HTMLSerializer: # actually html5lib.serializer.HTMLSerializer - def __getattr__(self, __name: str) -> Any: ... # incomplete + def __getattr__(self, __name: str) -> Incomplete: ... class BleachHTMLParser(HTMLParser): tags: list[str] | None @@ -24,4 +24,4 @@ class BleachHTMLSerializer(HTMLSerializer): def escape_base_amp(self, stoken: str) -> Generator[str, None, None]: ... def serialize(self, treewalker, encoding: str | None = ...) -> Generator[str, None, None]: ... -def __getattr__(__name: str) -> Any: ... # incomplete +def __getattr__(__name: str) -> Incomplete: ... diff --git a/stubs/bleach/bleach/linkifier.pyi b/stubs/bleach/bleach/linkifier.pyi index fbe3d38a7..594b5b3bd 100644 --- a/stubs/bleach/bleach/linkifier.pyi +++ b/stubs/bleach/bleach/linkifier.pyi @@ -1,3 +1,4 @@ +from _typeshed import Incomplete from collections.abc import Container, Iterable, MutableMapping from re import Pattern from typing import Any, Protocol @@ -44,4 +45,4 @@ class LinkifyFilter(Filter): def __init__( self, source, callbacks=..., skip_tags: Container[str] | None = ..., parse_email: bool = ..., url_re=..., email_re=... ) -> None: ... - def __getattr__(self, item: str) -> Any: ... # incomplete + def __getattr__(self, item: str) -> Incomplete: ... diff --git a/stubs/boto/boto/__init__.pyi b/stubs/boto/boto/__init__.pyi index 6a1c529e2..d8a1dabb3 100644 --- a/stubs/boto/boto/__init__.pyi +++ b/stubs/boto/boto/__init__.pyi @@ -1,4 +1,5 @@ import logging +from _typeshed import Incomplete from typing import Any from .s3.connection import S3Connection @@ -102,4 +103,4 @@ def storage_uri( def storage_uri_for_key(key): ... # Explicitly mark this package as incomplete. -def __getattr__(name: str) -> Any: ... +def __getattr__(name: str) -> Incomplete: ... diff --git a/stubs/boto/boto/ec2/__init__.pyi b/stubs/boto/boto/ec2/__init__.pyi index d44f942d0..e21a2bfe4 100644 --- a/stubs/boto/boto/ec2/__init__.pyi +++ b/stubs/boto/boto/ec2/__init__.pyi @@ -1,3 +1,4 @@ +from _typeshed import Incomplete from typing import Any RegionData: Any @@ -7,4 +8,4 @@ def connect_to_region(region_name, **kw_params): ... def get_region(region_name, **kw_params): ... # Explicitly mark this package as incomplete. -def __getattr__(name: str) -> Any: ... +def __getattr__(name: str) -> Incomplete: ... diff --git a/stubs/cryptography/cryptography/hazmat/__init__.pyi b/stubs/cryptography/cryptography/hazmat/__init__.pyi index e27843e53..0f6820f05 100644 --- a/stubs/cryptography/cryptography/hazmat/__init__.pyi +++ b/stubs/cryptography/cryptography/hazmat/__init__.pyi @@ -1,3 +1,3 @@ -from typing import Any +from _typeshed import Incomplete -def __getattr__(name: str) -> Any: ... +def __getattr__(name: str) -> Incomplete: ... diff --git a/stubs/cryptography/cryptography/hazmat/backends/__init__.pyi b/stubs/cryptography/cryptography/hazmat/backends/__init__.pyi index d452202ee..5f152aa78 100644 --- a/stubs/cryptography/cryptography/hazmat/backends/__init__.pyi +++ b/stubs/cryptography/cryptography/hazmat/backends/__init__.pyi @@ -1,6 +1,7 @@ +from _typeshed import Incomplete from typing import Any def default_backend() -> Any: ... # TODO: add some backends -def __getattr__(name: str) -> Any: ... +def __getattr__(name: str) -> Incomplete: ... diff --git a/stubs/cryptography/cryptography/hazmat/primitives/__init__.pyi b/stubs/cryptography/cryptography/hazmat/primitives/__init__.pyi index e27843e53..0f6820f05 100644 --- a/stubs/cryptography/cryptography/hazmat/primitives/__init__.pyi +++ b/stubs/cryptography/cryptography/hazmat/primitives/__init__.pyi @@ -1,3 +1,3 @@ -from typing import Any +from _typeshed import Incomplete -def __getattr__(name: str) -> Any: ... +def __getattr__(name: str) -> Incomplete: ... diff --git a/stubs/cryptography/cryptography/hazmat/primitives/asymmetric/__init__.pyi b/stubs/cryptography/cryptography/hazmat/primitives/asymmetric/__init__.pyi index e27843e53..0f6820f05 100644 --- a/stubs/cryptography/cryptography/hazmat/primitives/asymmetric/__init__.pyi +++ b/stubs/cryptography/cryptography/hazmat/primitives/asymmetric/__init__.pyi @@ -1,3 +1,3 @@ -from typing import Any +from _typeshed import Incomplete -def __getattr__(name: str) -> Any: ... +def __getattr__(name: str) -> Incomplete: ... diff --git a/stubs/cryptography/cryptography/x509/__init__.pyi b/stubs/cryptography/cryptography/x509/__init__.pyi index 3086c95fe..49596a826 100644 --- a/stubs/cryptography/cryptography/x509/__init__.pyi +++ b/stubs/cryptography/cryptography/x509/__init__.pyi @@ -1,5 +1,5 @@ import datetime -from _typeshed import Self +from _typeshed import Incomplete, Self from abc import ABCMeta, abstractmethod from collections.abc import Generator, Iterable, Sequence from enum import Enum @@ -477,4 +477,4 @@ def load_der_x509_crl(data: bytes, backend: X509Backend | None = ...) -> Certifi def load_pem_x509_crl(data: bytes, backend: X509Backend | None = ...) -> CertificateRevocationList: ... def load_der_x509_csr(data: bytes, backend: X509Backend | None = ...) -> CertificateSigningRequest: ... def load_pem_x509_csr(data: bytes, backend: X509Backend | None = ...) -> CertificateSigningRequest: ... -def __getattr__(name: str) -> Any: ... # incomplete +def __getattr__(name: str) -> Incomplete: ... diff --git a/stubs/docutils/docutils/core.pyi b/stubs/docutils/docutils/core.pyi index 964e6fa3f..0f6820f05 100644 --- a/stubs/docutils/docutils/core.pyi +++ b/stubs/docutils/docutils/core.pyi @@ -1,3 +1,3 @@ -from typing import Any +from _typeshed import Incomplete -def __getattr__(name: str) -> Any: ... # incomplete +def __getattr__(name: str) -> Incomplete: ... diff --git a/stubs/docutils/docutils/examples.pyi b/stubs/docutils/docutils/examples.pyi index 964e6fa3f..0f6820f05 100644 --- a/stubs/docutils/docutils/examples.pyi +++ b/stubs/docutils/docutils/examples.pyi @@ -1,3 +1,3 @@ -from typing import Any +from _typeshed import Incomplete -def __getattr__(name: str) -> Any: ... # incomplete +def __getattr__(name: str) -> Incomplete: ... diff --git a/stubs/docutils/docutils/frontend.pyi b/stubs/docutils/docutils/frontend.pyi index e71907471..7a659486d 100644 --- a/stubs/docutils/docutils/frontend.pyi +++ b/stubs/docutils/docutils/frontend.pyi @@ -1,4 +1,5 @@ import optparse +from _typeshed import Incomplete from collections.abc import Iterable, Mapping from configparser import RawConfigParser from typing import Any, ClassVar @@ -70,9 +71,9 @@ class OptionParser(optparse.OptionParser, SettingsSpec): *args, **kwargs, ) -> None: ... - def __getattr__(self, name: str) -> Any: ... # incomplete + def __getattr__(self, name: str) -> Incomplete: ... class ConfigParser(RawConfigParser): - def __getattr__(self, name: str) -> Any: ... # incomplete + def __getattr__(self, name: str) -> Incomplete: ... class ConfigDeprecationWarning(DeprecationWarning): ... diff --git a/stubs/docutils/docutils/io.pyi b/stubs/docutils/docutils/io.pyi index 38820a62f..f81129c9a 100644 --- a/stubs/docutils/docutils/io.pyi +++ b/stubs/docutils/docutils/io.pyi @@ -1,4 +1,11 @@ -from _typeshed import OpenBinaryModeReading, OpenBinaryModeWriting, OpenTextModeReading, OpenTextModeWriting, SupportsWrite +from _typeshed import ( + Incomplete, + OpenBinaryModeReading, + OpenBinaryModeWriting, + OpenTextModeReading, + OpenTextModeWriting, + SupportsWrite, +) from re import Pattern from typing import Any, ClassVar from typing_extensions import Literal @@ -64,7 +71,7 @@ class FileInput(Input): class FileOutput(Output): mode: ClassVar[OpenTextModeWriting | OpenBinaryModeWriting] - def __getattr__(self, name: str) -> Any: ... # incomplete + def __getattr__(self, name: str) -> Incomplete: ... class BinaryFileOutput(FileOutput): ... diff --git a/stubs/docutils/docutils/languages/__init__.pyi b/stubs/docutils/docutils/languages/__init__.pyi index d8747739d..3638be182 100644 --- a/stubs/docutils/docutils/languages/__init__.pyi +++ b/stubs/docutils/docutils/languages/__init__.pyi @@ -1,4 +1,5 @@ -from typing import Any, Protocol +from _typeshed import Incomplete +from typing import Protocol from docutils.utils import Reporter @@ -9,6 +10,6 @@ class _LanguageModule(Protocol): class LanguageImporter: def __call__(self, language_code: str, reporter: Reporter | None = ...) -> _LanguageModule: ... - def __getattr__(self, __name: str) -> Any: ... # incomplete + def __getattr__(self, __name: str) -> Incomplete: ... get_language: LanguageImporter diff --git a/stubs/docutils/docutils/nodes.pyi b/stubs/docutils/docutils/nodes.pyi index 6efe7c5e2..5281bdca1 100644 --- a/stubs/docutils/docutils/nodes.pyi +++ b/stubs/docutils/docutils/nodes.pyi @@ -1,5 +1,5 @@ import xml.dom.minidom -from _typeshed import Self +from _typeshed import Incomplete, Self from abc import abstractmethod from collections.abc import Callable, Generator, Iterable, Sequence from typing import Any, ClassVar, Protocol, TypeVar, overload @@ -102,7 +102,7 @@ class Element(Node): def deepcopy(self: Self) -> Self: ... def pformat(self, indent: str = ..., level: int = ...) -> str: ... def astext(self) -> str: ... - def __getattr__(self, __name: str) -> Any: ... # incomplete + def __getattr__(self, __name: str) -> Incomplete: ... class Text(Node, str): tagname: ClassVar[str] @@ -128,10 +128,10 @@ class document(Root, Structural, Element): def deepcopy(self: Self) -> Self: ... def pformat(self, indent: str = ..., level: int = ...) -> str: ... def astext(self) -> str: ... - def __getattr__(self, __name: str) -> Any: ... # incomplete + def __getattr__(self, __name: str) -> Incomplete: ... class NodeVisitor: def __init__(self, document: document): ... - def __getattr__(self, __name: str) -> Any: ... # incomplete + def __getattr__(self, __name: str) -> Incomplete: ... -def __getattr__(name: str) -> Any: ... # incomplete +def __getattr__(name: str) -> Incomplete: ... diff --git a/stubs/docutils/docutils/parsers/recommonmark_wrapper.pyi b/stubs/docutils/docutils/parsers/recommonmark_wrapper.pyi index 964e6fa3f..0f6820f05 100644 --- a/stubs/docutils/docutils/parsers/recommonmark_wrapper.pyi +++ b/stubs/docutils/docutils/parsers/recommonmark_wrapper.pyi @@ -1,3 +1,3 @@ -from typing import Any +from _typeshed import Incomplete -def __getattr__(name: str) -> Any: ... # incomplete +def __getattr__(name: str) -> Incomplete: ... diff --git a/stubs/docutils/docutils/parsers/rst/__init__.pyi b/stubs/docutils/docutils/parsers/rst/__init__.pyi index b9cc02940..d6f2339f5 100644 --- a/stubs/docutils/docutils/parsers/rst/__init__.pyi +++ b/stubs/docutils/docutils/parsers/rst/__init__.pyi @@ -1,3 +1,4 @@ +from _typeshed import Incomplete from typing import Any, ClassVar from typing_extensions import Literal @@ -29,6 +30,6 @@ class Directive: state: states.RSTState, state_machine: states.RSTStateMachine, ) -> None: ... - def __getattr__(self, name: str) -> Any: ... # incomplete + def __getattr__(self, name: str) -> Incomplete: ... def convert_directive_function(directive_fn): ... diff --git a/stubs/docutils/docutils/parsers/rst/directives/__init__.pyi b/stubs/docutils/docutils/parsers/rst/directives/__init__.pyi index 790329106..5ffbcf7a6 100644 --- a/stubs/docutils/docutils/parsers/rst/directives/__init__.pyi +++ b/stubs/docutils/docutils/parsers/rst/directives/__init__.pyi @@ -1,4 +1,4 @@ -from typing import Any +from _typeshed import Incomplete from docutils.languages import _LanguageModule from docutils.nodes import document @@ -9,4 +9,4 @@ def register_directive(name: str, directive: type[Directive]) -> None: ... def directive( directive_name: str, language_module: _LanguageModule, document: document ) -> tuple[type[Directive] | None, list[SystemMessage]]: ... -def __getattr__(name: str) -> Any: ... # incomplete +def __getattr__(name: str) -> Incomplete: ... diff --git a/stubs/docutils/docutils/parsers/rst/directives/admonitions.pyi b/stubs/docutils/docutils/parsers/rst/directives/admonitions.pyi index 964e6fa3f..0f6820f05 100644 --- a/stubs/docutils/docutils/parsers/rst/directives/admonitions.pyi +++ b/stubs/docutils/docutils/parsers/rst/directives/admonitions.pyi @@ -1,3 +1,3 @@ -from typing import Any +from _typeshed import Incomplete -def __getattr__(name: str) -> Any: ... # incomplete +def __getattr__(name: str) -> Incomplete: ... diff --git a/stubs/docutils/docutils/parsers/rst/directives/body.pyi b/stubs/docutils/docutils/parsers/rst/directives/body.pyi index 964e6fa3f..0f6820f05 100644 --- a/stubs/docutils/docutils/parsers/rst/directives/body.pyi +++ b/stubs/docutils/docutils/parsers/rst/directives/body.pyi @@ -1,3 +1,3 @@ -from typing import Any +from _typeshed import Incomplete -def __getattr__(name: str) -> Any: ... # incomplete +def __getattr__(name: str) -> Incomplete: ... diff --git a/stubs/docutils/docutils/parsers/rst/directives/html.pyi b/stubs/docutils/docutils/parsers/rst/directives/html.pyi index 964e6fa3f..0f6820f05 100644 --- a/stubs/docutils/docutils/parsers/rst/directives/html.pyi +++ b/stubs/docutils/docutils/parsers/rst/directives/html.pyi @@ -1,3 +1,3 @@ -from typing import Any +from _typeshed import Incomplete -def __getattr__(name: str) -> Any: ... # incomplete +def __getattr__(name: str) -> Incomplete: ... diff --git a/stubs/docutils/docutils/parsers/rst/directives/images.pyi b/stubs/docutils/docutils/parsers/rst/directives/images.pyi index 964e6fa3f..0f6820f05 100644 --- a/stubs/docutils/docutils/parsers/rst/directives/images.pyi +++ b/stubs/docutils/docutils/parsers/rst/directives/images.pyi @@ -1,3 +1,3 @@ -from typing import Any +from _typeshed import Incomplete -def __getattr__(name: str) -> Any: ... # incomplete +def __getattr__(name: str) -> Incomplete: ... diff --git a/stubs/docutils/docutils/parsers/rst/directives/misc.pyi b/stubs/docutils/docutils/parsers/rst/directives/misc.pyi index 964e6fa3f..0f6820f05 100644 --- a/stubs/docutils/docutils/parsers/rst/directives/misc.pyi +++ b/stubs/docutils/docutils/parsers/rst/directives/misc.pyi @@ -1,3 +1,3 @@ -from typing import Any +from _typeshed import Incomplete -def __getattr__(name: str) -> Any: ... # incomplete +def __getattr__(name: str) -> Incomplete: ... diff --git a/stubs/docutils/docutils/parsers/rst/directives/parts.pyi b/stubs/docutils/docutils/parsers/rst/directives/parts.pyi index 964e6fa3f..0f6820f05 100644 --- a/stubs/docutils/docutils/parsers/rst/directives/parts.pyi +++ b/stubs/docutils/docutils/parsers/rst/directives/parts.pyi @@ -1,3 +1,3 @@ -from typing import Any +from _typeshed import Incomplete -def __getattr__(name: str) -> Any: ... # incomplete +def __getattr__(name: str) -> Incomplete: ... diff --git a/stubs/docutils/docutils/parsers/rst/directives/references.pyi b/stubs/docutils/docutils/parsers/rst/directives/references.pyi index 964e6fa3f..0f6820f05 100644 --- a/stubs/docutils/docutils/parsers/rst/directives/references.pyi +++ b/stubs/docutils/docutils/parsers/rst/directives/references.pyi @@ -1,3 +1,3 @@ -from typing import Any +from _typeshed import Incomplete -def __getattr__(name: str) -> Any: ... # incomplete +def __getattr__(name: str) -> Incomplete: ... diff --git a/stubs/docutils/docutils/parsers/rst/directives/tables.pyi b/stubs/docutils/docutils/parsers/rst/directives/tables.pyi index 964e6fa3f..0f6820f05 100644 --- a/stubs/docutils/docutils/parsers/rst/directives/tables.pyi +++ b/stubs/docutils/docutils/parsers/rst/directives/tables.pyi @@ -1,3 +1,3 @@ -from typing import Any +from _typeshed import Incomplete -def __getattr__(name: str) -> Any: ... # incomplete +def __getattr__(name: str) -> Incomplete: ... diff --git a/stubs/docutils/docutils/parsers/rst/roles.pyi b/stubs/docutils/docutils/parsers/rst/roles.pyi index f21d07d17..59580d68e 100644 --- a/stubs/docutils/docutils/parsers/rst/roles.pyi +++ b/stubs/docutils/docutils/parsers/rst/roles.pyi @@ -1,3 +1,4 @@ +from _typeshed import Incomplete from collections.abc import Callable from typing import Any from typing_extensions import TypeAlias @@ -16,4 +17,4 @@ def register_local_role(name: str, role_fn: _RoleFn) -> None: ... def role( role_name: str, language_module: _LanguageModule, lineno: int, reporter: Reporter ) -> tuple[_RoleFn | None, list[SystemMessage]]: ... -def __getattr__(name: str) -> Any: ... # incomplete +def __getattr__(name: str) -> Incomplete: ... diff --git a/stubs/docutils/docutils/parsers/rst/states.pyi b/stubs/docutils/docutils/parsers/rst/states.pyi index a7f106948..1ef7be910 100644 --- a/stubs/docutils/docutils/parsers/rst/states.pyi +++ b/stubs/docutils/docutils/parsers/rst/states.pyi @@ -1,6 +1,6 @@ -from typing import Any +from _typeshed import Incomplete class Inliner: def __init__(self) -> None: ... -def __getattr__(name: str) -> Any: ... # incomplete +def __getattr__(name: str) -> Incomplete: ... diff --git a/stubs/docutils/docutils/readers/__init__.pyi b/stubs/docutils/docutils/readers/__init__.pyi index 964e6fa3f..0f6820f05 100644 --- a/stubs/docutils/docutils/readers/__init__.pyi +++ b/stubs/docutils/docutils/readers/__init__.pyi @@ -1,3 +1,3 @@ -from typing import Any +from _typeshed import Incomplete -def __getattr__(name: str) -> Any: ... # incomplete +def __getattr__(name: str) -> Incomplete: ... diff --git a/stubs/docutils/docutils/readers/doctree.pyi b/stubs/docutils/docutils/readers/doctree.pyi index 964e6fa3f..0f6820f05 100644 --- a/stubs/docutils/docutils/readers/doctree.pyi +++ b/stubs/docutils/docutils/readers/doctree.pyi @@ -1,3 +1,3 @@ -from typing import Any +from _typeshed import Incomplete -def __getattr__(name: str) -> Any: ... # incomplete +def __getattr__(name: str) -> Incomplete: ... diff --git a/stubs/docutils/docutils/readers/pep.pyi b/stubs/docutils/docutils/readers/pep.pyi index 964e6fa3f..0f6820f05 100644 --- a/stubs/docutils/docutils/readers/pep.pyi +++ b/stubs/docutils/docutils/readers/pep.pyi @@ -1,3 +1,3 @@ -from typing import Any +from _typeshed import Incomplete -def __getattr__(name: str) -> Any: ... # incomplete +def __getattr__(name: str) -> Incomplete: ... diff --git a/stubs/docutils/docutils/readers/standalone.pyi b/stubs/docutils/docutils/readers/standalone.pyi index 964e6fa3f..0f6820f05 100644 --- a/stubs/docutils/docutils/readers/standalone.pyi +++ b/stubs/docutils/docutils/readers/standalone.pyi @@ -1,3 +1,3 @@ -from typing import Any +from _typeshed import Incomplete -def __getattr__(name: str) -> Any: ... # incomplete +def __getattr__(name: str) -> Incomplete: ... diff --git a/stubs/docutils/docutils/statemachine.pyi b/stubs/docutils/docutils/statemachine.pyi index 964e6fa3f..0f6820f05 100644 --- a/stubs/docutils/docutils/statemachine.pyi +++ b/stubs/docutils/docutils/statemachine.pyi @@ -1,3 +1,3 @@ -from typing import Any +from _typeshed import Incomplete -def __getattr__(name: str) -> Any: ... # incomplete +def __getattr__(name: str) -> Incomplete: ... diff --git a/stubs/docutils/docutils/transforms/__init__.pyi b/stubs/docutils/docutils/transforms/__init__.pyi index 92b6fcb2d..1fdb00b4a 100644 --- a/stubs/docutils/docutils/transforms/__init__.pyi +++ b/stubs/docutils/docutils/transforms/__init__.pyi @@ -1,14 +1,14 @@ -from typing import Any +from _typeshed import Incomplete from docutils.nodes import Node, document class Transform: def __init__(self, document: document, startnode: Node | None = ...): ... - def __getattr__(self, __name: str) -> Any: ... # incomplete + def __getattr__(self, __name: str) -> Incomplete: ... class Transformer: def __init__(self, document: document): ... def add_transform(self, transform_class: type[Transform], priority: int | None = ..., **kwargs) -> None: ... - def __getattr__(self, __name: str) -> Any: ... # incomplete + def __getattr__(self, __name: str) -> Incomplete: ... -def __getattr__(name: str) -> Any: ... # incomplete +def __getattr__(name: str) -> Incomplete: ... diff --git a/stubs/docutils/docutils/utils/__init__.pyi b/stubs/docutils/docutils/utils/__init__.pyi index 782dbb91e..8c3733dbb 100644 --- a/stubs/docutils/docutils/utils/__init__.pyi +++ b/stubs/docutils/docutils/utils/__init__.pyi @@ -1,7 +1,7 @@ import optparse +from _typeshed import Incomplete from builtins import list as _list # alias to avoid name clashes with fields named list from collections.abc import Iterable -from typing import Any from typing_extensions import Literal, TypeAlias from docutils import ApplicationError @@ -28,7 +28,7 @@ class Reporter: source: str report_level: _SystemMessageLevel halt_level: _SystemMessageLevel - def __getattr__(self, __name: str) -> Any: ... # incomplete + def __getattr__(self, __name: str) -> Incomplete: ... class SystemMessage(ApplicationError): level: _SystemMessageLevel @@ -36,4 +36,4 @@ class SystemMessage(ApplicationError): def new_reporter(source_path: str, settings: optparse.Values) -> Reporter: ... def new_document(source_path: str, settings: optparse.Values | None = ...) -> document: ... -def __getattr__(name: str) -> Any: ... # incomplete +def __getattr__(name: str) -> Incomplete: ... diff --git a/stubs/docutils/docutils/writers/__init__.pyi b/stubs/docutils/docutils/writers/__init__.pyi index 964e6fa3f..0f6820f05 100644 --- a/stubs/docutils/docutils/writers/__init__.pyi +++ b/stubs/docutils/docutils/writers/__init__.pyi @@ -1,3 +1,3 @@ -from typing import Any +from _typeshed import Incomplete -def __getattr__(name: str) -> Any: ... # incomplete +def __getattr__(name: str) -> Incomplete: ... diff --git a/stubs/docutils/docutils/writers/docutils_xml.pyi b/stubs/docutils/docutils/writers/docutils_xml.pyi index 964e6fa3f..0f6820f05 100644 --- a/stubs/docutils/docutils/writers/docutils_xml.pyi +++ b/stubs/docutils/docutils/writers/docutils_xml.pyi @@ -1,3 +1,3 @@ -from typing import Any +from _typeshed import Incomplete -def __getattr__(name: str) -> Any: ... # incomplete +def __getattr__(name: str) -> Incomplete: ... diff --git a/stubs/docutils/docutils/writers/html4css1.pyi b/stubs/docutils/docutils/writers/html4css1.pyi index 964e6fa3f..0f6820f05 100644 --- a/stubs/docutils/docutils/writers/html4css1.pyi +++ b/stubs/docutils/docutils/writers/html4css1.pyi @@ -1,3 +1,3 @@ -from typing import Any +from _typeshed import Incomplete -def __getattr__(name: str) -> Any: ... # incomplete +def __getattr__(name: str) -> Incomplete: ... diff --git a/stubs/docutils/docutils/writers/html5_polyglot.pyi b/stubs/docutils/docutils/writers/html5_polyglot.pyi index 964e6fa3f..0f6820f05 100644 --- a/stubs/docutils/docutils/writers/html5_polyglot.pyi +++ b/stubs/docutils/docutils/writers/html5_polyglot.pyi @@ -1,3 +1,3 @@ -from typing import Any +from _typeshed import Incomplete -def __getattr__(name: str) -> Any: ... # incomplete +def __getattr__(name: str) -> Incomplete: ... diff --git a/stubs/docutils/docutils/writers/latex2e.pyi b/stubs/docutils/docutils/writers/latex2e.pyi index 964e6fa3f..0f6820f05 100644 --- a/stubs/docutils/docutils/writers/latex2e.pyi +++ b/stubs/docutils/docutils/writers/latex2e.pyi @@ -1,3 +1,3 @@ -from typing import Any +from _typeshed import Incomplete -def __getattr__(name: str) -> Any: ... # incomplete +def __getattr__(name: str) -> Incomplete: ... diff --git a/stubs/docutils/docutils/writers/manpage.pyi b/stubs/docutils/docutils/writers/manpage.pyi index 964e6fa3f..0f6820f05 100644 --- a/stubs/docutils/docutils/writers/manpage.pyi +++ b/stubs/docutils/docutils/writers/manpage.pyi @@ -1,3 +1,3 @@ -from typing import Any +from _typeshed import Incomplete -def __getattr__(name: str) -> Any: ... # incomplete +def __getattr__(name: str) -> Incomplete: ... diff --git a/stubs/docutils/docutils/writers/null.pyi b/stubs/docutils/docutils/writers/null.pyi index 964e6fa3f..0f6820f05 100644 --- a/stubs/docutils/docutils/writers/null.pyi +++ b/stubs/docutils/docutils/writers/null.pyi @@ -1,3 +1,3 @@ -from typing import Any +from _typeshed import Incomplete -def __getattr__(name: str) -> Any: ... # incomplete +def __getattr__(name: str) -> Incomplete: ... diff --git a/stubs/docutils/docutils/writers/odf_odt.pyi b/stubs/docutils/docutils/writers/odf_odt.pyi index 964e6fa3f..0f6820f05 100644 --- a/stubs/docutils/docutils/writers/odf_odt.pyi +++ b/stubs/docutils/docutils/writers/odf_odt.pyi @@ -1,3 +1,3 @@ -from typing import Any +from _typeshed import Incomplete -def __getattr__(name: str) -> Any: ... # incomplete +def __getattr__(name: str) -> Incomplete: ... diff --git a/stubs/docutils/docutils/writers/pep_html.pyi b/stubs/docutils/docutils/writers/pep_html.pyi index 964e6fa3f..0f6820f05 100644 --- a/stubs/docutils/docutils/writers/pep_html.pyi +++ b/stubs/docutils/docutils/writers/pep_html.pyi @@ -1,3 +1,3 @@ -from typing import Any +from _typeshed import Incomplete -def __getattr__(name: str) -> Any: ... # incomplete +def __getattr__(name: str) -> Incomplete: ... diff --git a/stubs/docutils/docutils/writers/pseudoxml.pyi b/stubs/docutils/docutils/writers/pseudoxml.pyi index 964e6fa3f..0f6820f05 100644 --- a/stubs/docutils/docutils/writers/pseudoxml.pyi +++ b/stubs/docutils/docutils/writers/pseudoxml.pyi @@ -1,3 +1,3 @@ -from typing import Any +from _typeshed import Incomplete -def __getattr__(name: str) -> Any: ... # incomplete +def __getattr__(name: str) -> Incomplete: ... diff --git a/stubs/docutils/docutils/writers/s5_html.pyi b/stubs/docutils/docutils/writers/s5_html.pyi index 964e6fa3f..0f6820f05 100644 --- a/stubs/docutils/docutils/writers/s5_html.pyi +++ b/stubs/docutils/docutils/writers/s5_html.pyi @@ -1,3 +1,3 @@ -from typing import Any +from _typeshed import Incomplete -def __getattr__(name: str) -> Any: ... # incomplete +def __getattr__(name: str) -> Incomplete: ... diff --git a/stubs/docutils/docutils/writers/xetex.pyi b/stubs/docutils/docutils/writers/xetex.pyi index 964e6fa3f..0f6820f05 100644 --- a/stubs/docutils/docutils/writers/xetex.pyi +++ b/stubs/docutils/docutils/writers/xetex.pyi @@ -1,3 +1,3 @@ -from typing import Any +from _typeshed import Incomplete -def __getattr__(name: str) -> Any: ... # incomplete +def __getattr__(name: str) -> Incomplete: ... diff --git a/stubs/flake8-bugbear/bugbear.pyi b/stubs/flake8-bugbear/bugbear.pyi index dac90d0c1..d0b61fa80 100644 --- a/stubs/flake8-bugbear/bugbear.pyi +++ b/stubs/flake8-bugbear/bugbear.pyi @@ -1,5 +1,6 @@ import argparse import ast +from _typeshed import Incomplete from collections.abc import Sequence from typing import Any @@ -23,6 +24,6 @@ class BugBearChecker: max_line_length: int = ..., options: argparse.Namespace | None = ..., ) -> None: ... - def __getattr__(self, name: str) -> Any: ... # incomplete (other attributes are normally not accessed) + def __getattr__(self, name: str) -> Incomplete: ... # incomplete (other attributes are normally not accessed) -def __getattr__(name: str) -> Any: ... # incomplete (other attributes are normally not accessed) +def __getattr__(name: str) -> Incomplete: ... diff --git a/stubs/flake8-builtins/flake8_builtins.pyi b/stubs/flake8-builtins/flake8_builtins.pyi index ffca177d8..c6aa608ca 100644 --- a/stubs/flake8-builtins/flake8_builtins.pyi +++ b/stubs/flake8-builtins/flake8_builtins.pyi @@ -1,4 +1,5 @@ import ast +from _typeshed import Incomplete from collections.abc import Generator from typing import Any, ClassVar @@ -8,4 +9,4 @@ class BuiltinsChecker: def __init__(self, tree: ast.AST, filename: str) -> None: ... def run(self) -> Generator[tuple[int, int, str, type[Any]], None, None]: ... -def __getattr__(name: str) -> Any: ... # incomplete (other attributes are normally not accessed) +def __getattr__(name: str) -> Incomplete: ... # incomplete (other attributes are normally not accessed) diff --git a/stubs/flake8-docstrings/flake8_docstrings.pyi b/stubs/flake8-docstrings/flake8_docstrings.pyi index 08bdc39e0..49d96ed6e 100644 --- a/stubs/flake8-docstrings/flake8_docstrings.pyi +++ b/stubs/flake8-docstrings/flake8_docstrings.pyi @@ -1,5 +1,6 @@ import argparse import ast +from _typeshed import Incomplete from collections.abc import Generator, Iterable from typing import Any, ClassVar @@ -17,4 +18,4 @@ class pep257Checker: def parse_options(cls, options: argparse.Namespace) -> None: ... def run(self) -> Generator[tuple[int, int, str, type[Any]], None, None]: ... -def __getattr__(name: str) -> Any: ... # incomplete +def __getattr__(name: str) -> Incomplete: ... diff --git a/stubs/flake8-typing-imports/flake8_typing_imports.pyi b/stubs/flake8-typing-imports/flake8_typing_imports.pyi index 8ea857c9b..93212549f 100644 --- a/stubs/flake8-typing-imports/flake8_typing_imports.pyi +++ b/stubs/flake8-typing-imports/flake8_typing_imports.pyi @@ -1,5 +1,6 @@ import argparse import ast +from _typeshed import Incomplete from collections.abc import Generator from typing import Any, ClassVar @@ -13,4 +14,4 @@ class Plugin: def __init__(self, tree: ast.AST) -> None: ... def run(self) -> Generator[tuple[int, int, str, type[Any]], None, None]: ... -def __getattr__(name: str) -> Any: ... # incomplete (other attributes are normally not accessed) +def __getattr__(name: str) -> Incomplete: ... # incomplete (other attributes are normally not accessed) diff --git a/stubs/pep8-naming/pep8ext_naming.pyi b/stubs/pep8-naming/pep8ext_naming.pyi index 13e7e48fb..d15907134 100644 --- a/stubs/pep8-naming/pep8ext_naming.pyi +++ b/stubs/pep8-naming/pep8ext_naming.pyi @@ -1,4 +1,5 @@ import ast +from _typeshed import Incomplete from argparse import Namespace from collections.abc import Generator, Iterable from typing import Any @@ -25,6 +26,6 @@ class NamingChecker: def run(self) -> Generator[tuple[int, int, str, type[Any]], None, None]: ... def tag_class_functions(self, cls_node: ast.ClassDef) -> None: ... def set_function_nodes_types(self, nodes: Iterable[ast.AST], ismetaclass: bool, late_decoration: dict[str, str]) -> None: ... - def __getattr__(self, name: str) -> Any: ... # incomplete (other attributes are normally not accessed) + def __getattr__(self, name: str) -> Incomplete: ... # incomplete (other attributes are normally not accessed) -def __getattr__(name: str) -> Any: ... # incomplete (other attributes are normally not accessed) +def __getattr__(name: str) -> Incomplete: ... # incomplete (other attributes are normally not accessed) diff --git a/stubs/psutil/psutil/_psutil_windows.pyi b/stubs/psutil/psutil/_psutil_windows.pyi index 964e6fa3f..0f6820f05 100644 --- a/stubs/psutil/psutil/_psutil_windows.pyi +++ b/stubs/psutil/psutil/_psutil_windows.pyi @@ -1,3 +1,3 @@ -from typing import Any +from _typeshed import Incomplete -def __getattr__(name: str) -> Any: ... # incomplete +def __getattr__(name: str) -> Incomplete: ... diff --git a/stubs/pyOpenSSL/OpenSSL/SSL.pyi b/stubs/pyOpenSSL/OpenSSL/SSL.pyi index 7f6d8de53..b119ece0d 100644 --- a/stubs/pyOpenSSL/OpenSSL/SSL.pyi +++ b/stubs/pyOpenSSL/OpenSSL/SSL.pyi @@ -177,7 +177,7 @@ class Connection: _T = TypeVar("_T") class Context: - def __getattr__(self, name: str) -> Any: ... # incomplete + def __getattr__(self, name: str) -> Incomplete: ... def __init__(self, method: int) -> None: ... def load_verify_locations(self, cafile: str | None, capath: str | None = ...) -> None: ... def set_options(self, options: int) -> None: ... diff --git a/stubs/pytest-lazy-fixture/pytest_lazyfixture.pyi b/stubs/pytest-lazy-fixture/pytest_lazyfixture.pyi index bcbf329c0..2cc83b5b3 100644 --- a/stubs/pytest-lazy-fixture/pytest_lazyfixture.pyi +++ b/stubs/pytest-lazy-fixture/pytest_lazyfixture.pyi @@ -1,3 +1,4 @@ +from _typeshed import Incomplete from collections.abc import Iterable from typing import Any, overload @@ -12,4 +13,4 @@ def lazy_fixture(names: str) -> LazyFixture: ... def lazy_fixture(names: Iterable[str]) -> list[LazyFixture] | Any: ... def is_lazy_fixture(val: Any) -> bool: ... def pytest_configure() -> None: ... -def __getattr__(name: str) -> Any: ... # incomplete +def __getattr__(name: str) -> Incomplete: ... diff --git a/stubs/pyvmomi/pyVmomi/vim/__init__.pyi b/stubs/pyvmomi/pyVmomi/vim/__init__.pyi index c8c47e1a0..f31d6fef6 100644 --- a/stubs/pyvmomi/pyVmomi/vim/__init__.pyi +++ b/stubs/pyvmomi/pyVmomi/vim/__init__.pyi @@ -1,3 +1,4 @@ +from _typeshed import Incomplete from datetime import datetime from enum import Enum from typing import Any @@ -7,7 +8,7 @@ from .event import EventManager from .option import OptionManager from .view import ViewManager -def __getattr__(name: str) -> Any: ... # incomplete +def __getattr__(name: str) -> Incomplete: ... class ManagedObject: ... @@ -15,7 +16,7 @@ class ManagedEntity(ManagedObject): _moId: str obj: None name: str - def __getattr__(self, name: str) -> Any: ... # incomplete + def __getattr__(self, name: str) -> Incomplete: ... class ServiceInstanceContent: setting: OptionManager @@ -24,12 +25,12 @@ class ServiceInstanceContent: viewManager: ViewManager perfManager: PerformanceManager eventManager: EventManager - def __getattr__(self, name: str) -> Any: ... # incomplete + def __getattr__(self, name: str) -> Incomplete: ... class ServiceInstance: content: ServiceInstanceContent def CurrentTime(self) -> datetime: ... - def __getattr__(self, name: str) -> Any: ... # incomplete + def __getattr__(self, name: str) -> Incomplete: ... class PerformanceManager: class MetricId: @@ -42,7 +43,7 @@ class PerformanceManager: groupInfo: Any nameInfo: Any rollupType: Any - def __getattr__(self, name: str) -> Any: ... # incomplete + def __getattr__(self, name: str) -> Incomplete: ... class QuerySpec: entity: ManagedEntity @@ -50,13 +51,13 @@ class PerformanceManager: intervalId: int maxSample: int startTime: datetime - def __getattr__(self, name: str) -> Any: ... # incomplete + def __getattr__(self, name: str) -> Incomplete: ... class EntityMetricBase: entity: ManagedEntity def QueryPerfCounterByLevel(self, collection_level: int) -> list[PerformanceManager.PerfCounterInfo]: ... def QueryPerf(self, querySpec: list[PerformanceManager.QuerySpec]) -> list[PerformanceManager.EntityMetricBase]: ... - def __getattr__(self, name: str) -> Any: ... # incomplete + def __getattr__(self, name: str) -> Incomplete: ... class ClusterComputeResource(ManagedEntity): ... class ComputeResource(ManagedEntity): ...