diff --git a/pyrightconfig.stricter.json b/pyrightconfig.stricter.json index a38c73ba6..b24a9abf2 100644 --- a/pyrightconfig.stricter.json +++ b/pyrightconfig.stricter.json @@ -8,8 +8,10 @@ "exclude": [ // test cases use a custom pyrightconfig file "**/@tests/test_cases", + "stdlib/__main__.pyi", "stdlib/distutils/command", "stdlib/distutils/dist.pyi", + "stdlib/encodings/__init__.pyi", "stdlib/lib2to3/fixes/*.pyi", "stdlib/numbers.pyi", "stdlib/optparse.pyi", @@ -38,6 +40,7 @@ "stubs/defusedxml", "stubs/docker", "stubs/docutils", + "stubs/flake8-typing-imports", "stubs/Flask-SocketIO", "stubs/fpdf2", "stubs/gdb", @@ -79,6 +82,7 @@ "stubs/Pygments", "stubs/PyMySQL", "stubs/python-crontab", + "stubs/python-datemath", "stubs/python-dateutil", "stubs/python-http-client", "stubs/python-jose", diff --git a/stdlib/__main__.pyi b/stdlib/__main__.pyi index e27843e53..5b0f74feb 100644 --- a/stdlib/__main__.pyi +++ b/stdlib/__main__.pyi @@ -1,3 +1 @@ -from typing import Any - -def __getattr__(name: str) -> Any: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stdlib/encodings/__init__.pyi b/stdlib/encodings/__init__.pyi index 2e83f0f65..12ec6792d 100644 --- a/stdlib/encodings/__init__.pyi +++ b/stdlib/encodings/__init__.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from codecs import CodecInfo class CodecRegistryError(LookupError, SystemError): ... @@ -7,4 +6,4 @@ def normalize_encoding(encoding: str | bytes) -> str: ... def search_function(encoding: str) -> CodecInfo | None: ... # Needed for submodules -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/Pygments/pygments/lexers/__init__.pyi b/stubs/Pygments/pygments/lexers/__init__.pyi index 12dadbcf3..128c5dcaf 100644 --- a/stubs/Pygments/pygments/lexers/__init__.pyi +++ b/stubs/Pygments/pygments/lexers/__init__.pyi @@ -1,4 +1,4 @@ -from _typeshed import FileDescriptorOrPath, Incomplete, StrPath +from _typeshed import FileDescriptorOrPath, StrPath from collections.abc import Iterator from typing import Any @@ -16,4 +16,4 @@ def guess_lexer_for_filename(_fn: StrPath, _text: str, **options: Any) -> Lexer: 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) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/Pygments/pygments/styles/__init__.pyi b/stubs/Pygments/pygments/styles/__init__.pyi index 77d42db8f..6aeb9cf90 100644 --- a/stubs/Pygments/pygments/styles/__init__.pyi +++ b/stubs/Pygments/pygments/styles/__init__.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from collections.abc import Iterator, Mapping from pygments.style import Style @@ -10,4 +9,4 @@ def get_style_by_name(name) -> type[Style]: ... def get_all_styles() -> Iterator[str]: ... # Having every style class here doesn't seem to be worth it -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/docutils/docutils/examples.pyi b/stubs/docutils/docutils/examples.pyi index 0f6820f05..5b0f74feb 100644 --- a/stubs/docutils/docutils/examples.pyi +++ b/stubs/docutils/docutils/examples.pyi @@ -1,3 +1 @@ -from _typeshed import Incomplete - -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/docutils/docutils/parsers/recommonmark_wrapper.pyi b/stubs/docutils/docutils/parsers/recommonmark_wrapper.pyi index 0f6820f05..5b0f74feb 100644 --- a/stubs/docutils/docutils/parsers/recommonmark_wrapper.pyi +++ b/stubs/docutils/docutils/parsers/recommonmark_wrapper.pyi @@ -1,3 +1 @@ -from _typeshed import Incomplete - -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/docutils/docutils/parsers/rst/directives/body.pyi b/stubs/docutils/docutils/parsers/rst/directives/body.pyi index 0f6820f05..5b0f74feb 100644 --- a/stubs/docutils/docutils/parsers/rst/directives/body.pyi +++ b/stubs/docutils/docutils/parsers/rst/directives/body.pyi @@ -1,3 +1 @@ -from _typeshed import Incomplete - -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/docutils/docutils/parsers/rst/directives/html.pyi b/stubs/docutils/docutils/parsers/rst/directives/html.pyi index 0f6820f05..5b0f74feb 100644 --- a/stubs/docutils/docutils/parsers/rst/directives/html.pyi +++ b/stubs/docutils/docutils/parsers/rst/directives/html.pyi @@ -1,3 +1 @@ -from _typeshed import Incomplete - -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/docutils/docutils/parsers/rst/directives/images.pyi b/stubs/docutils/docutils/parsers/rst/directives/images.pyi index 0f6820f05..5b0f74feb 100644 --- a/stubs/docutils/docutils/parsers/rst/directives/images.pyi +++ b/stubs/docutils/docutils/parsers/rst/directives/images.pyi @@ -1,3 +1 @@ -from _typeshed import Incomplete - -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/docutils/docutils/parsers/rst/directives/tables.pyi b/stubs/docutils/docutils/parsers/rst/directives/tables.pyi index 0f6820f05..5b0f74feb 100644 --- a/stubs/docutils/docutils/parsers/rst/directives/tables.pyi +++ b/stubs/docutils/docutils/parsers/rst/directives/tables.pyi @@ -1,3 +1 @@ -from _typeshed import Incomplete - -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/docutils/docutils/parsers/rst/states.pyi b/stubs/docutils/docutils/parsers/rst/states.pyi index 93b706272..33d80a454 100644 --- a/stubs/docutils/docutils/parsers/rst/states.pyi +++ b/stubs/docutils/docutils/parsers/rst/states.pyi @@ -141,4 +141,4 @@ class Inliner: def implicit_inline(self, text: str, lineno: int) -> list[nodes.Text]: ... dispatch: dict[str, Callable[[Match[str], int], tuple[str, list[nodes.problematic], str, list[nodes.system_message]]]] = ... -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/docutils/docutils/readers/pep.pyi b/stubs/docutils/docutils/readers/pep.pyi index 0f6820f05..5b0f74feb 100644 --- a/stubs/docutils/docutils/readers/pep.pyi +++ b/stubs/docutils/docutils/readers/pep.pyi @@ -1,3 +1 @@ -from _typeshed import Incomplete - -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/docutils/docutils/readers/standalone.pyi b/stubs/docutils/docutils/readers/standalone.pyi index 0f6820f05..5b0f74feb 100644 --- a/stubs/docutils/docutils/readers/standalone.pyi +++ b/stubs/docutils/docutils/readers/standalone.pyi @@ -1,3 +1 @@ -from _typeshed import Incomplete - -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/docutils/docutils/transforms/__init__.pyi b/stubs/docutils/docutils/transforms/__init__.pyi index 13323fcbb..589817290 100644 --- a/stubs/docutils/docutils/transforms/__init__.pyi +++ b/stubs/docutils/docutils/transforms/__init__.pyi @@ -11,4 +11,4 @@ class Transformer: def add_transform(self, transform_class: type[Transform], priority: int | None = None, **kwargs) -> None: ... def __getattr__(self, name: str, /) -> Incomplete: ... -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/docutils/docutils/writers/docutils_xml.pyi b/stubs/docutils/docutils/writers/docutils_xml.pyi index 0f6820f05..5b0f74feb 100644 --- a/stubs/docutils/docutils/writers/docutils_xml.pyi +++ b/stubs/docutils/docutils/writers/docutils_xml.pyi @@ -1,3 +1 @@ -from _typeshed import Incomplete - -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/docutils/docutils/writers/html4css1.pyi b/stubs/docutils/docutils/writers/html4css1.pyi index 0f6820f05..5b0f74feb 100644 --- a/stubs/docutils/docutils/writers/html4css1.pyi +++ b/stubs/docutils/docutils/writers/html4css1.pyi @@ -1,3 +1 @@ -from _typeshed import Incomplete - -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/docutils/docutils/writers/html5_polyglot.pyi b/stubs/docutils/docutils/writers/html5_polyglot.pyi index 0f6820f05..5b0f74feb 100644 --- a/stubs/docutils/docutils/writers/html5_polyglot.pyi +++ b/stubs/docutils/docutils/writers/html5_polyglot.pyi @@ -1,3 +1 @@ -from _typeshed import Incomplete - -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/docutils/docutils/writers/latex2e.pyi b/stubs/docutils/docutils/writers/latex2e.pyi index 9719f2759..69f1fda5b 100644 --- a/stubs/docutils/docutils/writers/latex2e.pyi +++ b/stubs/docutils/docutils/writers/latex2e.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from typing import ClassVar from docutils.utils import Reporter @@ -17,4 +16,4 @@ class Babel: def language_name(self, language_code: str) -> str: ... def get_language(self) -> str: ... -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/docutils/docutils/writers/manpage.pyi b/stubs/docutils/docutils/writers/manpage.pyi index 0f6820f05..5b0f74feb 100644 --- a/stubs/docutils/docutils/writers/manpage.pyi +++ b/stubs/docutils/docutils/writers/manpage.pyi @@ -1,3 +1 @@ -from _typeshed import Incomplete - -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/docutils/docutils/writers/null.pyi b/stubs/docutils/docutils/writers/null.pyi index 0f6820f05..5b0f74feb 100644 --- a/stubs/docutils/docutils/writers/null.pyi +++ b/stubs/docutils/docutils/writers/null.pyi @@ -1,3 +1 @@ -from _typeshed import Incomplete - -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/docutils/docutils/writers/odf_odt.pyi b/stubs/docutils/docutils/writers/odf_odt.pyi index 0f6820f05..5b0f74feb 100644 --- a/stubs/docutils/docutils/writers/odf_odt.pyi +++ b/stubs/docutils/docutils/writers/odf_odt.pyi @@ -1,3 +1 @@ -from _typeshed import Incomplete - -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/docutils/docutils/writers/pep_html.pyi b/stubs/docutils/docutils/writers/pep_html.pyi index 0f6820f05..5b0f74feb 100644 --- a/stubs/docutils/docutils/writers/pep_html.pyi +++ b/stubs/docutils/docutils/writers/pep_html.pyi @@ -1,3 +1 @@ -from _typeshed import Incomplete - -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/docutils/docutils/writers/pseudoxml.pyi b/stubs/docutils/docutils/writers/pseudoxml.pyi index 0f6820f05..5b0f74feb 100644 --- a/stubs/docutils/docutils/writers/pseudoxml.pyi +++ b/stubs/docutils/docutils/writers/pseudoxml.pyi @@ -1,3 +1 @@ -from _typeshed import Incomplete - -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/docutils/docutils/writers/s5_html.pyi b/stubs/docutils/docutils/writers/s5_html.pyi index 0f6820f05..5b0f74feb 100644 --- a/stubs/docutils/docutils/writers/s5_html.pyi +++ b/stubs/docutils/docutils/writers/s5_html.pyi @@ -1,3 +1 @@ -from _typeshed import Incomplete - -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/docutils/docutils/writers/xetex.pyi b/stubs/docutils/docutils/writers/xetex.pyi index 0f6820f05..5b0f74feb 100644 --- a/stubs/docutils/docutils/writers/xetex.pyi +++ b/stubs/docutils/docutils/writers/xetex.pyi @@ -1,3 +1 @@ -from _typeshed import Incomplete - -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/flake8-typing-imports/flake8_typing_imports.pyi b/stubs/flake8-typing-imports/flake8_typing_imports.pyi index 93212549f..e9da0dae4 100644 --- a/stubs/flake8-typing-imports/flake8_typing_imports.pyi +++ b/stubs/flake8-typing-imports/flake8_typing_imports.pyi @@ -1,6 +1,5 @@ import argparse import ast -from _typeshed import Incomplete from collections.abc import Generator from typing import Any, ClassVar @@ -14,4 +13,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) -> Incomplete: ... # incomplete (other attributes are normally not accessed) +def __getattr__(name: str): ... # incomplete module (other attributes are normally not accessed) diff --git a/stubs/gdb/gdb/dap/breakpoint.pyi b/stubs/gdb/gdb/dap/breakpoint.pyi index 0f6820f05..5b0f74feb 100644 --- a/stubs/gdb/gdb/dap/breakpoint.pyi +++ b/stubs/gdb/gdb/dap/breakpoint.pyi @@ -1,3 +1 @@ -from _typeshed import Incomplete - -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/gdb/gdb/dap/bt.pyi b/stubs/gdb/gdb/dap/bt.pyi index 0f6820f05..5b0f74feb 100644 --- a/stubs/gdb/gdb/dap/bt.pyi +++ b/stubs/gdb/gdb/dap/bt.pyi @@ -1,3 +1 @@ -from _typeshed import Incomplete - -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/gdb/gdb/dap/disassemble.pyi b/stubs/gdb/gdb/dap/disassemble.pyi index 0f6820f05..5b0f74feb 100644 --- a/stubs/gdb/gdb/dap/disassemble.pyi +++ b/stubs/gdb/gdb/dap/disassemble.pyi @@ -1,3 +1 @@ -from _typeshed import Incomplete - -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/gdb/gdb/dap/evaluate.pyi b/stubs/gdb/gdb/dap/evaluate.pyi index 0f6820f05..5b0f74feb 100644 --- a/stubs/gdb/gdb/dap/evaluate.pyi +++ b/stubs/gdb/gdb/dap/evaluate.pyi @@ -1,3 +1 @@ -from _typeshed import Incomplete - -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/gdb/gdb/dap/events.pyi b/stubs/gdb/gdb/dap/events.pyi index 0f6820f05..5b0f74feb 100644 --- a/stubs/gdb/gdb/dap/events.pyi +++ b/stubs/gdb/gdb/dap/events.pyi @@ -1,3 +1 @@ -from _typeshed import Incomplete - -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/gdb/gdb/dap/frames.pyi b/stubs/gdb/gdb/dap/frames.pyi index 0f6820f05..5b0f74feb 100644 --- a/stubs/gdb/gdb/dap/frames.pyi +++ b/stubs/gdb/gdb/dap/frames.pyi @@ -1,3 +1 @@ -from _typeshed import Incomplete - -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/gdb/gdb/dap/io.pyi b/stubs/gdb/gdb/dap/io.pyi index 0f6820f05..5b0f74feb 100644 --- a/stubs/gdb/gdb/dap/io.pyi +++ b/stubs/gdb/gdb/dap/io.pyi @@ -1,3 +1 @@ -from _typeshed import Incomplete - -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/gdb/gdb/dap/launch.pyi b/stubs/gdb/gdb/dap/launch.pyi index 0f6820f05..5b0f74feb 100644 --- a/stubs/gdb/gdb/dap/launch.pyi +++ b/stubs/gdb/gdb/dap/launch.pyi @@ -1,3 +1 @@ -from _typeshed import Incomplete - -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/gdb/gdb/dap/locations.pyi b/stubs/gdb/gdb/dap/locations.pyi index 0f6820f05..5b0f74feb 100644 --- a/stubs/gdb/gdb/dap/locations.pyi +++ b/stubs/gdb/gdb/dap/locations.pyi @@ -1,3 +1 @@ -from _typeshed import Incomplete - -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/gdb/gdb/dap/memory.pyi b/stubs/gdb/gdb/dap/memory.pyi index 0f6820f05..5b0f74feb 100644 --- a/stubs/gdb/gdb/dap/memory.pyi +++ b/stubs/gdb/gdb/dap/memory.pyi @@ -1,3 +1 @@ -from _typeshed import Incomplete - -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/gdb/gdb/dap/modules.pyi b/stubs/gdb/gdb/dap/modules.pyi index 0f6820f05..5b0f74feb 100644 --- a/stubs/gdb/gdb/dap/modules.pyi +++ b/stubs/gdb/gdb/dap/modules.pyi @@ -1,3 +1 @@ -from _typeshed import Incomplete - -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/gdb/gdb/dap/next.pyi b/stubs/gdb/gdb/dap/next.pyi index 0f6820f05..5b0f74feb 100644 --- a/stubs/gdb/gdb/dap/next.pyi +++ b/stubs/gdb/gdb/dap/next.pyi @@ -1,3 +1 @@ -from _typeshed import Incomplete - -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/gdb/gdb/dap/pause.pyi b/stubs/gdb/gdb/dap/pause.pyi index 0f6820f05..5b0f74feb 100644 --- a/stubs/gdb/gdb/dap/pause.pyi +++ b/stubs/gdb/gdb/dap/pause.pyi @@ -1,3 +1 @@ -from _typeshed import Incomplete - -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/gdb/gdb/dap/scopes.pyi b/stubs/gdb/gdb/dap/scopes.pyi index 0f6820f05..5b0f74feb 100644 --- a/stubs/gdb/gdb/dap/scopes.pyi +++ b/stubs/gdb/gdb/dap/scopes.pyi @@ -1,3 +1 @@ -from _typeshed import Incomplete - -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/gdb/gdb/dap/server.pyi b/stubs/gdb/gdb/dap/server.pyi index 0f6820f05..5b0f74feb 100644 --- a/stubs/gdb/gdb/dap/server.pyi +++ b/stubs/gdb/gdb/dap/server.pyi @@ -1,3 +1 @@ -from _typeshed import Incomplete - -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/gdb/gdb/dap/sources.pyi b/stubs/gdb/gdb/dap/sources.pyi index 0f6820f05..5b0f74feb 100644 --- a/stubs/gdb/gdb/dap/sources.pyi +++ b/stubs/gdb/gdb/dap/sources.pyi @@ -1,3 +1 @@ -from _typeshed import Incomplete - -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/gdb/gdb/dap/startup.pyi b/stubs/gdb/gdb/dap/startup.pyi index 0f6820f05..5b0f74feb 100644 --- a/stubs/gdb/gdb/dap/startup.pyi +++ b/stubs/gdb/gdb/dap/startup.pyi @@ -1,3 +1 @@ -from _typeshed import Incomplete - -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/gdb/gdb/dap/state.pyi b/stubs/gdb/gdb/dap/state.pyi index 0f6820f05..5b0f74feb 100644 --- a/stubs/gdb/gdb/dap/state.pyi +++ b/stubs/gdb/gdb/dap/state.pyi @@ -1,3 +1 @@ -from _typeshed import Incomplete - -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/gdb/gdb/dap/threads.pyi b/stubs/gdb/gdb/dap/threads.pyi index 0f6820f05..5b0f74feb 100644 --- a/stubs/gdb/gdb/dap/threads.pyi +++ b/stubs/gdb/gdb/dap/threads.pyi @@ -1,3 +1 @@ -from _typeshed import Incomplete - -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/gdb/gdb/dap/typecheck.pyi b/stubs/gdb/gdb/dap/typecheck.pyi index 0f6820f05..5b0f74feb 100644 --- a/stubs/gdb/gdb/dap/typecheck.pyi +++ b/stubs/gdb/gdb/dap/typecheck.pyi @@ -1,3 +1 @@ -from _typeshed import Incomplete - -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/gdb/gdb/dap/varref.pyi b/stubs/gdb/gdb/dap/varref.pyi index 0f6820f05..5b0f74feb 100644 --- a/stubs/gdb/gdb/dap/varref.pyi +++ b/stubs/gdb/gdb/dap/varref.pyi @@ -1,3 +1 @@ -from _typeshed import Incomplete - -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/python-datemath/datemath/helpers.pyi b/stubs/python-datemath/datemath/helpers.pyi index ea600a2c4..a8063825e 100644 --- a/stubs/python-datemath/datemath/helpers.pyi +++ b/stubs/python-datemath/datemath/helpers.pyi @@ -1,5 +1,3 @@ -from _typeshed import Incomplete - import arrow class DateMathException(Exception): ... @@ -7,4 +5,4 @@ class DateMathException(Exception): ... def parse( expression: str, now: arrow.Arrow | None = None, tz: str = "UTC", type: str | None = None, roundDown: bool = True ) -> arrow.Arrow: ... -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/tensorflow/tensorflow/__init__.pyi b/stubs/tensorflow/tensorflow/__init__.pyi index 298bc5d83..647e29ab0 100644 --- a/stubs/tensorflow/tensorflow/__init__.pyi +++ b/stubs/tensorflow/tensorflow/__init__.pyi @@ -432,4 +432,4 @@ def gather_nd( name: str | None = None, bad_indices_policy: Literal["", "DEFAULT", "ERROR", "IGNORE"] = "", ) -> Tensor: ... -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/tensorflow/tensorflow/config/__init__.pyi b/stubs/tensorflow/tensorflow/config/__init__.pyi index 78721953f..1eb72d000 100644 --- a/stubs/tensorflow/tensorflow/config/__init__.pyi +++ b/stubs/tensorflow/tensorflow/config/__init__.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from typing import NamedTuple from tensorflow.config import experimental as experimental @@ -10,4 +9,4 @@ class PhysicalDevice(NamedTuple): def list_physical_devices(device_type: None | str = None) -> list[PhysicalDevice]: ... def get_visible_devices(device_type: None | str = None) -> list[PhysicalDevice]: ... def set_visible_devices(devices: list[PhysicalDevice] | PhysicalDevice, device_type: None | str = None) -> None: ... -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/tensorflow/tensorflow/config/experimental.pyi b/stubs/tensorflow/tensorflow/config/experimental.pyi index 53b427765..1cb74feba 100644 --- a/stubs/tensorflow/tensorflow/config/experimental.pyi +++ b/stubs/tensorflow/tensorflow/config/experimental.pyi @@ -1,5 +1,4 @@ import typing_extensions -from _typeshed import Incomplete from typing import TypedDict from tensorflow.config import PhysicalDevice @@ -14,4 +13,4 @@ def reset_memory_stats(device: str) -> None: ... def get_memory_usage(device: PhysicalDevice) -> int: ... def get_memory_growth(device: PhysicalDevice) -> bool: ... def set_memory_growth(device: PhysicalDevice, enable: bool) -> None: ... -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/tensorflow/tensorflow/data/__init__.pyi b/stubs/tensorflow/tensorflow/data/__init__.pyi index 305043f72..37520262c 100644 --- a/stubs/tensorflow/tensorflow/data/__init__.pyi +++ b/stubs/tensorflow/tensorflow/data/__init__.pyi @@ -269,4 +269,4 @@ class TFRecordDataset(Dataset[tf.Tensor]): @property def element_spec(self) -> tf.TensorSpec: ... -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/tensorflow/tensorflow/data/experimental.pyi b/stubs/tensorflow/tensorflow/data/experimental.pyi index ad2394dab..ecae0f23c 100644 --- a/stubs/tensorflow/tensorflow/data/experimental.pyi +++ b/stubs/tensorflow/tensorflow/data/experimental.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from collections.abc import Callable, Sequence from typing import Final, TypeVar @@ -30,4 +29,4 @@ def sample_from_datasets( seed: int | None = None, stop_on_empty_dataset: bool = False, ) -> Dataset[_T1]: ... -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/tensorflow/tensorflow/distribute/__init__.pyi b/stubs/tensorflow/tensorflow/distribute/__init__.pyi index e129db61a..2b3c667c6 100644 --- a/stubs/tensorflow/tensorflow/distribute/__init__.pyi +++ b/stubs/tensorflow/tensorflow/distribute/__init__.pyi @@ -1,5 +1,3 @@ -from _typeshed import Incomplete - from tensorflow.python.distribute.distribute_lib import Strategy as Strategy -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/tensorflow/tensorflow/distribute/coordinator.pyi b/stubs/tensorflow/tensorflow/distribute/coordinator.pyi index 0cda9f390..717bda55e 100644 --- a/stubs/tensorflow/tensorflow/distribute/coordinator.pyi +++ b/stubs/tensorflow/tensorflow/distribute/coordinator.pyi @@ -1,5 +1,3 @@ -from _typeshed import Incomplete - from .experimental.coordinator import RemoteValue as RemoteValue -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/tensorflow/tensorflow/distribute/experimental/coordinator.pyi b/stubs/tensorflow/tensorflow/distribute/experimental/coordinator.pyi index 92d1f6bcb..a6058895d 100644 --- a/stubs/tensorflow/tensorflow/distribute/experimental/coordinator.pyi +++ b/stubs/tensorflow/tensorflow/distribute/experimental/coordinator.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from typing import Generic, TypeVar from tensorflow._aliases import AnyArray @@ -9,4 +8,4 @@ class RemoteValue(Generic[_Value_co]): def fetch(self) -> AnyArray: ... def get(self) -> _Value_co: ... -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/tensorflow/tensorflow/dtypes.pyi b/stubs/tensorflow/tensorflow/dtypes.pyi index a17fb5d4d..a65dbd1f6 100644 --- a/stubs/tensorflow/tensorflow/dtypes.pyi +++ b/stubs/tensorflow/tensorflow/dtypes.pyi @@ -54,4 +54,4 @@ quint16: DType string: DType def as_dtype(type_value: DTypeLike) -> DType: ... -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/tensorflow/tensorflow/experimental/__init__.pyi b/stubs/tensorflow/tensorflow/experimental/__init__.pyi index 1f4add7b3..7ed331669 100644 --- a/stubs/tensorflow/tensorflow/experimental/__init__.pyi +++ b/stubs/tensorflow/tensorflow/experimental/__init__.pyi @@ -7,4 +7,4 @@ _T_co = TypeVar("_T_co", covariant=True) class Optional(ABC, Generic[_T_co]): def __getattr__(self, name: str) -> Incomplete: ... -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/tensorflow/tensorflow/experimental/dtensor.pyi b/stubs/tensorflow/tensorflow/experimental/dtensor.pyi index 178d1211f..5e374720e 100644 --- a/stubs/tensorflow/tensorflow/experimental/dtensor.pyi +++ b/stubs/tensorflow/tensorflow/experimental/dtensor.pyi @@ -16,4 +16,4 @@ class Mesh: use_xla_spmd: bool = False, ) -> None: ... -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/tensorflow/tensorflow/io/__init__.pyi b/stubs/tensorflow/tensorflow/io/__init__.pyi index 26499ce55..4f7a2f795 100644 --- a/stubs/tensorflow/tensorflow/io/__init__.pyi +++ b/stubs/tensorflow/tensorflow/io/__init__.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from collections.abc import Iterable, Mapping from types import TracebackType from typing import Literal, NamedTuple @@ -105,4 +104,4 @@ class RaggedFeature(NamedTuple): def parse_example( serialized: TensorCompatible, features: _FeatureSpecs, example_names: Iterable[str] | None = None, name: str | None = None ) -> dict[str, TensorLike]: ... -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/tensorflow/tensorflow/io/gfile.pyi b/stubs/tensorflow/tensorflow/io/gfile.pyi index ed5e3d681..85ac9ae66 100644 --- a/stubs/tensorflow/tensorflow/io/gfile.pyi +++ b/stubs/tensorflow/tensorflow/io/gfile.pyi @@ -1,4 +1,4 @@ -from _typeshed import Incomplete, StrOrBytesPath +from _typeshed import StrOrBytesPath from collections.abc import Iterable def rmtree(path: StrOrBytesPath) -> None: ... @@ -8,4 +8,4 @@ def exists(path: StrOrBytesPath) -> bool: ... def copy(src: StrOrBytesPath, dst: StrOrBytesPath, overwrite: bool = False) -> None: ... def makedirs(path: StrOrBytesPath) -> None: ... def glob(pattern: str | bytes | Iterable[str | bytes]) -> list[str]: ... -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/tensorflow/tensorflow/keras/__init__.pyi b/stubs/tensorflow/tensorflow/keras/__init__.pyi index 4aa06e9b9..c0fd26f61 100644 --- a/stubs/tensorflow/tensorflow/keras/__init__.pyi +++ b/stubs/tensorflow/tensorflow/keras/__init__.pyi @@ -1,5 +1,3 @@ -from _typeshed import Incomplete - from tensorflow.keras import ( activations as activations, callbacks as callbacks, @@ -14,4 +12,4 @@ from tensorflow.keras import ( ) from tensorflow.keras.models import Model as Model -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/tensorflow/tensorflow/keras/constraints.pyi b/stubs/tensorflow/tensorflow/keras/constraints.pyi index 29e362ee2..ccc6a92f4 100644 --- a/stubs/tensorflow/tensorflow/keras/constraints.pyi +++ b/stubs/tensorflow/tensorflow/keras/constraints.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from collections.abc import Callable from typing import Any, overload @@ -14,4 +13,4 @@ def get(identifier: None) -> None: ... def get(identifier: str | dict[str, Any] | Constraint) -> Constraint: ... @overload def get(identifier: Callable[[Tensor], Tensor]) -> Callable[[Tensor], Tensor]: ... -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/tensorflow/tensorflow/keras/initializers.pyi b/stubs/tensorflow/tensorflow/keras/initializers.pyi index 4f79faaf2..f24c31b42 100644 --- a/stubs/tensorflow/tensorflow/keras/initializers.pyi +++ b/stubs/tensorflow/tensorflow/keras/initializers.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from collections.abc import Callable from typing import Any, overload from typing_extensions import Self, TypeAlias @@ -48,4 +47,4 @@ def get(identifier: None) -> None: ... def get(identifier: str | Initializer | dict[str, Any] | type[Initializer]) -> Initializer: ... @overload def get(identifier: Callable[[ShapeLike], Tensor]) -> Callable[[ShapeLike], Tensor]: ... -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/tensorflow/tensorflow/keras/layers/__init__.pyi b/stubs/tensorflow/tensorflow/keras/layers/__init__.pyi index 21e4606f6..db7a6b91a 100644 --- a/stubs/tensorflow/tensorflow/keras/layers/__init__.pyi +++ b/stubs/tensorflow/tensorflow/keras/layers/__init__.pyi @@ -444,4 +444,4 @@ class GaussianDropout(Layer[tf.Tensor, tf.Tensor]): name: str | None = None, ) -> None: ... -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/tensorflow/tensorflow/keras/losses.pyi b/stubs/tensorflow/tensorflow/keras/losses.pyi index 5c07272f7..e6ea69e47 100644 --- a/stubs/tensorflow/tensorflow/keras/losses.pyi +++ b/stubs/tensorflow/tensorflow/keras/losses.pyi @@ -206,4 +206,4 @@ def get(identifier: _FuncT) -> _FuncT: ... # This is complete with respect to methods documented defined here, # but many methods get re-exported here from tf.keras.metrics that aren't # covered yet. -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/tensorflow/tensorflow/keras/metrics.pyi b/stubs/tensorflow/tensorflow/keras/metrics.pyi index 9e3d1e456..1d2c21918 100644 --- a/stubs/tensorflow/tensorflow/keras/metrics.pyi +++ b/stubs/tensorflow/tensorflow/keras/metrics.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from abc import ABCMeta, abstractmethod from collections.abc import Callable, Iterable, Sequence from typing import Any, Literal @@ -116,4 +115,4 @@ def binary_crossentropy( def categorical_crossentropy( y_true: TensorCompatible, y_pred: TensorCompatible, from_logits: bool = False, label_smoothing: float = 0.0, axis: int = -1 ) -> Tensor: ... -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/tensorflow/tensorflow/keras/models.pyi b/stubs/tensorflow/tensorflow/keras/models.pyi index 262bd49c8..079066d4b 100644 --- a/stubs/tensorflow/tensorflow/keras/models.pyi +++ b/stubs/tensorflow/tensorflow/keras/models.pyi @@ -166,4 +166,4 @@ class Model(Layer[_InputT_contra, _OutputT_co]): def compile_from_config(self, config: dict[str, Any]) -> Self: ... def export(self, filepath: str | Path, format: str = "tf_saved_model", verbose: bool = True) -> None: ... -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/tensorflow/tensorflow/keras/optimizers/__init__.pyi b/stubs/tensorflow/tensorflow/keras/optimizers/__init__.pyi index a1ccef2f9..1b2ae8fb8 100644 --- a/stubs/tensorflow/tensorflow/keras/optimizers/__init__.pyi +++ b/stubs/tensorflow/tensorflow/keras/optimizers/__init__.pyi @@ -4,4 +4,4 @@ from tensorflow.keras.optimizers import legacy as legacy, schedules as schedules Optimizer = Incomplete -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/tensorflow/tensorflow/keras/optimizers/legacy/__init__.pyi b/stubs/tensorflow/tensorflow/keras/optimizers/legacy/__init__.pyi index ad7379724..dc69ac7e2 100644 --- a/stubs/tensorflow/tensorflow/keras/optimizers/legacy/__init__.pyi +++ b/stubs/tensorflow/tensorflow/keras/optimizers/legacy/__init__.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from collections.abc import Callable, Iterable from typing import Any from typing_extensions import TypeAlias @@ -59,4 +58,4 @@ class SGD(Optimizer): self, learning_rate: _LearningRate = 0.01, momentum: float = 0.0, nesterov: bool = False, name: str = "SGD", **kwargs: Any ) -> None: ... -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/tensorflow/tensorflow/keras/regularizers.pyi b/stubs/tensorflow/tensorflow/keras/regularizers.pyi index b8cbac250..448fb6587 100644 --- a/stubs/tensorflow/tensorflow/keras/regularizers.pyi +++ b/stubs/tensorflow/tensorflow/keras/regularizers.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from collections.abc import Callable from typing import Any, overload from typing_extensions import Self, TypeAlias @@ -19,4 +18,4 @@ def get(identifier: None) -> None: ... def get(identifier: str | dict[str, Any] | Regularizer) -> Regularizer: ... @overload def get(identifier: Callable[[Tensor], Tensor]) -> Callable[[Tensor], Tensor]: ... -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/tensorflow/tensorflow/linalg.pyi b/stubs/tensorflow/tensorflow/linalg.pyi index 6c364f273..7294144cf 100644 --- a/stubs/tensorflow/tensorflow/linalg.pyi +++ b/stubs/tensorflow/tensorflow/linalg.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from builtins import bool as _bool from collections.abc import Iterable from typing import Literal, overload @@ -53,4 +52,4 @@ def eye( name: str | None = None, ) -> Tensor: ... def band_part(input: TensorCompatible, num_lower: Integer, num_upper: Integer, name: str | None = None) -> Tensor: ... -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/tensorflow/tensorflow/math.pyi b/stubs/tensorflow/tensorflow/math.pyi index 2e72ada0a..b64aeae67 100644 --- a/stubs/tensorflow/tensorflow/math.pyi +++ b/stubs/tensorflow/tensorflow/math.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from collections.abc import Iterable from typing import TypeVar, overload from typing_extensions import TypeAlias @@ -296,4 +295,4 @@ def count_nonzero( dtype: DTypeLike = ..., name: str | None = None, ) -> Tensor: ... -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/tensorflow/tensorflow/nn.pyi b/stubs/tensorflow/tensorflow/nn.pyi index 4e902e6b6..10b1b88b6 100644 --- a/stubs/tensorflow/tensorflow/nn.pyi +++ b/stubs/tensorflow/tensorflow/nn.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from collections.abc import Sequence from typing import Any, Literal, overload @@ -192,4 +191,4 @@ def safe_embedding_lookup_sparse( name: str | None = None, allow_fast_lookup: bool = False, ) -> Tensor: ... -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/tensorflow/tensorflow/python/__init__.pyi b/stubs/tensorflow/tensorflow/python/__init__.pyi index 0f6820f05..5b0f74feb 100644 --- a/stubs/tensorflow/tensorflow/python/__init__.pyi +++ b/stubs/tensorflow/tensorflow/python/__init__.pyi @@ -1,3 +1 @@ -from _typeshed import Incomplete - -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/tensorflow/tensorflow/python/distribute/distribute_lib.pyi b/stubs/tensorflow/tensorflow/python/distribute/distribute_lib.pyi index 87bbb0425..ee0c2fc8c 100644 --- a/stubs/tensorflow/tensorflow/python/distribute/distribute_lib.pyi +++ b/stubs/tensorflow/tensorflow/python/distribute/distribute_lib.pyi @@ -2,4 +2,4 @@ from _typeshed import Incomplete Strategy = Incomplete -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/tensorflow/tensorflow/python/keras/__init__.pyi b/stubs/tensorflow/tensorflow/python/keras/__init__.pyi index 0f6820f05..5b0f74feb 100644 --- a/stubs/tensorflow/tensorflow/python/keras/__init__.pyi +++ b/stubs/tensorflow/tensorflow/python/keras/__init__.pyi @@ -1,3 +1 @@ -from _typeshed import Incomplete - -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/tensorflow/tensorflow/python/trackable/resource.pyi b/stubs/tensorflow/tensorflow/python/trackable/resource.pyi index 2d50d091b..bfa997840 100644 --- a/stubs/tensorflow/tensorflow/python/trackable/resource.pyi +++ b/stubs/tensorflow/tensorflow/python/trackable/resource.pyi @@ -1,5 +1,3 @@ -from _typeshed import Incomplete - from tensorflow.python.trackable.base import Trackable class _ResourceMetaclass(type): ... @@ -8,4 +6,4 @@ class _ResourceMetaclass(type): ... # it is needed for the public signatures of some APIs. class CapturableResource(Trackable, metaclass=_ResourceMetaclass): ... -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/tensorflow/tensorflow/raw_ops.pyi b/stubs/tensorflow/tensorflow/raw_ops.pyi index a7cf1cb71..8f84ed018 100644 --- a/stubs/tensorflow/tensorflow/raw_ops.pyi +++ b/stubs/tensorflow/tensorflow/raw_ops.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from typing import Literal from tensorflow import Operation, Tensor @@ -42,4 +41,4 @@ def ResourceApplyAdam( use_nesterov: bool = False, name: str | None = None, ) -> Operation: ... -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/tensorflow/tensorflow/sparse.pyi b/stubs/tensorflow/tensorflow/sparse.pyi index dd6f3b74b..1cd1da7f3 100644 --- a/stubs/tensorflow/tensorflow/sparse.pyi +++ b/stubs/tensorflow/tensorflow/sparse.pyi @@ -28,4 +28,4 @@ class SparseTensor(metaclass=ABCMeta): def __mul__(self, y: _SparseTensorCompatible) -> SparseTensor: ... def __getattr__(self, name: str) -> Incomplete: ... -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/tensorflow/tensorflow/train/__init__.pyi b/stubs/tensorflow/tensorflow/train/__init__.pyi index 210272635..c40249a92 100644 --- a/stubs/tensorflow/tensorflow/train/__init__.pyi +++ b/stubs/tensorflow/tensorflow/train/__init__.pyi @@ -72,4 +72,4 @@ class CheckpointManager: def latest_checkpoint(checkpoint_dir: str, latest_filename: str | None = None) -> str: ... def load_variable(ckpt_dir_or_file: str, name: str) -> np.ndarray[Any, Any]: ... def list_variables(ckpt_dir_or_file: str) -> list[tuple[str, list[int]]]: ... -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/tensorflow/tensorflow/train/experimental.pyi b/stubs/tensorflow/tensorflow/train/experimental.pyi index c7f3c0ded..46dc7d0da 100644 --- a/stubs/tensorflow/tensorflow/train/experimental.pyi +++ b/stubs/tensorflow/tensorflow/train/experimental.pyi @@ -1,5 +1,4 @@ import abc -from _typeshed import Incomplete from typing_extensions import Self from tensorflow.python.trackable.base import Trackable @@ -10,4 +9,4 @@ class PythonState(Trackable, metaclass=abc.ABCMeta): @abc.abstractmethod def deserialize(self, string_value: str) -> Self: ... -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module diff --git a/stubs/tensorflow/tensorflow/types/experimental.pyi b/stubs/tensorflow/tensorflow/types/experimental.pyi index 5d4a792cb..178a3e92b 100644 --- a/stubs/tensorflow/tensorflow/types/experimental.pyi +++ b/stubs/tensorflow/tensorflow/types/experimental.pyi @@ -1,5 +1,4 @@ import abc -from _typeshed import Incomplete from typing import Any, Generic, TypeVar, overload from typing_extensions import ParamSpec @@ -28,4 +27,4 @@ class PolymorphicFunction(Callable[_P, _R_co], metaclass=abc.ABCMeta): GenericFunction = PolymorphicFunction -def __getattr__(name: str) -> Incomplete: ... +def __getattr__(name: str): ... # incomplete module