-
Notifications
You must be signed in to change notification settings - Fork 30
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.389 #872
Merged
Merged
Merge 1.1.389 #872
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
Co-authored-by: Bill Schnurr <bschnurr@microsoft.com> Co-authored-by: HeeJae Chang <hechang@microsoft.com> Co-authored-by: Erik De Bonte <erikd@microsoft.com> Co-authored-by: Rich Chiodo <rchiodo@microsoft.com> Co-authored-by: Stella Huang <stellahuang@microsoft.com> Co-authored-by: Kacie Kang <jikang@microsoft.com>
…gged as a syntax error at runtime. This addresses #9416 and #9413. (#9419)
…is addresses #9406. (#9420)
…st, set and dictionary comprehensions within a non-async function. This addresses #9414. (#9421)
…eates a union of generic types. These types should be specialized with default type arguments. This addresses #9415. (#9424)
… `None`. This addresses #9423. (#9427)
… statement uses a pattern with a target expression that overwrites the subject expression. This addresses #9418. (#9428)
… if the argument is an expression involving an `__init__` parameter in an unannotated (pseudo-generic) class. (#9431)
…ned to an incompatible class. (#9432)
…ssion of the form `type(A)` as a base class or a metaclass in a class definition. This addresses #9430. (#9433)
… a polymorphic method. This addresses #9417. (#9434)
…ever to be falsy if it has at least one required entry. This addresses #9435. (#9436)
… the case where `x` is a TypeVar. (#9437)
…y switching to a different toml parser. This addresses #9412.
…a type annotation for a method parameter and both the class and the method are generic and use PEP 695 syntax. This addresses #9382. (#9438)
…en using an explicit `TypeAliasType` call to create a public symbol in a "py.typed" library. This addresses #9446.
…es into a single structure. No functional change.
…scriptor if the descriptor class is generic. This addresses #9450. (#9451)
# Conflicts: # lerna.json # packages/pyright-internal/package-lock.json # packages/pyright-internal/package.json # packages/pyright-internal/src/analyzer/service.ts # packages/pyright-internal/src/analyzer/typeEvaluator.ts # packages/pyright-internal/src/localization/package.nls.ru.json # packages/pyright-internal/src/localization/package.nls.zh-cn.json # packages/pyright/package-lock.json # packages/pyright/package.json # packages/vscode-pyright/package-lock.json # packages/vscode-pyright/package.json # tsconfig.json
Diff from mypy_primer, showing the effect of this PR on open source code: more-itertools (https://github.com/more-itertools/more-itertools)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:330:25 - warning: Argument type is unknown
+ Argument corresponds to parameter "object" in function "iter" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:1025:25 - warning: Argument type is unknown
+ Argument corresponds to parameter "object" in function "iter" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2217:34 - warning: Type of "step" is Any (reportAny)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2217:34 - warning: Type of "step" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2217:56 - warning: Type of "step" is Any (reportAny)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2217:56 - warning: Type of "step" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2219:16 - warning: Type of "start" is Any (reportAny)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2219:16 - warning: Type of "start" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2219:37 - warning: Type of "start" is Any (reportAny)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2219:37 - warning: Type of "start" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2221:18 - warning: Type of "start" is Any (reportAny)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2221:18 - warning: Type of "start" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2224:17 - warning: Type of "start" is partially unknown
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2224:17 - warning: Type of "start" is unknown (reportUnknownVariableType)
- Type of "start" is "Any | Unknown" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2224:44 - warning: Type of "start" is Any (reportAny)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2224:44 - warning: Type of "start" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2224:44 - warning: Argument type is Any
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2224:44 - warning: Argument type is unknown
- Argument corresponds to parameter "i" in function "_get_by_index" (reportAny)
+ Argument corresponds to parameter "i" in function "_get_by_index" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2226:16 - warning: Type of "stop" is Any (reportAny)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2226:16 - warning: Type of "stop" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2226:36 - warning: Type of "stop" is Any (reportAny)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2226:36 - warning: Type of "stop" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2228:18 - warning: Type of "stop" is Any (reportAny)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2228:18 - warning: Type of "stop" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2231:17 - warning: Type of "stop" is partially unknown
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2231:17 - warning: Type of "stop" is unknown (reportUnknownVariableType)
- Type of "stop" is "Any | Unknown" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2231:43 - warning: Type of "stop" is Any (reportAny)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2231:43 - warning: Type of "stop" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2231:43 - warning: Argument type is Any
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2231:43 - warning: Argument type is unknown
- Argument corresponds to parameter "i" in function "_get_by_index" (reportAny)
+ Argument corresponds to parameter "i" in function "_get_by_index" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2517:19 - warning: Argument type is unknown
+ Argument corresponds to parameter "object" in function "iter" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2519:56 - warning: Argument type is unknown
+ Argument corresponds to parameter "stop" in function "__new__" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2887:29 - warning: Argument type is unknown
+ Argument corresponds to parameter "object" in function "iter" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:3392:31 - warning: Argument type is unknown
+ Argument corresponds to parameter "object" in function "iter" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:4363:25 - warning: Argument type is unknown
+ Argument corresponds to parameter "object" in function "iter" (reportUnknownArgumentType)
- 24 errors, 2700 warnings, 0 notes
+ 24 errors, 2707 warnings, 0 notes
kornia (https://github.com/kornia/kornia)
- Parameter type is "Unknown | slice | None" (reportUnknownParameterType)
+ Parameter type is "Unknown | slice[Any, Any, Any] | None" (reportUnknownParameterType)
- /tmp/mypy_primer/projects/kornia/kornia/feature/dedode/transformer/dinov2.py:297:30 - error: Argument of type "Literal['x_norm_clstoken']" cannot be assigned to parameter "s" of type "slice" in function "__getitem__"
+ /tmp/mypy_primer/projects/kornia/kornia/feature/dedode/transformer/dinov2.py:297:30 - error: Argument of type "Literal['x_norm_clstoken']" cannot be assigned to parameter "s" of type "slice[Any, Any, Any]" in function "__getitem__"
- "Literal['x_norm_clstoken']" is not assignable to "slice" (reportArgumentType)
+ "Literal['x_norm_clstoken']" is not assignable to "slice[Any, Any, Any]" (reportArgumentType)
+ /tmp/mypy_primer/projects/kornia/kornia/feature/dedode/transformer/layers/dino_head.py:26:40 - warning: Argument type is unknown
+ Argument corresponds to parameter "in_dim" in function "_build_mlp" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/kornia/kornia/filters/gaussian.py:64:46 - error: Argument of type "tuple[slice, Literal[1]]" cannot be assigned to parameter "key" of type "slice" in function "__getitem__"
+ /tmp/mypy_primer/projects/kornia/kornia/filters/gaussian.py:64:46 - error: Argument of type "tuple[slice[_StartT@slice, _StopT@slice, _StepT@slice], Literal[1]]" cannot be assigned to parameter "key" of type "slice[Any, Any, Any]" in function "__getitem__"
- "tuple[slice, Literal[1]]" is not assignable to "slice" (reportArgumentType)
+ "tuple[slice[_StartT@slice, _StopT@slice, _StepT@slice], Literal[1]]" is not assignable to "slice[Any, Any, Any]" (reportArgumentType)
- /tmp/mypy_primer/projects/kornia/kornia/filters/gaussian.py:65:46 - error: Argument of type "tuple[slice, Literal[0]]" cannot be assigned to parameter "key" of type "slice" in function "__getitem__"
+ /tmp/mypy_primer/projects/kornia/kornia/filters/gaussian.py:65:46 - error: Argument of type "tuple[slice[_StartT@slice, _StopT@slice, _StepT@slice], Literal[0]]" cannot be assigned to parameter "key" of type "slice[Any, Any, Any]" in function "__getitem__"
- "tuple[slice, Literal[0]]" is not assignable to "slice" (reportArgumentType)
+ "tuple[slice[_StartT@slice, _StopT@slice, _StepT@slice], Literal[0]]" is not assignable to "slice[Any, Any, Any]" (reportArgumentType)
- /tmp/mypy_primer/projects/kornia/kornia/filters/kernels.py:658:24 - error: Argument of type "tuple[slice, Literal[0], None]" cannot be assigned to parameter "key" of type "slice" in function "__getitem__"
+ /tmp/mypy_primer/projects/kornia/kornia/filters/kernels.py:658:24 - error: Argument of type "tuple[slice[_StartT@slice, _StopT@slice, _StepT@slice], Literal[0], None]" cannot be assigned to parameter "key" of type "slice[Any, Any, Any]" in function "__getitem__"
- "tuple[slice, Literal[0], None]" is not assignable to "slice" (reportArgumentType)
+ "tuple[slice[_StartT@slice, _StopT@slice, _StepT@slice], Literal[0], None]" is not assignable to "slice[Any, Any, Any]" (reportArgumentType)
- /tmp/mypy_primer/projects/kornia/kornia/filters/kernels.py:658:43 - error: Argument of type "tuple[slice, Literal[1], None]" cannot be assigned to parameter "key" of type "slice" in function "__getitem__"
+ /tmp/mypy_primer/projects/kornia/kornia/filters/kernels.py:658:43 - error: Argument of type "tuple[slice[_StartT@slice, _StopT@slice, _StepT@slice], Literal[1], None]" cannot be assigned to parameter "key" of type "slice[Any, Any, Any]" in function "__getitem__"
- "tuple[slice, Literal[1], None]" is not assignable to "slice" (reportArgumentType)
+ "tuple[slice[_StartT@slice, _StopT@slice, _StepT@slice], Literal[1], None]" is not assignable to "slice[Any, Any, Any]" (reportArgumentType)
- /tmp/mypy_primer/projects/kornia/kornia/filters/kernels.py:716:33 - error: Argument of type "tuple[slice, Literal[0], None]" cannot be assigned to parameter "key" of type "slice" in function "__getitem__"
+ /tmp/mypy_primer/projects/kornia/kornia/filters/kernels.py:716:33 - error: Argument of type "tuple[slice[_StartT@slice, _StopT@slice, _StepT@slice], Literal[0], None]" cannot be assigned to parameter "key" of type "slice[Any, Any, Any]" in function "__getitem__"
- "tuple[slice, Literal[0], None]" is not assignable to "slice" (reportArgumentType)
+ "tuple[slice[_StartT@slice, _StopT@slice, _StepT@slice], Literal[0], None]" is not assignable to "slice[Any, Any, Any]" (reportArgumentType)
- /tmp/mypy_primer/projects/kornia/kornia/filters/kernels.py:716:52 - error: Argument of type "tuple[slice, Literal[1], None]" cannot be assigned to parameter "key" of type "slice" in function "__getitem__"
+ /tmp/mypy_primer/projects/kornia/kornia/filters/kernels.py:716:52 - error: Argument of type "tuple[slice[_StartT@slice, _StopT@slice, _StepT@slice], Literal[1], None]" cannot be assigned to parameter "key" of type "slice[Any, Any, Any]" in function "__getitem__"
- "tuple[slice, Literal[1], None]" is not assignable to "slice" (reportArgumentType)
+ "tuple[slice[_StartT@slice, _StopT@slice, _StepT@slice], Literal[1], None]" is not assignable to "slice[Any, Any, Any]" (reportArgumentType)
- /tmp/mypy_primer/projects/kornia/kornia/filters/kernels.py:716:71 - error: Argument of type "tuple[slice, Literal[2], None]" cannot be assigned to parameter "key" of type "slice" in function "__getitem__"
+ /tmp/mypy_primer/projects/kornia/kornia/filters/kernels.py:716:71 - error: Argument of type "tuple[slice[_StartT@slice, _StopT@slice, _StepT@slice], Literal[2], None]" cannot be assigned to parameter "key" of type "slice[Any, Any, Any]" in function "__getitem__"
- "tuple[slice, Literal[2], None]" is not assignable to "slice" (reportArgumentType)
+ "tuple[slice[_StartT@slice, _StopT@slice, _StepT@slice], Literal[2], None]" is not assignable to "slice[Any, Any, Any]" (reportArgumentType)
- /tmp/mypy_primer/projects/kornia/kornia/filters/kernels_geometry.py:153:17 - error: Argument of type "None" cannot be assigned to parameter "key" of type "slice" in function "__getitem__"
+ /tmp/mypy_primer/projects/kornia/kornia/filters/kernels_geometry.py:153:17 - error: Argument of type "None" cannot be assigned to parameter "key" of type "slice[Any, Any, Any]" in function "__getitem__"
- "None" is not assignable to "slice" (reportArgumentType)
+ "None" is not assignable to "slice[Any, Any, Any]" (reportArgumentType)
- /tmp/mypy_primer/projects/kornia/kornia/filters/kernels_geometry.py:184:31 - error: Argument of type "tuple[slice, Literal[0]]" cannot be assigned to parameter "key" of type "slice" in function "__getitem__"
+ /tmp/mypy_primer/projects/kornia/kornia/filters/kernels_geometry.py:184:31 - error: Argument of type "tuple[slice[_StartT@slice, _StopT@slice, _StepT@slice], Literal[0]]" cannot be assigned to parameter "key" of type "slice[Any, Any, Any]" in function "__getitem__"
- "tuple[slice, Literal[0]]" is not assignable to "slice" (reportArgumentType)
+ "tuple[slice[_StartT@slice, _StopT@slice, _StepT@slice], Literal[0]]" is not assignable to "slice[Any, Any, Any]" (reportArgumentType)
- /tmp/mypy_primer/projects/kornia/kornia/filters/kernels_geometry.py:184:44 - error: Argument of type "tuple[slice, Literal[1]]" cannot be assigned to parameter "key" of type "slice" in function "__getitem__"
+ /tmp/mypy_primer/projects/kornia/kornia/filters/kernels_geometry.py:184:44 - error: Argument of type "tuple[slice[_StartT@slice, _StopT@slice, _StepT@slice], Literal[1]]" cannot be assigned to parameter "key" of type "slice[Any, Any, Any]" in function "__getitem__"
- "tuple[slice, Literal[1]]" is not assignable to "slice" (reportArgumentType)
+ "tuple[slice[_StartT@slice, _StopT@slice, _StepT@slice], Literal[1]]" is not assignable to "slice[Any, Any, Any]" (reportArgumentType)
- /tmp/mypy_primer/projects/kornia/kornia/filters/kernels_geometry.py:184:57 - error: Argument of type "tuple[slice, Literal[2]]" cannot be assigned to parameter "key" of type "slice" in function "__getitem__"
+ /tmp/mypy_primer/projects/kornia/kornia/filters/kernels_geometry.py:184:57 - error: Argument of type "tuple[slice[_StartT@slice, _StopT@slice, _StepT@slice], Literal[2]]" cannot be assigned to parameter "key" of type "slice[Any, Any, Any]" in function "__getitem__"
- "tuple[slice, Literal[2]]" is not assignable to "slice" (reportArgumentType)
+ "tuple[slice[_StartT@slice, _StopT@slice, _StepT@slice], Literal[2]]" is not assignable to "slice[Any, Any, Any]" (reportArgumentType)
- Parameter type is "slice | int | Unknown" (reportUnknownParameterType)
+ Parameter type is "slice[Any, Any, Any] | int | Unknown" (reportUnknownParameterType)
- Parameter type is "slice | int | Unknown" (reportUnknownParameterType)
+ Parameter type is "slice[Any, Any, Any] | int | Unknown" (reportUnknownParameterType)
- /tmp/mypy_primer/projects/kornia/kornia/geometry/boxes.py:297:9 - error: Argument of type "tuple[EllipsisType, Literal[0]]" cannot be assigned to parameter "s" of type "slice" in function "__getitem__"
+ /tmp/mypy_primer/projects/kornia/kornia/geometry/boxes.py:297:9 - error: Argument of type "tuple[EllipsisType, Literal[0]]" cannot be assigned to parameter "s" of type "slice[Any, Any, Any]" in function "__getitem__"
- "tuple[EllipsisType, Literal[0]]" is not assignable to "slice" (reportArgumentType)
+ "tuple[EllipsisType, Literal[0]]" is not assignable to "slice[Any, Any, Any]" (reportArgumentType)
- /tmp/mypy_primer/projects/kornia/kornia/geometry/boxes.py:297:9 - error: Argument of type "tuple[EllipsisType, Literal[0]]" cannot be assigned to parameter "key" of type "slice" in function "__setitem__"
... (truncated 195 lines) ...
rich (https://github.com/Textualize/rich)
- "type[type]" is not assignable to "type[Tuple[int, int]]" (reportReturnType)
+ Type "type[ValueError]" is not assignable to type "Tuple[int, int]" (reportReturnType)
psycopg (https://github.com/psycopg/psycopg)
- /tmp/mypy_primer/projects/psycopg/psycopg/psycopg/_queries.py:159:29 - error: Argument of type "str" cannot be assigned to parameter "index" of type "slice" in function "__getitem__"
+ /tmp/mypy_primer/projects/psycopg/psycopg/psycopg/_queries.py:159:29 - error: Argument of type "str" cannot be assigned to parameter "index" of type "slice[Any, Any, Any]" in function "__getitem__"
- "str" is not assignable to "slice" (reportArgumentType)
+ "str" is not assignable to "slice[Any, Any, Any]" (reportArgumentType)
- /tmp/mypy_primer/projects/psycopg/psycopg_c/setup.py:13:6 - warning: Stub file not found for "distutils.command.build_ext" (reportMissingTypeStubs)
- /tmp/mypy_primer/projects/psycopg/psycopg_c/setup.py:14:6 - warning: Stub file not found for "distutils" (reportMissingTypeStubs)
+ /tmp/mypy_primer/projects/psycopg/psycopg_c/setup.py:14:23 - error: "log" is unknown import symbol (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/psycopg/psycopg_c/setup.py:14:23 - warning: Type of "log" is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/psycopg/psycopg_c/setup.py:28:9 - warning: Type of "error" is partially unknown
+ /tmp/mypy_primer/projects/psycopg/psycopg_c/setup.py:28:9 - warning: Type of "error" is unknown (reportUnknownMemberType)
- Type of "error" is "(msg: Unknown, *args: Unknown) -> None" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/psycopg/psycopg_c/setup.py:50:13 - warning: Type of "ext" is unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/psycopg/psycopg_c/setup.py:50:13 - warning: Type of "ext" is Any (reportAny)
- /tmp/mypy_primer/projects/psycopg/psycopg_c/setup.py:50:20 - error: "None" is not iterable
+ /tmp/mypy_primer/projects/psycopg/psycopg_c/setup.py:50:20 - warning: Type of "ext_modules" is Any (reportAny)
- "__iter__" method not defined (reportGeneralTypeIssues)
- /tmp/mypy_primer/projects/psycopg/psycopg_c/setup.py:51:13 - warning: Type of "include_dirs" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/psycopg/psycopg_c/setup.py:51:13 - warning: Type of "include_dirs" is Any (reportAny)
- /tmp/mypy_primer/projects/psycopg/psycopg_c/setup.py:51:13 - warning: Type of "append" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/psycopg/psycopg_c/setup.py:51:13 - warning: Type of "append" is Any (reportAny)
- /tmp/mypy_primer/projects/psycopg/psycopg_c/setup.py:52:13 - warning: Type of "library_dirs" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/psycopg/psycopg_c/setup.py:52:13 - warning: Type of "library_dirs" is Any (reportAny)
- /tmp/mypy_primer/projects/psycopg/psycopg_c/setup.py:52:13 - warning: Type of "append" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/psycopg/psycopg_c/setup.py:52:13 - warning: Type of "append" is Any (reportAny)
- /tmp/mypy_primer/projects/psycopg/psycopg_c/setup.py:56:17 - warning: Type of "libraries" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/psycopg/psycopg_c/setup.py:56:17 - warning: Type of "libraries" is Any (reportAny)
- /tmp/mypy_primer/projects/psycopg/psycopg_c/setup.py:56:17 - warning: Type of "append" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/psycopg/psycopg_c/setup.py:56:17 - warning: Type of "append" is Any (reportAny)
- /tmp/mypy_primer/projects/psycopg/psycopg_c/setup.py:59:17 - warning: Type of "ext" is unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/psycopg/psycopg_c/setup.py:59:17 - warning: Type of "ext" is Any (reportAny)
- /tmp/mypy_primer/projects/psycopg/psycopg_c/setup.py:59:24 - error: "None" is not iterable
+ /tmp/mypy_primer/projects/psycopg/psycopg_c/setup.py:59:24 - warning: Type of "ext_modules" is Any (reportAny)
- "__iter__" method not defined (reportGeneralTypeIssues)
- /tmp/mypy_primer/projects/psycopg/psycopg_c/setup.py:60:36 - warning: Type of "sources" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/psycopg/psycopg_c/setup.py:60:36 - warning: Type of "sources" is Any (reportAny)
- /tmp/mypy_primer/projects/psycopg/psycopg_c/setup.py:60:36 - warning: Argument type is unknown
+ /tmp/mypy_primer/projects/psycopg/psycopg_c/setup.py:60:36 - warning: Argument type is Any
- Argument corresponds to parameter "obj" in function "len" (reportUnknownArgumentType)
+ Argument corresponds to parameter "obj" in function "len" (reportAny)
- /tmp/mypy_primer/projects/psycopg/psycopg_c/setup.py:61:21 - warning: Type of "base" is unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/psycopg/psycopg_c/setup.py:61:21 - warning: Type of "base" is Any (reportAny)
- /tmp/mypy_primer/projects/psycopg/psycopg_c/setup.py:61:27 - warning: Type of "fext" is unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/psycopg/psycopg_c/setup.py:61:27 - warning: Type of "fext" is Any (reportAny)
- /tmp/mypy_primer/projects/psycopg/psycopg_c/setup.py:61:51 - warning: Type of "sources" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/psycopg/psycopg_c/setup.py:61:51 - warning: Type of "sources" is Any (reportAny)
- /tmp/mypy_primer/projects/psycopg/psycopg_c/setup.py:61:51 - warning: Argument type is unknown
+ /tmp/mypy_primer/projects/psycopg/psycopg_c/setup.py:61:51 - warning: Argument type is Any
- Argument corresponds to parameter "p" in function "splitext" (reportUnknownArgumentType)
+ Argument corresponds to parameter "p" in function "splitext" (reportAny)
- /tmp/mypy_primer/projects/psycopg/psycopg_c/setup.py:62:56 - warning: Argument type is unknown
+ /tmp/mypy_primer/projects/psycopg/psycopg_c/setup.py:62:56 - warning: Argument type is Any
- Argument corresponds to parameter "path" in function "exists" (reportUnknownArgumentType)
+ Argument corresponds to parameter "path" in function "exists" (reportAny)
- /tmp/mypy_primer/projects/psycopg/psycopg_c/setup.py:63:25 - warning: Type of "sources" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/psycopg/psycopg_c/setup.py:63:25 - warning: Type of "sources" is Any (reportAny)
+ /tmp/mypy_primer/projects/psycopg/psycopg_c/setup.py:66:17 - warning: Type of "ext_modules" is Any (reportAny)
- /tmp/mypy_primer/projects/psycopg/psycopg_c/setup.py:74:31 - error: Cannot assign to attribute "ext_modules" for class "Distribution"
- Expression of type "list[Extension]" cannot be assigned to attribute "ext_modules" of class "Distribution"
- "list[Extension]" is not assignable to "None" (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/psycopg/psycopg_c/setup.py:100:28 - error: Argument of type "dict[str, type[psycopg_build_ext]]" cannot be assigned to parameter "cmdclass" of type "Mapping[str, type[Command]]" in function "setup"
- "type[psycopg_build_ext]" is not assignable to "type[Command]"
- Type "type[psycopg_build_ext]" is not assignable to type "type[Command]" (reportArgumentType)
+ /tmp/mypy_primer/projects/psycopg/psycopg_pool/psycopg_pool/null_pool.py:55:30 - warning: Argument type is unknown
+ Argument corresponds to parameter "connection_class" in function "__init__" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/psycopg/psycopg_pool/psycopg_pool/null_pool.py:166:28 - warning: Argument type is unknown
+ Argument corresponds to parameter "conn" in function "set" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/psycopg/psycopg_pool/psycopg_pool/null_pool_async.py:50:30 - warning: Argument type is unknown
+ Argument corresponds to parameter "connection_class" in function "__init__" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/psycopg/psycopg_pool/psycopg_pool/null_pool_async.py:162:34 - warning: Argument type is unknown
+ Argument corresponds to parameter "conn" in function "set" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/psycopg/psycopg_pool/psycopg_pool/pool.py:173:26 - warning: Argument type is unknown
+ Argument corresponds to parameter "conn" in function "putconn" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/psycopg/psycopg_pool/psycopg_pool/pool.py:211:40 - warning: Argument type is unknown
+ Argument corresponds to parameter "conn" in function "_check_connection" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/psycopg/psycopg_pool/psycopg_pool/pool.py:213:31 - warning: Argument type is unknown
+ Argument corresponds to parameter "conn" in function "_putconn" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/psycopg/psycopg_pool/psycopg_pool/pool.py:286:25 - warning: Argument type is unknown
+ Argument corresponds to parameter "__p0" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/psycopg/psycopg_pool/psycopg_pool/pool.py:308:34 - warning: Argument type is unknown
+ Argument corresponds to parameter "conn" in function "_check_pool_putconn" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/psycopg/psycopg_pool/psycopg_pool/pool.py:311:41 - warning: Argument type is unknown
+ Argument corresponds to parameter "conn" in function "_maybe_close_connection" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/psycopg/psycopg_pool/psycopg_pool/pool.py:314:23 - warning: Argument type is unknown
+ Argument corresponds to parameter "conn" in function "_putconn" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/psycopg/psycopg_pool/psycopg_pool/pool.py:319:50 - warning: Argument type is unknown
+ Argument corresponds to parameter "conn" in function "__init__" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/psycopg/psycopg_pool/psycopg_pool/pool.py:321:37 - warning: Argument type is unknown
+ Argument corresponds to parameter "conn" in function "_return_connection" (reportUnknownArgumentType)
... (truncated 81 lines) ...
mkosi (https://github.com/systemd/mkosi)
+ /tmp/mypy_primer/projects/mkosi/mkosi/sandbox.py:337:22 - error: Argument of type "int | None" cannot be assigned to parameter "status" of type "int" in function "_exit"
+ Type "int | None" is not assignable to type "int"
+ "None" is not assignable to "int" (reportArgumentType)
- 24 errors, 1506 warnings, 0 notes
+ 25 errors, 1506 warnings, 0 notes
pytest (https://github.com/pytest-dev/pytest)
+ /tmp/mypy_primer/projects/pytest/doc/en/example/multipython.py:29:40 - warning: Argument type is unknown
+ Argument corresponds to parameter "cmd" in function "which" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/pytest/doc/en/example/multipython.py:40:31 - warning: Argument type is unknown
+ Argument corresponds to parameter "object" in function "__new__" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/pytest/doc/en/example/multipython.py:54:31 - warning: Argument type is unknown
+ Argument corresponds to parameter "object" in function "__new__" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/pytest/src/_pytest/helpconfig.py:31:28 - warning: Argument type is unknown
+ Argument corresponds to parameter "option_strings" in function "__init__" (reportUnknownArgumentType)
- "type[type]" is not assignable to "type[HookRecorder]" (reportReturnType)
+ Type "type[reprec]" is not assignable to type "HookRecorder" (reportReturnType)
+ /tmp/mypy_primer/projects/pytest/src/_pytest/_io/pprint.py:48:25 - warning: Argument type is unknown
+ Argument corresponds to parameter "object" in function "__new__" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/pytest/src/_pytest/_io/pprint.py:48:30 - warning: Argument type is unknown
+ Argument corresponds to parameter "o" in function "__init__" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/pytest/src/_pytest/_io/pprint.py:48:45 - warning: Argument type is unknown
+ Argument corresponds to parameter "obj" in function "id" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/pytest/src/_pytest/_py/error.py:96:47 - error: Argument of type "int | None" cannot be assigned to parameter "key" of type "int" in function "__getitem__"
+ Type "int | None" is not assignable to type "int"
+ "None" is not assignable to "int" (reportArgumentType)
+ /tmp/mypy_primer/projects/pytest/src/_pytest/_py/error.py:101:43 - error: Argument of type "int | None" cannot be assigned to parameter "eno" of type "int" in function "_geterrnoclass"
+ Type "int | None" is not assignable to type "int"
+ "None" is not assignable to "int" (reportArgumentType)
+ /tmp/mypy_primer/projects/pytest/src/_pytest/_py/path.py:68:20 - warning: Argument type is unknown
+ Argument corresponds to parameter "object" in function "__new__" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/pytest/src/_pytest/_py/path.py:144:26 - warning: Argument type is unknown
+ Argument corresponds to parameter "obj" in function "hasattr" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/_py/path.py:194:34 - warning: Argument type is partially unknown
+ /tmp/mypy_primer/projects/pytest/src/_pytest/_py/path.py:194:34 - warning: Argument type is unknown
- Argument corresponds to parameter "s" in function "isabs"
+ Argument corresponds to parameter "s" in function "isabs" (reportUnknownArgumentType)
- Argument type is "Unknown" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/_py/path.py:196:38 - warning: Argument type is partially unknown
+ /tmp/mypy_primer/projects/pytest/src/_pytest/_py/path.py:196:38 - warning: Argument type is unknown
- Argument corresponds to parameter "pat" in function "fnmatch"
+ Argument corresponds to parameter "pat" in function "fnmatch" (reportUnknownArgumentType)
- Argument type is "Unknown" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/pytest/src/_pytest/_py/path.py:213:24 - warning: Argument type is unknown
+ Argument corresponds to parameter "o" in function "getattr" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/pytest/testing/test_assertion.py:812:38 - warning: Argument type is unknown
... (truncated 3927 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.