-
Notifications
You must be signed in to change notification settings - Fork 38
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.392 #996
Merged
Merged
Merge 1.1.392 #996
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
…` rather than their deprecated uppercase counterparts now that Python 3.8 is EOL'ed. This addresses microsoft/pylance-release#6783.
Co-authored-by: Azure Piplines <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Rich Chiodo <rchiodo@users.noreply.github.com>
…e with a "*args" parameter to a callable with a `Concatenate` and `ParamSpec`. This addresses #9630. (#9632)
…n an execution extending rather than overriding the `extraPaths` provided in the top-level config. This addresses #9636. (#9639)
… incorrect type when a dictionary expansion is used and the resulting expansion type is unknown. This addresses #9650. (#9652)
…agic method modeling to handle descriptor objects. This addresses #9653. (#9654)
… function. Removed unused skipInferReturnType field.
…type inference that involves recursion. This addresses #9642. (#9658)
… an unpacked keyword argument in a call expression. Also added a check for an unpack operator used within the first argument of a `cast` call. This addresses #9674. (#9675)
…RLF to LF within multi-line triple-quoted strings so the behavior is consistent with runtime. This addresses #9681. (#9690)
… return result of `__aexit__` is awaitable and improved error messages for the case where `__enter__`, etc. are present but have incorrect signatures. This addresses #9694. (#9697)
…essage in certain cases involving parameters annotated with `Self`. This addresses #9662. (#9698)
…ion (walrus operator) is used as an argument to a constructor call when the constructor has both a `__new__` and `__init__` with differing bidirectional type inference contexts. This addresses #9659. (#9699)
…rror when two subclasses with an overloaded method are combined using multiple inheritance. This addresses #9625. (#9700)
…e when the subject type is `type` or `Any`. This addresses #9656. (#9704)
…nts that are assigning to an index expression that is subscripted by a slice. This addresses #9564. (#9705)
…ative when overriding a method that uses class-scoped type parameters with a method that uses method-scoped type parameters. This addresses #9405. (#9707)
# Conflicts: # lerna.json # package-lock.json # package.json # packages/pyright-internal/package-lock.json # packages/pyright-internal/src/localization/package.nls.fr.json # packages/pyright-internal/src/localization/package.nls.ru.json # packages/pyright-internal/src/localization/package.nls.zh-cn.json # packages/pyright-internal/src/tests/testUtils.ts # packages/pyright/package-lock.json # packages/pyright/package.json # packages/vscode-pyright/package-lock.json # packages/vscode-pyright/package.json # tsconfig.json
c7dc91b
to
090ac3e
Compare
Diff from mypy_primer, showing the effect of this PR on open source code: more-itertools (https://github.com/more-itertools/more-itertools)
- Type of "permuted_indices" is "tuple[Unknown, ...]" (reportUnknownVariableType)
+ Type of "permuted_indices" is "tuple[Unknown, ...] | tuple[int, ...]" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2054:37 - warning: Argument type is partially unknown
- Argument corresponds to parameter "iter1" in function "__new__"
- Argument type is "Generator[tuple[()] | tuple[Unknown, ...], Any, None]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:3339:17 - warning: Type of "p" is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:3341:17 - warning: Type of "p" is unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:3341:17 - warning: Type of "p" is partially unknown
+ Type of "p" is "list[Unknown] | list[list[Unknown]] | list[list[Unknown] | Unknown] | Unknown" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:3342:36 - warning: Argument type is unknown
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:3342:36 - warning: Argument type is partially unknown
- Argument corresponds to parameter "obj" in function "len" (reportUnknownArgumentType)
+ Argument corresponds to parameter "obj" in function "len"
+ Argument type is "list[Unknown] | list[list[Unknown]] | list[list[Unknown] | Unknown] | Unknown" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/recipes.py:999:5 - warning: Return type, "batched[Unknown]", is partially unknown (reportUnknownParameterType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/recipes.py:1009:12 - warning: Return type, "batched[Unknown]", is partially unknown (reportUnknownVariableType)
- 32 errors, 2745 warnings, 0 notes
+ 32 errors, 2741 warnings, 0 notes
kornia (https://github.com/kornia/kornia)
+ /tmp/mypy_primer/projects/kornia/kornia/core/tensor_wrapper.py:67:20 - warning: Type of "_data" is partially unknown
+ Type of "_data" is "Unknown | Any" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/kornia/kornia/core/tensor_wrapper.py:67:20 - warning: Return type is unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/kornia/kornia/core/tensor_wrapper.py:67:20 - warning: Return type, "Unknown | Any", is partially unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/kornia/kornia/core/tensor_wrapper.py:70:9 - warning: Type of "used_attrs" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/kornia/kornia/core/tensor_wrapper.py:70:9 - warning: Type of "used_attrs" is partially unknown
+ Type of "used_attrs" is "Unknown | Any" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/kornia/kornia/core/tensor_wrapper.py:70:9 - warning: Type of "add" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/kornia/kornia/core/tensor_wrapper.py:70:9 - warning: Type of "add" is partially unknown
+ Type of "add" is "Unknown | Any" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/kornia/kornia/core/tensor_wrapper.py:72:23 - warning: Type of "_data" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/kornia/kornia/core/tensor_wrapper.py:72:23 - warning: Type of "_data" is partially unknown
+ Type of "_data" is "Unknown | Any" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/kornia/kornia/core/tensor_wrapper.py:72:23 - warning: Argument type is unknown
+ /tmp/mypy_primer/projects/kornia/kornia/core/tensor_wrapper.py:72:23 - warning: Argument type is partially unknown
- Argument corresponds to parameter "o" in function "getattr" (reportUnknownArgumentType)
+ Argument corresponds to parameter "o" in function "getattr"
+ Argument type is "Unknown | Any" (reportUnknownArgumentType)
- 6229 errors, 46949 warnings, 0 notes
+ 6229 errors, 46950 warnings, 0 notes
psycopg (https://github.com/psycopg/psycopg)
- /tmp/mypy_primer/projects/psycopg/tests/fix_faker.py:838:9 - warning: Return type, "list[Unknown] | dict[str, Unknown] | Unknown | Any", is partially unknown (reportUnknownParameterType)
+ /tmp/mypy_primer/projects/psycopg/tests/fix_faker.py:838:9 - warning: Return type, "list[list[Unknown] | dict[str, list[Unknown] | dict[str, Unknown] | Unknown | Any] | Unknown | Any] | dict[str, list[Unknown] | dict[str, Unknown] | Unknown | Any] | Unknown | Any", is partially unknown (reportUnknownParameterType)
- /tmp/mypy_primer/projects/psycopg/tests/fix_faker.py:844:24 - warning: Return type, "list[Unknown]", is partially unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/psycopg/tests/fix_faker.py:844:24 - warning: Return type, "list[list[Unknown] | dict[str, list[Unknown] | dict[str, Unknown] | Unknown | Any] | Unknown | Any]", is partially unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/psycopg/tests/fix_faker.py:849:24 - warning: Return type, "dict[str, Unknown]", is partially unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/psycopg/tests/fix_faker.py:849:24 - warning: Return type, "dict[str, list[Unknown] | dict[str, Unknown] | Unknown | Any]", is partially unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/psycopg/tests/pool/test_pool_common_async.py:187:9 - warning: Type of "ts" is partially unknown
+ Type of "ts" is "list[Task[Unknown] | Thread]" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/psycopg/tests/pool/test_pool_common_async.py:219:9 - warning: Result of call expression is of type "Task[None] | Thread" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+ /tmp/mypy_primer/projects/psycopg/tests/pool/test_pool_common_async.py:219:9 - warning: Result of call expression is of type "Task[Unknown] | Thread" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+ /tmp/mypy_primer/projects/psycopg/tests/pool/test_pool_common_async.py:222:9 - warning: Type of "ts" is partially unknown
+ Type of "ts" is "list[Task[Unknown] | Thread]" (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/psycopg/tests/pool/test_pool_common_async.py:256:9 - warning: Type of "ts" is partially unknown
+ Type of "ts" is "list[Task[Unknown] | Thread]" (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/psycopg/tests/pool/test_pool_common_async.py:279:9 - warning: Type of "ts" is partially unknown
+ Type of "ts" is "list[Task[Unknown] | Thread]" (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/psycopg/tests/pool/test_pool_common_async.py:315:9 - warning: Type of "ts" is partially unknown
+ Type of "ts" is "list[Task[Unknown] | Thread]" (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/psycopg/tests/pool/test_pool_common_async.py:428:9 - warning: Type of "t1" is partially unknown
+ Type of "t1" is "Task[Unknown] | Thread" (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/psycopg/tests/pool/test_pool_common_async.py:432:9 - warning: Type of "t2" is partially unknown
+ Type of "t2" is "Task[Unknown] | Thread" (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/psycopg/tests/pool/test_pool_common_async.py:533:9 - warning: Type of "ts" is partially unknown
+ Type of "ts" is "list[Task[Unknown] | Thread]" (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/psycopg/tests/pool/test_pool_common_async.py:544:9 - warning: Type of "ts" is partially unknown
+ Type of "ts" is "list[Task[Unknown] | Thread]" (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/psycopg/tests/pool/test_pool_common_async.py:568:9 - warning: Type of "ts" is partially unknown
+ Type of "ts" is "list[Task[Unknown] | Thread]" (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/psycopg/tests/pool/test_pool_null_async.py:182:13 - warning: Type of "t" is partially unknown
+ Type of "t" is "Task[Unknown] | Thread" (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/psycopg/tests/pool/test_pool_null_async.py:212:13 - warning: Type of "t" is partially unknown
+ Type of "t" is "Task[Unknown] | Thread" (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/psycopg/tests/pool/test_pool_null_async.py:242:13 - warning: Type of "t" is partially unknown
+ Type of "t" is "Task[Unknown] | Thread" (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/psycopg/tests/pool/test_pool_null_async.py:285:9 - warning: Type of "t" is partially unknown
+ Type of "t" is "Task[Unknown] | Thread" (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/psycopg/tests/pool/test_pool_null_async.py:314:9 - warning: Type of "t" is partially unknown
+ Type of "t" is "Task[Unknown] | Thread" (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/psycopg/tests/pool/test_pool_null_async.py:343:9 - warning: Type of "t" is partially unknown
+ Type of "t" is "Task[Unknown] | Thread" (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/psycopg/tests/pool/test_pool_null_async.py:370:9 - warning: Type of "t" is partially unknown
+ Type of "t" is "Task[Unknown] | Thread" (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/psycopg/tests/pool/test_pool_null_async.py:421:9 - warning: Type of "ts" is partially unknown
+ Type of "ts" is "list[Task[Unknown] | Thread]" (reportUnknownVariableType)
- 1930 errors, 38623 warnings, 0 notes
+ 1930 errors, 38641 warnings, 0 notes
steam.py (https://github.com/Gobot1234/steam.py)
- /tmp/mypy_primer/projects/steam.py/steam/utils.py:565:9 - error: Method "pop" overrides class "ChainMap" in an incompatible manner
- Override does not handle all overloads of base method (reportIncompatibleMethodOverride)
- /tmp/mypy_primer/projects/steam.py/steam/ext/commands/commands.py:553:30 - error: Expected 0 positional arguments (reportCallIssue)
+ /tmp/mypy_primer/projects/steam.py/steam/ext/commands/commands.py:558:24 - error: Type of "__class__" is partially unknown
+ Type of "__class__" is "type[BasicConverter[Any]] | type[function] | type[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/steam.py/steam/ext/commands/utils.py:49:9 - error: Method "get" overrides class "dict" in an incompatible manner
- Override does not handle all overloads of base method (reportIncompatibleMethodOverride)
- 8488 errors, 95 warnings, 0 notes
+ 8486 errors, 95 warnings, 0 notes
pytest (https://github.com/pytest-dev/pytest)
- /tmp/mypy_primer/projects/pytest/src/_pytest/python_api.py:124:5 - warning: Return type, "list[Unknown] | tuple[Unknown, ...] | Unknown", is partially unknown (reportUnknownParameterType)
+ /tmp/mypy_primer/projects/pytest/src/_pytest/python_api.py:124:5 - warning: Return type, "list[Unknown] | tuple[Unknown, ...] | list[list[Unknown] | tuple[Unknown, ...] | Unknown] | Unknown", is partially unknown (reportUnknownParameterType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/python_api.py:130:16 - warning: Return type, "list[Unknown]", is partially unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/pytest/src/_pytest/python_api.py:130:16 - warning: Return type, "list[list[Unknown] | tuple[Unknown, ...] | Unknown]", is partially unknown (reportUnknownVariableType)
- Type of "list_scalars" is "list[Unknown] | tuple[Unknown, ...] | Unknown" (reportUnknownVariableType)
+ Type of "list_scalars" is "list[Unknown] | tuple[Unknown, ...] | list[list[Unknown] | tuple[Unknown, ...] | Unknown] | Unknown" (reportUnknownVariableType)
- Type of "approx_side_as_seq" is "list[Unknown] | tuple[Unknown, ...] | Unknown" (reportUnknownVariableType)
+ Type of "approx_side_as_seq" is "list[Unknown] | tuple[Unknown, ...] | list[list[Unknown] | tuple[Unknown, ...] | Unknown] | Unknown" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/python_api.py:180:55 - error: Argument of type "list[Unknown] | tuple[Unknown, ...] | Unknown" cannot be assigned to parameter "nested_list" of type "list[Any]" in function "get_value_from_nested_list"
+ /tmp/mypy_primer/projects/pytest/src/_pytest/python_api.py:180:55 - error: Argument of type "list[Unknown] | tuple[Unknown, ...] | list[list[Unknown] | tuple[Unknown, ...] | Unknown] | Unknown" cannot be assigned to parameter "nested_list" of type "list[Any]" in function "get_value_from_nested_list"
- Type "list[Unknown] | tuple[Unknown, ...] | Unknown" is not assignable to type "list[Any]"
+ Type "list[Unknown] | tuple[Unknown, ...] | list[list[Unknown] | tuple[Unknown, ...] | Unknown] | Unknown" is not assignable to type "list[Any]"
- /tmp/mypy_primer/projects/pytest/src/_pytest/python_api.py:195:48 - error: Argument of type "list[Unknown] | tuple[Unknown, ...] | Unknown" cannot be assigned to parameter "nested_list" of type "list[Any]" in function "get_value_from_nested_list"
+ /tmp/mypy_primer/projects/pytest/src/_pytest/python_api.py:195:48 - error: Argument of type "list[Unknown] | tuple[Unknown, ...] | list[list[Unknown] | tuple[Unknown, ...] | Unknown] | Unknown" cannot be assigned to parameter "nested_list" of type "list[Any]" in function "get_value_from_nested_list"
- Type "list[Unknown] | tuple[Unknown, ...] | Unknown" is not assignable to type "list[Any]"
+ Type "list[Unknown] | tuple[Unknown, ...] | list[list[Unknown] | tuple[Unknown, ...] | Unknown] | Unknown" is not assignable to type "list[Any]"
- Type of "approx_side_as_map" is "list[Unknown] | tuple[Unknown, ...] | Unknown" (reportUnknownVariableType)
+ Type of "approx_side_as_map" is "list[Unknown] | tuple[Unknown, ...] | list[list[Unknown] | tuple[Unknown, ...] | Unknown] | Unknown" (reportUnknownVariableType)
- Argument type is "list[Unknown] | tuple[Unknown, ...] | Unknown" (reportUnknownArgumentType)
+ Argument type is "list[Unknown] | tuple[Unknown, ...] | list[list[Unknown] | tuple[Unknown, ...] | Unknown] | Unknown" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/python_api.py:339:17 - warning: Type of "approx_value" is unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/pytest/src/_pytest/python_api.py:339:17 - warning: Type of "approx_value" is partially unknown
+ Type of "approx_value" is "list[Unknown] | tuple[Unknown, ...] | Unknown" (reportUnknownVariableType)
- Argument type is "zip[tuple[Unknown, float]]" (reportUnknownArgumentType)
+ Argument type is "zip[tuple[list[Unknown] | tuple[Unknown, ...] | Unknown, float]]" (reportUnknownArgumentType)
- Argument type is "list[Unknown] | tuple[Unknown, ...] | Unknown" (reportUnknownArgumentType)
+ Argument type is "list[Unknown] | tuple[Unknown, ...] | list[list[Unknown] | tuple[Unknown, ...] | Unknown] | Unknown" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/pytest/src/_pytest/python_api.py:344:49 - error: Cannot access attribute "expected" for class "list[Unknown]"
+ Attribute "expected" is unknown (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/pytest/src/_pytest/python_api.py:344:49 - error: Cannot access attribute "expected" for class "tuple[Unknown, ...]"
+ Attribute "expected" is unknown (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/pytest/src/_pytest/_py/path.py:803:9 - warning: Return type, "list[Unknown] | list[Self@LocalPath]", is partially unknown (reportUnknownParameterType)
+ /tmp/mypy_primer/projects/pytest/src/_pytest/_py/path.py:803:9 - warning: Return type, "list[Self@LocalPath] | list[Unknown]", is partially unknown (reportUnknownParameterType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/_py/path.py:809:20 - warning: Return type, "list[Unknown]", is partially unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/_py/path.py:958:17 - warning: Type of "close" is unknown (reportUnknownMemberType)
- Type of "path" is "Unknown | LocalPath" (reportUnknownVariableType)
+ Type of "path" is "LocalPath | Unknown" (reportUnknownVariableType)
- Type of "listdir" is "((fil: Unknown | None = None, sort: Unknown | None = None) -> (list[Unknown] | list[LocalPath])) | Unknown" (reportUnknownMemberType)
+ Type of "listdir" is "((fil: Unknown | None = None, sort: Unknown | None = None) -> (list[LocalPath] | list[Unknown])) | Unknown" (reportUnknownMemberType)
- Type of "path" is "Unknown | LocalPath" (reportUnknownVariableType)
+ Type of "path" is "LocalPath | Unknown" (reportUnknownVariableType)
- Type of "listdir" is "((fil: Unknown | None = None, sort: Unknown | None = None) -> (list[Unknown] | list[LocalPath])) | Unknown" (reportUnknownMemberType)
+ Type of "listdir" is "((fil: Unknown | None = None, sort: Unknown | None = None) -> (list[LocalPath] | list[Unknown])) | Unknown" (reportUnknownMemberType)
- Type of "rename" is "Unknown | ((target: Unknown) -> None)" (reportUnknownMemberType)
+ Type of "rename" is "((target: Unknown) -> None) | Unknown" (reportUnknownMemberType)
- Type of "remove" is "Unknown | ((rec: int = 1, ignore_errors: bool = False) -> None)" (reportUnknownMemberType)
+ Type of "remove" is "((rec: int = 1, ignore_errors: bool = False) -> None) | Unknown" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/pytest/testing/io/test_terminalwriter.py:94:14 - error: Object of type "Unbound" cannot be used with "with" because it does not implement __enter__ (reportGeneralTypeIssues)
+ /tmp/mypy_primer/projects/pytest/testing/io/test_terminalwriter.py:94:14 - error: Object of type "Unbound" cannot be used with "with" because it does not correctly implement __enter__ (reportGeneralTypeIssues)
- /tmp/mypy_primer/projects/pytest/testing/io/test_terminalwriter.py:94:14 - error: Object of type "Unbound" cannot be used with "with" because it does not implement __exit__ (reportGeneralTypeIssues)
+ /tmp/mypy_primer/projects/pytest/testing/io/test_terminalwriter.py:94:14 - error: Object of type "Unbound" cannot be used with "with" because it does not correctly implement __exit__ (reportGeneralTypeIssues)
- Type of "_recursive_sequence_map" is "(f: Unknown, x: Unknown) -> (list[Unknown] | tuple[Unknown, ...] | Unknown)" (reportUnknownVariableType)
+ Type of "_recursive_sequence_map" is "(f: Unknown, x: Unknown) -> (list[Unknown] | tuple[Unknown, ...] | list[list[Unknown] | tuple[Unknown, ...] | Unknown] | Unknown)" (reportUnknownVariableType)
- 1082 errors, 17286 warnings, 0 notes
+ 1084 errors, 17284 warnings, 0 notes
paasta (https://github.com/yelp/paasta)
+ /tmp/mypy_primer/projects/paasta/paasta_tools/cli/cmds/local_run.py:1016:5 - warning: Type of "merged_env" is partially unknown
+ Type of "merged_env" is "dict[str | Unknown, str | Unknown]" (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/paasta/paasta_tools/cli/cmds/local_run.py:1024:9 - warning: Type of "pop" is partially unknown
+ Type of "pop" is "Overload[(key: str | Unknown, /) -> (str | Unknown), (key: str | Unknown, default: str | Unknown, /) -> (str | Unknown), (key: str | Unknown, default: _T@pop, /) -> (str | Unknown | _T@pop)]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/paasta/paasta_tools/cli/cmds/local_run.py:1024:9 - warning: Result of call expression is of type "str" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+ /tmp/mypy_primer/projects/paasta/paasta_tools/cli/cmds/local_run.py:1024:9 - warning: Result of call expression is of type "str | Unknown" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+ /tmp/mypy_primer/projects/paasta/paasta_tools/cli/cmds/local_run.py:1025:48 - warning: Argument type is partially unknown
+ Argument corresponds to parameter "args[2]" in function "execlpe"
+ Argument type is "dict[str | Unknown, str | Unknown]" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/paasta/paasta_tools/cli/cmds/local_run.py:1033:57 - warning: Argument type is partially unknown
+ Argument corresponds to parameter "env" in function "_run"
+ Argument type is "dict[str | Unknown, str | Unknown]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/paasta/paasta_tools/cli/cmds/mark_for_deployment.py:1563:22 - warning: Type of "kubernetes_v2" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/paasta/paasta_tools/cli/cmds/mark_for_deployment.py:1563:22 - warning: Type of "versions" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/paasta/paasta_tools/cli/cmds/mark_for_deployment.py:1563:22 - error: "Never" is not iterable (reportGeneralTypeIssues)
- /tmp/mypy_primer/projects/paasta/paasta_tools/cli/cmds/mark_for_deployment.py:1590:35 - warning: Type of "reason" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/paasta/paasta_tools/cli/cmds/mark_for_deployment.py:1590:35 - warning: Argument type is unknown
- Argument corresponds to parameter "key" in function "setdefault" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/paasta/paasta_tools/cli/cmds/mark_for_deployment.py:1616:91 - warning: Type of "name" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/paasta/paasta_tools/cli/cmds/spark_run.py:672:5 - warning: Type of "merged_env" is partially unknown
+ Type of "merged_env" is "dict[str | Unknown, str | Unknown]" (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/paasta/paasta_tools/cli/cmds/spark_run.py:673:58 - warning: Argument type is partially unknown
+ Argument corresponds to parameter "args[2]" in function "execlpe"
+ Argument type is "dict[str | Unknown, str | Unknown]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/paasta/paasta_tools/cli/cmds/status.py:803:39 - warning: Type of "flink_version" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/paasta/paasta_tools/cli/cmds/status.py:803:68 - warning: Type of "flink_revision" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/paasta/paasta_tools/cli/cmds/status.py:806:49 - warning: Type of "flink_version" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/paasta/paasta_tools/cli/cmds/status.py:861:17 - warning: Type of "jobs_running" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/paasta/paasta_tools/cli/cmds/status.py:862:17 - warning: Type of "jobs_finished" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/paasta/paasta_tools/cli/cmds/status.py:863:17 - warning: Type of "jobs_failed" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/paasta/paasta_tools/cli/cmds/status.py:864:17 - warning: Type of "jobs_cancelled" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/paasta/paasta_tools/cli/cmds/status.py:868:17 - warning: Type of "taskmanagers" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/paasta/paasta_tools/cli/cmds/status.py:869:17 - warning: Type of "slots_available" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/paasta/paasta_tools/cli/cmds/status.py:869:44 - warning: Type of "slots_total" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/paasta/paasta_tools/cli/cmds/status.py:1062:17 - warning: Type of "versions" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/paasta/paasta_tools/cli/cmds/status.py:1062:17 - warning: Argument type is unknown
- Argument corresponds to parameter "versions" in function "get_versions_table" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/paasta/paasta_tools/cli/cmds/status.py:1068:45 - warning: Type of "autoscaling_status" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/paasta/paasta_tools/cli/cmds/status.py:1068:45 - warning: Argument type is unknown
- Argument corresponds to parameter "autoscaling_status" in function "get_autoscaling_table" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/paasta/paasta_tools/cli/cmds/status.py:1070:8 - warning: Type of "error_message" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/paasta/paasta_tools/cli/cmds/status.py:1071:49 - warning: Type of "error_message" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/paasta/paasta_tools/cli/cmds/status.py:1071:49 - warning: Argument type is unknown
- Argument corresponds to parameter "text" in function "red" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/paasta/paasta_tools/cli/cmds/status.py:1079:24 - warning: Type of "versions" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/paasta/paasta_tools/cli/cmds/status.py:1079:24 - warning: Argument type is unknown
- Argument corresponds to parameter "obj" in function "len" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/paasta/paasta_tools/cli/cmds/status.py:1080:56 - warning: Type of "versions" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/paasta/paasta_tools/cli/cmds/status.py:1080:56 - error: "Never" is not iterable (reportGeneralTypeIssues)
- /tmp/mypy_primer/projects/paasta/paasta_tools/cli/cmds/status.py:1081:8 - warning: Type of "desired_state" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/paasta/paasta_tools/cli/cmds/status.py:1082:53 - warning: Type of "versions" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/paasta/paasta_tools/cli/cmds/status.py:1082:53 - error: "Never" is not iterable (reportGeneralTypeIssues)
- /tmp/mypy_primer/projects/paasta/paasta_tools/cli/cmds/status.py:1086:10 - warning: Type of "desired_state" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/paasta/paasta_tools/cli/cmds/status.py:1088:16 - warning: Type of "desired_instances" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/paasta/paasta_tools/cli/cmds/status.py:1093:37 - warning: Type of "desired_instances" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/paasta/paasta_tools/cli/cmds/status.py:1099:17 - warning: Type of "versions" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/paasta/paasta_tools/cli/cmds/status.py:1099:17 - warning: Argument type is unknown
- Argument corresponds to parameter "iterable" in function "sorted" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/paasta/paasta_tools/cli/cmds/status.py:1129:51 - warning: Type of "create_timestamp" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/paasta/paasta_tools/cli/cmds/status.py:1129:51 - warning: Return type of lambda is unknown (reportUnknownLambdaType)
- /tmp/mypy_primer/projects/paasta/paasta_tools/cli/cmds/status.py:1130:9 - warning: Type of "config_shas" is partially unknown
- Type of "config_shas" is "set[Unknown]" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/paasta/paasta_tools/cli/cmds/status.py:1130:24 - warning: Type of "config_sha" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/paasta/paasta_tools/cli/cmds/status.py:1131:31 - warning: Argument type is partially unknown
- Argument corresponds to parameter "obj" in function "len"
- Argument type is "set[Unknown]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/paasta/paasta_tools/cli/cmds/status.py:1133:9 - warning: Type of "namespaces" is partially unknown
- Type of "namespaces" is "set[Unknown]" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/paasta/paasta_tools/cli/cmds/status.py:1133:23 - warning: Type of "namespace" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/paasta/paasta_tools/cli/cmds/status.py:1134:30 - warning: Argument type is partially unknown
- Argument corresponds to parameter "obj" in function "len"
- Argument type is "set[Unknown]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/paasta/paasta_tools/cli/cmds/status.py:1175:5 - warning: Type of "version_name" is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/paasta/paasta_tools/cli/cmds/status.py:1175:20 - warning: Type of "git_sha" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/paasta/paasta_tools/cli/cmds/status.py:1177:9 - warning: Type of "version_name" is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/paasta/paasta_tools/cli/cmds/status.py:1177:30 - warning: Type of "config_sha" is unknown (reportUnknownMemberType)
... (truncated 318 lines) ...
pyodide (https://github.com/pyodide/pyodide)
+ /tmp/mypy_primer/projects/pyodide/src/py/_pyodide/_core_docs.py:1078:7 - error: Base classes for class "JsMutableMap" define method "get" in incompatible way
+ Override does not handle all overloads of base method (reportIncompatibleMethodOverride)
- /tmp/mypy_primer/projects/pyodide/src/py/_pyodide/_core_docs.py:1105:9 - error: Method "pop" overrides class "MutableMapping" in an incompatible manner
+ /tmp/mypy_primer/projects/pyodide/src/tests/test_pyodide.py:1952:11 - error: Base classes for class "ChainMap" define method "get" in incompatible way
+ Override does not handle all overloads of base method (reportIncompatibleMethodOverride)
+ /tmp/mypy_primer/projects/pyodide/src/tests/test_pyodide.py:1952:11 - error: Base classes for class "ChainMap" define method "fromkeys" in incompatible way
+ Override does not handle all overloads of base method (reportIncompatibleMethodOverride)
+ /tmp/mypy_primer/projects/pyodide/src/tests/test_typeconversions.py:970:11 - error: Base classes for class "D1" define method "get" in incompatible way
+ Override does not handle all overloads of base method (reportIncompatibleMethodOverride)
+ /tmp/mypy_primer/projects/pyodide/src/tests/test_typeconversions.py:970:11 - error: Base classes for class "D1" define method "fromkeys" in incompatible way
+ Override does not handle all overloads of base method (reportIncompatibleMethodOverride)
... (truncated 2163 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.