-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge 1.1.393 #1026
Merged
Merged
Merge 1.1.393 #1026
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…pyright determines that a symbol requires code flow analysis but the execution scope exceeds the cyclomatic complexity threshold. This partly addresses #9709.
Co-authored-by: Azure Piplines <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Heejae Chang <1333179+heejaechang@users.noreply.github.com>
Co-authored-by: Azure Piplines <41898282+github-actions[bot]@users.noreply.github.com>
…on" error under certain circumstances when the number of declarations for a symbol exceeds the internal threshold of 16. This addresses #9721. (#9722)
…nnotation either with or without an assignment. This addresses #9720. (#9724)
Co-authored-by: Azure Piplines <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Heejae Chang <1333179+heejaechang@users.noreply.github.com>
* Remove unnecessary if check * Add tests for default python version
…plementation. This addresses #9746.
…hin a type expression and the parameter's type is a TypeVar or Self. This addresses #9750. (#9751)
… shadow the same symbol and an attribute is accessed between the two import statements. This addresses #9752. (#9755)
… for `@final` and `@override` applied to an overload. This addresses #9747. (#9757)
…pattern. Previously, narrowing was performed only when `L` was an enum or bool literal. Narrowing is also now applied for other literal types but only in the positive (`if`) direction. This addresses #9758. (#9759)
…roposed type specification rules regarding `*args` parameters. This addresses #9748. (#9760)
…num class uses a reference to an enum member in an annotation for that same enum member. This addresses #9740. (#9762)
…of fixed length when evaluating overloads. This behavior is mandated by the new draft typing spec update. This addresses #9706. (#9763)
…function with a callable parameter that uses Concatenate plus ParamSpec to a function that accepts a callable with just a ParamSpec. This addresses #9742. (#9765)
…NamedTuple definition. This addresses #9767. (#9773)
Bumps [undici](https://github.com/nodejs/undici) from 6.21.0 to 6.21.1. - [Release notes](https://github.com/nodejs/undici/releases) - [Commits](nodejs/undici@v6.21.0...v6.21.1) --- updated-dependencies: - dependency-name: undici dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Eric Traut <eric@traut.com>
…ph to accommodate slightly larger graphs before giving up. This addresses #9778. (#9781)
# Conflicts: # lerna.json # packages/pyright-internal/package-lock.json # packages/pyright-internal/src/analyzer/enums.ts # packages/pyright-internal/src/backgroundThreadBase.ts # packages/pyright-internal/src/localization/package.nls.ru.json # packages/pyright-internal/src/localization/package.nls.zh-cn.json # packages/pyright-internal/src/server.ts # packages/pyright-internal/src/tests/config.test.ts # packages/pyright-internal/src/tests/importResolver.test.ts # packages/pyright/package-lock.json # packages/pyright/package.json # packages/vscode-pyright/package-lock.json # packages/vscode-pyright/package.json
DetachHead
commented
Jan 29, 2025
This comment has been minimized.
This comment has been minimized.
Diff from mypy_primer, showing the effect of this PR on open source code: more-itertools (https://github.com/more-itertools/more-itertools)
- Argument corresponds to parameter "iter1" in function "__new__" (reportUnknownArgumentType)
+ Argument corresponds to parameter "iterable" in function "__new__" (reportUnknownArgumentType)
- Argument corresponds to parameter "iterable" in function "__init__" (reportUnknownArgumentType)
+ Argument corresponds to parameter "iterable" in function "__new__" (reportUnknownArgumentType)
- Argument corresponds to parameter "stop" in function "__init__" (reportUnknownArgumentType)
+ Argument corresponds to parameter "stop" in function "__new__" (reportUnknownArgumentType)
- Argument corresponds to parameter "iterable" in function "__init__" (reportUnknownArgumentType)
+ Argument corresponds to parameter "iterable" in function "__new__" (reportUnknownArgumentType)
- Argument corresponds to parameter "iterable" in function "__init__" (reportUnknownArgumentType)
+ Argument corresponds to parameter "iterable" in function "__new__" (reportUnknownArgumentType)
- Argument corresponds to parameter "stop" in function "__init__" (reportUnknownArgumentType)
+ Argument corresponds to parameter "stop" in function "__new__" (reportUnknownArgumentType)
- Type of "too_short" is "(item_count: Unknown) -> Never" (reportUnknownVariableType)
+ Type of "too_short" is "(item_count: Unknown) -> NoReturn" (reportUnknownVariableType)
- Type of "too_long" is "(item_count: Unknown) -> Never" (reportUnknownVariableType)
+ Type of "too_long" is "(item_count: Unknown) -> NoReturn" (reportUnknownVariableType)
- Argument corresponds to parameter "iterable" in function "__init__" (reportUnknownArgumentType)
+ Argument corresponds to parameter "iterable" in function "__new__" (reportUnknownArgumentType)
- Argument corresponds to parameter "stop" in function "__init__" (reportUnknownArgumentType)
+ Argument corresponds to parameter "stop" in function "__new__" (reportUnknownArgumentType)
- Argument corresponds to parameter "iterable" in function "__init__"
+ Argument corresponds to parameter "iterable" in function "__new__"
- Argument corresponds to parameter "object" in function "__init__" (reportUnknownArgumentType)
+ Argument corresponds to parameter "object" in function "__new__" (reportUnknownArgumentType)
- Argument corresponds to parameter "object" in function "__init__"
+ Argument corresponds to parameter "object" in function "__new__"
- Argument corresponds to parameter "iter1" in function "__new__"
+ Argument corresponds to parameter "iterable" in function "__new__"
- Argument corresponds to parameter "iterable" in function "__init__" (reportUnknownArgumentType)
+ Argument corresponds to parameter "iterable" in function "__new__" (reportUnknownArgumentType)
- Argument corresponds to parameter "stop" in function "__init__" (reportUnknownArgumentType)
+ Argument corresponds to parameter "stop" in function "__new__" (reportUnknownArgumentType)
- Argument corresponds to parameter "iter1" in function "__new__"
+ Argument corresponds to parameter "iterable" in function "__new__"
- Argument corresponds to parameter "iterables" in function "__init__" (reportUnknownArgumentType)
+ Argument corresponds to parameter "iterables" in function "__new__" (reportUnknownArgumentType)
- Argument corresponds to parameter "iterables" in function "__init__"
+ Argument corresponds to parameter "iterables" in function "__new__"
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:1123:37 - warning: Argument type is unknown
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:1123:37 - warning: Argument type is unknown
+ Argument corresponds to parameter "iter2" in function "__new__" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:1123:37 - warning: Argument type is unknown
+ Argument corresponds to parameter "iter3" in function "__new__" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:1123:37 - warning: Argument type is unknown
+ Argument corresponds to parameter "iter4" in function "__new__" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:1123:37 - warning: Argument type is unknown
+ Argument corresponds to parameter "iter5" in function "__new__" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:1123:37 - warning: Argument type is unknown
+ Argument corresponds to parameter "iter6" in function "__new__" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:1123:37 - warning: Argument type is unknown
+ Argument corresponds to parameter "iterables" in function "__new__" (reportUnknownArgumentType)
- Argument type is "zip_longest[Unknown]" (reportUnknownArgumentType)
+ Argument type is "zip_longest[tuple[Unknown, ...]]" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:1138:42 - warning: Argument type is unknown
+ Argument corresponds to parameter "iter2" in function "__new__" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:1138:42 - warning: Argument type is unknown
+ Argument corresponds to parameter "iter3" in function "__new__" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:1138:42 - warning: Argument type is unknown
+ Argument corresponds to parameter "iter4" in function "__new__" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:1138:42 - warning: Argument type is unknown
+ Argument corresponds to parameter "iter5" in function "__new__" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:1138:42 - warning: Argument type is unknown
+ Argument corresponds to parameter "iter6" in function "__new__" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:1138:42 - warning: Argument type is unknown
+ Argument corresponds to parameter "iterables" in function "__new__" (reportUnknownArgumentType)
- Argument corresponds to parameter "object" in function "__init__" (reportUnknownArgumentType)
+ Argument corresponds to parameter "object" in function "__new__" (reportUnknownArgumentType)
- Argument corresponds to parameter "iterable" in function "__init__"
+ Argument corresponds to parameter "iterable" in function "__new__"
- Argument corresponds to parameter "iterable" in function "__init__" (reportUnknownArgumentType)
+ Argument corresponds to parameter "iterable" in function "__new__" (reportUnknownArgumentType)
- Argument corresponds to parameter "stop" in function "__init__" (reportUnknownArgumentType)
+ Argument corresponds to parameter "stop" in function "__new__" (reportUnknownArgumentType)
- Argument corresponds to parameter "iterables" in function "__init__" (reportUnknownArgumentType)
+ Argument corresponds to parameter "iterables" in function "__new__" (reportUnknownArgumentType)
- Argument corresponds to parameter "iterables" in function "__init__"
+ Argument corresponds to parameter "iterables" in function "__new__"
- Argument corresponds to parameter "object" in function "__init__"
+ Argument corresponds to parameter "object" in function "__new__"
- Argument corresponds to parameter "iterable" in function "__init__"
+ Argument corresponds to parameter "iterable" in function "__new__"
- Argument corresponds to parameter "stop" in function "__init__" (reportUnknownArgumentType)
+ Argument corresponds to parameter "stop" in function "__new__" (reportUnknownArgumentType)
- Argument corresponds to parameter "iterables" in function "__init__"
+ Argument corresponds to parameter "iterables" in function "__new__"
- Argument corresponds to parameter "iterable" in function "__init__"
+ Argument corresponds to parameter "iterable" in function "__new__"
- Argument corresponds to parameter "stop" in function "__init__" (reportUnknownArgumentType)
+ Argument corresponds to parameter "stop" in function "__new__" (reportUnknownArgumentType)
- Argument corresponds to parameter "iterables" in function "__init__" (reportUnknownArgumentType)
+ Argument corresponds to parameter "iterables" in function "__new__" (reportUnknownArgumentType)
- Argument corresponds to parameter "iter1" in function "__new__" (reportUnknownArgumentType)
+ Argument corresponds to parameter "iterable" in function "__new__" (reportUnknownArgumentType)
- Argument corresponds to parameter "object" in function "__init__"
+ Argument corresponds to parameter "object" in function "__new__"
- Argument corresponds to parameter "iterable" in function "__init__"
+ Argument corresponds to parameter "iterable" in function "__new__"
- Argument corresponds to parameter "step" in function "__init__" (reportUnknownArgumentType)
+ Argument corresponds to parameter "step" in function "__new__" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:1680:5 - warning: Return type, "zip_longest[Unknown] | zip[Any]", is partially unknown (reportUnknownParameterType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:1680:5 - warning: Return type, "zip_longest[tuple[Unknown | None, ...]] | zip[Any]", is partially unknown (reportUnknownParameterType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:1703:12 - warning: Return type, "zip_longest[Unknown] | zip[Any]", is partially unknown (reportUnknownVariableType)
... (truncated 404 lines) ...
kornia (https://github.com/kornia/kornia)
- Argument corresponds to parameter "iterable" in function "__init__"
+ Argument corresponds to parameter "iterable" in function "__new__"
- Argument corresponds to parameter "iterable" in function "__init__" (reportUnknownArgumentType)
+ Argument corresponds to parameter "iterable" in function "__new__" (reportUnknownArgumentType)
- Argument corresponds to parameter "stop" in function "__init__" (reportUnknownArgumentType)
+ Argument corresponds to parameter "stop" in function "__new__" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/kornia/kornia/core/tensor_wrapper.py:56:9 - warning: Method "__getstate__" is not marked as override but is overriding a method in class "object" (reportImplicitOverride)
+ Argument corresponds to parameter "iterable" in function "__new__" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/kornia/kornia/testing/__init__.py:314:5 - warning: Type of "rtols" is Any (reportAny)
- /tmp/mypy_primer/projects/kornia/kornia/testing/__init__.py:314:12 - warning: Type of "atols" is Any (reportAny)
- /tmp/mypy_primer/projects/kornia/kornia/testing/__init__.py:315:16 - warning: Argument type is Any
- Argument corresponds to parameter "iterable" in function "max" (reportAny)
- /tmp/mypy_primer/projects/kornia/kornia/testing/__init__.py:315:28 - warning: Argument type is Any
- Argument corresponds to parameter "iterable" in function "max" (reportAny)
+ /tmp/mypy_primer/projects/kornia/kornia/utils/_compat.py:18:50 - warning: This type is deprecated as of Python 3.9; use "contextlib.AbstractContextManager" instead (reportDeprecated)
+ /tmp/mypy_primer/projects/kornia/kornia/utils/_compat.py:66:41 - warning: This type is deprecated as of Python 3.9; use "contextlib.AbstractContextManager" instead (reportDeprecated)
+ /tmp/mypy_primer/projects/kornia/kornia/utils/draw.py:45:17 - warning: Argument type is unknown
+ /tmp/mypy_primer/projects/kornia/kornia/utils/draw.py:45:17 - warning: Argument type is unknown
+ Argument corresponds to parameter "iter2" in function "__new__" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/kornia/kornia/utils/draw.py:45:17 - warning: Argument type is unknown
+ Argument corresponds to parameter "iter3" in function "__new__" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/kornia/kornia/utils/draw.py:45:17 - warning: Argument type is unknown
+ Argument corresponds to parameter "iter4" in function "__new__" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/kornia/kornia/utils/draw.py:45:17 - warning: Argument type is unknown
+ Argument corresponds to parameter "iter5" in function "__new__" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/kornia/kornia/utils/draw.py:45:17 - warning: Argument type is unknown
+ Argument corresponds to parameter "iter6" in function "__new__" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/kornia/kornia/utils/draw.py:45:17 - warning: Argument type is unknown
+ Argument corresponds to parameter "iterables" in function "__new__" (reportUnknownArgumentType)
- 6229 errors, 46950 warnings, 0 notes
+ 6229 errors, 46954 warnings, 0 notes
psycopg (https://github.com/psycopg/psycopg)
- Argument corresponds to parameter "args" in function "__init__" (reportUnknownArgumentType)
+ Argument corresponds to parameter "args" in function "__new__" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/psycopg/psycopg/psycopg/_compat.py:17:5 - warning: Code is unreachable (reportUnreachable)
+ /tmp/mypy_primer/projects/psycopg/psycopg/psycopg/_compat.py:15:5 - warning: Code is unreachable (reportUnreachable)
+ /tmp/mypy_primer/projects/psycopg/psycopg/psycopg/_compat.py:17:10 - error: Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
- /tmp/mypy_primer/projects/psycopg/psycopg/psycopg/_compat.py:22:5 - warning: Code is unreachable (reportUnreachable)
+ /tmp/mypy_primer/projects/psycopg/psycopg/psycopg/_compat.py:20:5 - warning: Code is unreachable (reportUnreachable)
+ /tmp/mypy_primer/projects/psycopg/psycopg/psycopg/_compat.py:22:10 - error: Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
- /tmp/mypy_primer/projects/psycopg/psycopg/psycopg/pq/misc.py:56:28 - error: Argument of type "str | None" cannot be assigned to parameter "args" of type "StrPath" in function "__init__"
- Type "str | None" is not assignable to type "StrPath"
- Type "None" is not assignable to type "StrPath"
- "None" is not assignable to "str"
- "None" is incompatible with protocol "PathLike[str]"
- "__fspath__" is not present (reportArgumentType)
- /tmp/mypy_primer/projects/psycopg/psycopg/psycopg/types/range.py:251:9 - warning: Method "__getstate__" is not marked as override but is overriding a method in class "object" (reportImplicitOverride)
- /tmp/mypy_primer/projects/psycopg/psycopg_c/build_backend/cython_backend.py:21:5 - warning: Code is unreachable (reportUnreachable)
+ /tmp/mypy_primer/projects/psycopg/psycopg_c/build_backend/cython_backend.py:19:5 - warning: Code is unreachable (reportUnreachable)
+ /tmp/mypy_primer/projects/psycopg/psycopg_c/build_backend/cython_backend.py:21:12 - error: Import "tomli" could not be resolved (reportMissingImports)
+ /tmp/mypy_primer/projects/psycopg/psycopg_c/build_backend/cython_backend.py:34:9 - warning: Type of "pyprj" is unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/psycopg/psycopg_c/build_backend/cython_backend.py:34:17 - warning: Type of "load" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/psycopg/psycopg_c/build_backend/cython_backend.py:36:5 - warning: Type of "rv" is partially unknown
+ Type of "rv" is "Unknown | list[str]" (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/psycopg/psycopg_c/build_backend/cython_backend.py:37:12 - warning: Return type, "Unknown | list[str]", is partially unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/psycopg/psycopg_c/build_backend/psycopg_build_ext.py:15:23 - error: "log" is unknown import symbol (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/psycopg/psycopg_c/build_backend/psycopg_build_ext.py:15:23 - warning: Type of "log" is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/psycopg/psycopg_c/build_backend/psycopg_build_ext.py:23:9 - warning: Type of "error" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/psycopg/psycopg_pool/psycopg_pool/_compat.py:19:5 - warning: Code is unreachable (reportUnreachable)
+ /tmp/mypy_primer/projects/psycopg/psycopg_pool/psycopg_pool/_compat.py:17:5 - warning: Code is unreachable (reportUnreachable)
+ /tmp/mypy_primer/projects/psycopg/psycopg_pool/psycopg_pool/_compat.py:19:10 - error: Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
- /tmp/mypy_primer/projects/psycopg/psycopg_pool/psycopg_pool/_compat.py:24:5 - warning: Code is unreachable (reportUnreachable)
+ /tmp/mypy_primer/projects/psycopg/psycopg_pool/psycopg_pool/_compat.py:22:5 - warning: Code is unreachable (reportUnreachable)
+ /tmp/mypy_primer/projects/psycopg/psycopg_pool/psycopg_pool/_compat.py:24:10 - error: Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
- Argument corresponds to parameter "iter1" in function "__new__" (reportUnknownArgumentType)
+ Argument corresponds to parameter "iterable" in function "__new__" (reportUnknownArgumentType)
- Argument corresponds to parameter "iter1" in function "__new__" (reportUnknownArgumentType)
+ Argument corresponds to parameter "iterable" in function "__new__" (reportUnknownArgumentType)
- Argument corresponds to parameter "iter1" in function "__new__" (reportUnknownArgumentType)
+ Argument corresponds to parameter "iterable" in function "__new__" (reportUnknownArgumentType)
- Argument corresponds to parameter "iter1" in function "__new__" (reportUnknownArgumentType)
+ Argument corresponds to parameter "iterable" in function "__new__" (reportUnknownArgumentType)
- Type of "raiseif" is "(cond: Unknown, ...) -> _GeneratorContextManager[Unknown | None]" (reportUnknownVariableType)
+ Type of "raiseif" is "(cond: Unknown, ...) -> _GeneratorContextManager[Unknown | None, None, None]" (reportUnknownVariableType)
- Type of "raiseif" is "(cond: Unknown, ...) -> _GeneratorContextManager[Unknown | None]" (reportUnknownVariableType)
+ Type of "raiseif" is "(cond: Unknown, ...) -> _GeneratorContextManager[Unknown | None, None, None]" (reportUnknownVariableType)
- Argument corresponds to parameter "iter1" in function "__new__" (reportUnknownArgumentType)
+ Argument corresponds to parameter "iterable" in function "__new__" (reportUnknownArgumentType)
- Argument corresponds to parameter "iter1" in function "__new__" (reportUnknownArgumentType)
+ Argument corresponds to parameter "iterable" in function "__new__" (reportUnknownArgumentType)
- Argument corresponds to parameter "iter1" in function "__new__" (reportUnknownArgumentType)
+ Argument corresponds to parameter "iterable" in function "__new__" (reportUnknownArgumentType)
- Argument corresponds to parameter "iter1" in function "__new__" (reportUnknownArgumentType)
+ Argument corresponds to parameter "iterable" in function "__new__" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/psycopg/tests/test_psycopg_dbapi20.py:45:14 - error: Cannot assign to attribute "failUnless" for class "type[PsycopgTests]"
- Attribute "failUnless" is unknown (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/psycopg/tests/test_psycopg_dbapi20.py:46:17 - error: Cannot assign to attribute "assertEquals" for class "type[PsycopgTPCTests]"
- Attribute "assertEquals" is unknown (reportAttributeAccessIssue)
- Argument corresponds to parameter "iter1" in function "__new__"
+ Argument corresponds to parameter "iterable" in function "__new__"
- /tmp/mypy_primer/projects/psycopg/tests/utils.py:16:5 - warning: Code is unreachable (reportUnreachable)
+ /tmp/mypy_primer/projects/psycopg/tests/utils.py:12:5 - warning: Code is unreachable (reportUnreachable)
+ /tmp/mypy_primer/projects/psycopg/tests/utils.py:16:12 - error: Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
- Argument corresponds to parameter "iter1" in function "__new__" (reportUnknownArgumentType)
+ Argument corresponds to parameter "iterable" in function "__new__" (reportUnknownArgumentType)
- Argument corresponds to parameter "iter1" in function "__new__" (reportUnknownArgumentType)
+ Argument corresponds to parameter "iterable" in function "__new__" (reportUnknownArgumentType)
- Argument corresponds to parameter "iter1" in function "__new__" (reportUnknownArgumentType)
+ Argument corresponds to parameter "iterable" in function "__new__" (reportUnknownArgumentType)
- Argument corresponds to parameter "iter1" in function "__new__" (reportUnknownArgumentType)
+ Argument corresponds to parameter "iterable" in function "__new__" (reportUnknownArgumentType)
- Argument corresponds to parameter "iter1" in function "__new__" (reportUnknownArgumentType)
+ Argument corresponds to parameter "iterable" in function "__new__" (reportUnknownArgumentType)
- Argument corresponds to parameter "iter1" in function "__new__" (reportUnknownArgumentType)
+ Argument corresponds to parameter "iterable" in function "__new__" (reportUnknownArgumentType)
- Argument corresponds to parameter "iter1" in function "__new__" (reportUnknownArgumentType)
+ Argument corresponds to parameter "iterable" in function "__new__" (reportUnknownArgumentType)
- Argument corresponds to parameter "iter1" in function "__new__" (reportUnknownArgumentType)
+ Argument corresponds to parameter "iterable" in function "__new__" (reportUnknownArgumentType)
- Argument corresponds to parameter "iter1" in function "__new__" (reportUnknownArgumentType)
+ Argument corresponds to parameter "iterable" in function "__new__" (reportUnknownArgumentType)
- Argument corresponds to parameter "iter1" in function "__new__"
+ Argument corresponds to parameter "iterable" in function "__new__"
- Argument corresponds to parameter "iter1" in function "__new__" (reportUnknownArgumentType)
+ Argument corresponds to parameter "iterable" in function "__new__" (reportUnknownArgumentType)
- 1930 errors, 38641 warnings, 0 notes
+ 1932 errors, 38642 warnings, 0 notes
steam.py (https://github.com/Gobot1234/steam.py)
+ /tmp/mypy_primer/projects/steam.py/poetry_build.py:8:12 - error: Import "tomllib" could not be resolved (reportMissingImports)
- /tmp/mypy_primer/projects/steam.py/poetry_build.py:14:13 - error: Type of "loads" is partially unknown
+ /tmp/mypy_primer/projects/steam.py/poetry_build.py:14:13 - error: Type of "loads" is unknown (reportUnknownMemberType)
- Type of "loads" is "((s: str, /, *, parse_float: ((str) -> Any) = ...) -> dict[str, Any]) | Unknown" (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/steam.py/scripts/blacken_docs_correctly.py:20:12 - error: Import "tomllib" could not be resolved (reportMissingImports)
- /tmp/mypy_primer/projects/steam.py/scripts/blacken_docs_correctly.py:33:21 - error: Type of "load" is partially unknown
+ /tmp/mypy_primer/projects/steam.py/scripts/blacken_docs_correctly.py:33:21 - error: Type of "load" is unknown (reportUnknownMemberType)
- Type of "load" is "((fp: SupportsRead[bytes], /, *, parse_float: ((str) -> Any) = ...) -> dict[str, Any]) | Unknown" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/steam.py/scripts/blacken_docs_correctly.py:35:31 - error: Type of "get" is partially unknown
+ /tmp/mypy_primer/projects/steam.py/scripts/blacken_docs_correctly.py:35:31 - error: Type of "get" is unknown (reportUnknownMemberType)
- Type of "get" is "Overload[(key: str, /) -> (Any | None), (key: str, default: Any, /) -> Any, (key: str, default: _T@get, /) -> (Any | _T@get)] | Unknown" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/steam.py/scripts/blacken_docs_correctly.py:35:31 - error: Type of "get" is partially unknown
+ /tmp/mypy_primer/projects/steam.py/scripts/blacken_docs_correctly.py:35:31 - error: Type of "get" is unknown (reportUnknownMemberType)
- Type of "get" is "Any | Unknown" (reportUnknownMemberType)
- Type of "get" is "Overload[(key: str, /) -> (Any | None), (key: str, default: Any, /) -> Any, (key: str, default: _T@get, /) -> (Any | _T@get)] | Unknown" (reportUnknownMemberType)
+ Type of "get" is "Unknown | Overload[(key: str, /) -> (Any | None), (key: str, default: Any, /) -> Any, (key: str, default: _T@get, /) -> (Any | _T@get)]" (reportUnknownMemberType)
- Type of "get" is "Overload[(key: str, /) -> (Any | None), (key: str, default: Any, /) -> Any, (key: str, default: _T@get, /) -> (Any | _T@get)] | Unknown" (reportUnknownMemberType)
+ Type of "get" is "Unknown | Overload[(key: str, /) -> (Any | None), (key: str, default: Any, /) -> Any, (key: str, default: _T@get, /) -> (Any | _T@get)]" (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/steam.py/steam/client.py:39:60 - error: "TaskGroup" is unknown import symbol (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/steam.py/steam/client.py:39:71 - error: "timeout" is unknown import symbol (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/steam.py/steam/client.py:306:16 - error: Type of "_tg" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/steam.py/steam/client.py:306:16 - error: Type of "create_task" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/steam.py/steam/client.py:356:9 - error: Type of "_tg" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/steam.py/steam/client.py:358:15 - error: Type of "_tg" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/steam.py/steam/client.py:358:15 - error: Type of "__aenter__" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/steam.py/steam/client.py:365:19 - error: Type of "_tg" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/steam.py/steam/client.py:365:19 - error: Type of "__aexit__" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/steam.py/steam/client.py:369:9 - error: @final decorator should be applied only to the implementation (reportInconsistentOverload)
+ /tmp/mypy_primer/projects/steam.py/steam/client.py:381:9 - error: @final decorator should be applied only to the implementation (reportInconsistentOverload)
+ /tmp/mypy_primer/projects/steam.py/steam/client.py:451:13 - error: Type of "_tg" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/steam.py/steam/client.py:460:57 - error: Type of "_tg" is unknown (reportUnknownMemberType)
- Type of "replace" is "Unknown | ((old: str, new: str, /, count: SupportsIndex = -1) -> str) | Any" (reportUnknownMemberType)
+ Type of "replace" is "Unknown | ((old: str, new: str, count: SupportsIndex = -1, /) -> str) | Any" (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/steam.py/steam/gateway.py:28:56 - error: "Self" is unknown import symbol (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/steam.py/steam/gateway.py:36:86 - error: "timeout" is unknown import symbol (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/steam.py/steam/gateway.py:296:9 - error: Type of "tg" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/steam.py/steam/gateway.py:296:19 - error: Type of "TaskGroup" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/steam.py/steam/gateway.py:296:27 - error: "TaskGroup" is not a known attribute of module "asyncio" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/steam.py/steam/gateway.py:319:15 - error: Return type is unknown (reportUnknownParameterType)
+ /tmp/mypy_primer/projects/steam.py/steam/gateway.py:320:15 - error: Type of "tg" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/steam.py/steam/gateway.py:320:15 - error: Type of "__aenter__" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/steam.py/steam/gateway.py:324:15 - error: Type of "tg" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/steam.py/steam/gateway.py:324:15 - error: Type of "__aexit__" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/steam.py/steam/gateway.py:395:19 - error: Type of "Timeout" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/steam.py/steam/gateway.py:395:27 - error: "Timeout" is not a known attribute of module "asyncio" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/steam.py/steam/gateway.py:396:20 - error: Type of "TaskGroup" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/steam.py/steam/gateway.py:396:28 - error: "TaskGroup" is not a known attribute of module "asyncio" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/steam.py/steam/gateway.py:406:13 - error: Type of "create_task" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/steam.py/steam/gateway.py:408:13 - error: Type of "reschedule" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/steam.py/steam/gateway.py:425:9 - error: Type of "tg" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/steam.py/steam/gateway.py:425:9 - error: Type of "create_task" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/steam.py/steam/gateway.py:444:22 - error: Type of "tg" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/steam.py/steam/gateway.py:445:13 - error: Type of "tg" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/steam.py/steam/gateway.py:445:23 - error: Type of "_tg" is unknown (reportUnknownMemberType)
... (truncated 5174 lines) ...``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.