use a generic's bound when narrowing with `isinstance` if it's covariant, or `Never` if it's contravariant
fixes #674
Diff from mypy_primer, showing the effect of this PR on open source code:
anyio (https://github.com/agronholm/anyio)
- /tmp/mypy_primer/projects/anyio/src/anyio/from_thread.py:141:9 - error: Method "started" is not marked as override but is overriding a method in class "TaskStatus[Unknown]" (reportImplicitOverride)
+ /tmp/mypy_primer/projects/anyio/src/anyio/from_thread.py:141:9 - error: Method "started" is not marked as override but is overriding a method in class "TaskStatus[Never]" (reportImplicitOverride)
- /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:673:9 - error: Method "started" is not marked as override but is overriding a method in class "TaskStatus[Unknown]" (reportImplicitOverride)
+ /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:673:9 - error: Method "started" is not marked as override but is overriding a method in class "TaskStatus[Never]" (reportImplicitOverride)
- /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_trio.py:881:12 - error: Type of "_send_stream" is partially unknown
- Type of "_send_stream" is "MemoryObjectSendStream[Unknown] | None" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_trio.py:882:13 - error: Type of "_send_stream" is partially unknown
- Type of "_send_stream" is "MemoryObjectSendStream[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_trio.py:883:19 - error: Type of "_send_stream" is partially unknown
- Type of "_send_stream" is "MemoryObjectSendStream[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_trio.py:883:19 - error: Condition will always evaluate to True since the types "MemoryObjectSendStream[Unknown]" and "None" have no overlap (reportUnnecessaryComparison)
+ /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_trio.py:883:19 - error: Condition will always evaluate to True since the types "MemoryObjectSendStream[Never]" and "None" have no overlap (reportUnnecessaryComparison)
- /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_trio.py:906:12 - error: Type of "_send_stream" is partially unknown
- Type of "_send_stream" is "MemoryObjectSendStream[Unknown] | None" (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_trio.py:917:39 - error: Argument of type "tuple[Awaitable[T_Retval@_call_in_runner_task], list[Unknown]]" cannot be assigned to parameter "item" of type "Never" in function "send_nowait"
+ Type "tuple[Awaitable[T_Retval@_call_in_runner_task], list[Unknown]]" is not assignable to type "Never" (reportArgumentType)
- /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_trio.py:917:9 - error: Type of "_send_stream" is partially unknown
- Type of "_send_stream" is "MemoryObjectSendStream[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_trio.py:917:9 - error: Type of "send_nowait" is partially unknown
- Type of "send_nowait" is "(item: Unknown) -> None" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/anyio/src/anyio/_core/_exceptions.py:86:13 - error: Type of "exc" is partially unknown
- Type of "exc" is "Unknown | BaseExceptionGroup[Unknown]" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/anyio/src/anyio/_core/_exceptions.py:86:20 - error: Type of "exceptions" is partially unknown
- Type of "exceptions" is "tuple[Unknown | BaseExceptionGroup[Unknown], ...]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/anyio/src/anyio/_core/_exceptions.py:87:43 - error: Argument type is partially unknown
- Argument corresponds to parameter "exception" in function "iterate_exceptions"
- Argument type is "Unknown | BaseExceptionGroup[Unknown]" (reportUnknownArgumentType)
- 1704 errors, 0 warnings, 0 notes
+ 1696 errors, 0 warnings, 0 notes
graphql-core (https://github.com/graphql-python/graphql-core)
+ /tmp/mypy_primer/projects/graphql-core/src/graphql/execution/execute.py:623:17 - error: Argument of type "GraphQLNullableType" cannot be assigned to parameter "return_type" of type "GraphQLOutputType" in function "complete_value"
+ Type "GraphQLNullableType" is not assignable to type "GraphQLOutputType"
+ Type "GraphQLInputObjectType" is not assignable to type "GraphQLOutputType"
+ "GraphQLInputObjectType" is not assignable to "GraphQLScalarType"
+ "GraphQLInputObjectType" is not assignable to "GraphQLObjectType"
+ "GraphQLInputObjectType" is not assignable to "GraphQLInterfaceType"
+ "GraphQLInputObjectType" is not assignable to "GraphQLUnionType"
+ "GraphQLInputObjectType" is not assignable to "GraphQLEnumType"
+ "GraphQLInputObjectType" is not assignable to "GraphQLList[GraphQLType]"
+ ... (reportArgumentType)
+ /tmp/mypy_primer/projects/graphql-core/src/graphql/execution/execute.py:645:17 - error: Argument of type "GraphQLList[GraphQLType]" cannot be assigned to parameter "return_type" of type "GraphQLList[GraphQLOutputType]" in function "complete_list_value"
+ "GraphQLList[GraphQLType]" is not assignable to "GraphQLList[GraphQLOutputType]"
+ Type parameter "GT_co@GraphQLList" is covariant, but "GraphQLType" is not a subtype of "GraphQLOutputType"
+ Type "GraphQLType" is not assignable to type "GraphQLOutputType"
+ "GraphQLType" is not assignable to "GraphQLScalarType"
+ "GraphQLType" is not assignable to "GraphQLObjectType"
+ "GraphQLType" is not assignable to "GraphQLInterfaceType"
+ "GraphQLType" is not assignable to "GraphQLUnionType"
+ "GraphQLType" is not assignable to "GraphQLEnumType"
+ ... (reportArgumentType)
+ /tmp/mypy_primer/projects/graphql-core/src/graphql/execution/execute.py:1769:16 - error: Type "object | None" is not assignable to return type "str | None"
+ Type "object | None" is not assignable to type "str | None"
+ Type "object" is not assignable to type "str | None"
+ "object" is not assignable to "str"
+ "object" is not assignable to "None" (reportReturnType)
+ /tmp/mypy_primer/projects/graphql-core/src/graphql/type/directives.py:164:13 - error: Argument of type "GraphQLNonNull[GraphQLNullableType]" cannot be assigned to parameter "type_" of type "GraphQLInputType" in function "__init__"
+ Type "GraphQLNonNull[GraphQLNullableType]" is not assignable to type "GraphQLInputType"
+ "GraphQLNonNull[GraphQLNullableType]" is not assignable to "GraphQLScalarType"
+ "GraphQLNonNull[GraphQLNullableType]" is not assignable to "GraphQLEnumType"
+ "GraphQLNonNull[GraphQLNullableType]" is not assignable to "GraphQLInputObjectType"
+ "GraphQLNonNull[GraphQLNullableType]" is not assignable to "GraphQLList[GraphQLType]"
+ "GraphQLNonNull[GraphQLNullableType]" is not assignable to "GraphQLNonNull[GraphQLNullableInputType]"
+ Type parameter "GNT_co@GraphQLNonNull" is covariant, but "GraphQLNullableType" is not a subtype of "GraphQLNullableInputType"
+ Type "GraphQLNullableType" is not assignable to type "GraphQLNullableInputType"
+ ... (reportArgumentType)
+ /tmp/mypy_primer/projects/graphql-core/src/graphql/type/directives.py:181:13 - error: Argument of type "GraphQLNonNull[GraphQLNullableType]" cannot be assigned to parameter "type_" of type "GraphQLInputType" in function "__init__"
+ Type "GraphQLNonNull[GraphQLNullableType]" is not assignable to type "GraphQLInputType"
+ "GraphQLNonNull[GraphQLNullableType]" is not assignable to "GraphQLScalarType"
+ "GraphQLNonNull[GraphQLNullableType]" is not assignable to "GraphQLEnumType"
+ "GraphQLNonNull[GraphQLNullableType]" is not assignable to "GraphQLInputObjectType"
+ "GraphQLNonNull[GraphQLNullableType]" is not assignable to "GraphQLList[GraphQLType]"
+ "GraphQLNonNull[GraphQLNullableType]" is not assignable to "GraphQLNonNull[GraphQLNullableInputType]"
+ Type parameter "GNT_co@GraphQLNonNull" is covariant, but "GraphQLNullableType" is not a subtype of "GraphQLNullableInputType"
+ Type "GraphQLNullableType" is not assignable to type "GraphQLNullableInputType"
+ ... (reportArgumentType)
+ /tmp/mypy_primer/projects/graphql-core/src/graphql/type/directives.py:196:13 - error: Argument of type "GraphQLNonNull[GraphQLNullableType]" cannot be assigned to parameter "type_" of type "GraphQLInputType" in function "__init__"
+ Type "GraphQLNonNull[GraphQLNullableType]" is not assignable to type "GraphQLInputType"
+ "GraphQLNonNull[GraphQLNullableType]" is not assignable to "GraphQLScalarType"
+ "GraphQLNonNull[GraphQLNullableType]" is not assignable to "GraphQLEnumType"
+ "GraphQLNonNull[GraphQLNullableType]" is not assignable to "GraphQLInputObjectType"
+ "GraphQLNonNull[GraphQLNullableType]" is not assignable to "GraphQLList[GraphQLType]"
+ "GraphQLNonNull[GraphQLNullableType]" is not assignable to "GraphQLNonNull[GraphQLNullableInputType]"
+ Type parameter "GNT_co@GraphQLNonNull" is covariant, but "GraphQLNullableType" is not a subtype of "GraphQLNullableInputType"
+ Type "GraphQLNullableType" is not assignable to type "GraphQLNullableInputType"
+ ... (reportArgumentType)
- "GraphQLNamedType" is not assignable to "GraphQLList[Unknown]"
+ "GraphQLNamedType" is not assignable to "GraphQLList[GraphQLType]"
+ /tmp/mypy_primer/projects/graphql-core/src/graphql/type/directives.py:212:13 - error: Argument of type "GraphQLNonNull[GraphQLNullableType]" cannot be assigned to parameter "type_" of type "GraphQLInputType" in function "__init__"
+ Type "GraphQLNonNull[GraphQLNullableType]" is not assignable to type "GraphQLInputType"
+ "GraphQLNonNull[GraphQLNullableType]" is not assignable to "GraphQLScalarType"
+ "GraphQLNonNull[GraphQLNullableType]" is not assignable to "GraphQLEnumType"
+ "GraphQLNonNull[GraphQLNullableType]" is not assignable to "GraphQLInputObjectType"
+ "GraphQLNonNull[GraphQLNullableType]" is not assignable to "GraphQLList[GraphQLType]"
+ "GraphQLNonNull[GraphQLNullableType]" is not assignable to "GraphQLNonNull[GraphQLNullableInputType]"
+ Type parameter "GNT_co@GraphQLNonNull" is covariant, but "GraphQLNullableType" is not a subtype of "GraphQLNullableInputType"
+ Type "GraphQLNullableType" is not assignable to type "GraphQLNullableInputType"
+ ... (reportArgumentType)
- "GraphQLNamedType" is not assignable to "GraphQLList[Unknown]"
+ "GraphQLNamedType" is not assignable to "GraphQLList[GraphQLType]"
- "GraphQLNamedType" is not assignable to "GraphQLList[Unknown]"
+ "GraphQLNamedType" is not assignable to "GraphQLList[GraphQLType]"
- "GraphQLNamedType" is not assignable to "GraphQLList[Unknown]"
+ "GraphQLNamedType" is not assignable to "GraphQLList[GraphQLType]"
+ /tmp/mypy_primer/projects/graphql-core/src/graphql/type/directives.py:257:13 - error: Argument of type "GraphQLNonNull[GraphQLNullableType]" cannot be assigned to parameter "type_" of type "GraphQLInputType" in function "__init__"
+ Type "GraphQLNonNull[GraphQLNullableType]" is not assignable to type "GraphQLInputType"
+ "GraphQLNonNull[GraphQLNullableType]" is not assignable to "GraphQLScalarType"
+ "GraphQLNonNull[GraphQLNullableType]" is not assignable to "GraphQLEnumType"
+ "GraphQLNonNull[GraphQLNullableType]" is not assignable to "GraphQLInputObjectType"
+ "GraphQLNonNull[GraphQLNullableType]" is not assignable to "GraphQLList[GraphQLType]"
+ "GraphQLNonNull[GraphQLNullableType]" is not assignable to "GraphQLNonNull[GraphQLNullableInputType]"
+ Type parameter "GNT_co@GraphQLNonNull" is covariant, but "GraphQLNullableType" is not a subtype of "GraphQLNullableInputType"
+ Type "GraphQLNullableType" is not assignable to type "GraphQLNullableInputType"
+ ... (reportArgumentType)
- "GraphQLNamedType" is not assignable to "GraphQLList[Unknown]"
+ "GraphQLNamedType" is not assignable to "GraphQLList[GraphQLType]"
+ /tmp/mypy_primer/projects/graphql-core/src/graphql/type/introspection.py:115:17 - error: Argument of type "GraphQLNonNull[GraphQLNullableType]" cannot be assigned to parameter "type_" of type "GraphQLOutputType" in function "__init__"
+ Type "GraphQLNonNull[GraphQLNullableType]" is not assignable to type "GraphQLOutputType"
+ "GraphQLNonNull[GraphQLNullableType]" is not assignable to "GraphQLScalarType"
+ "GraphQLNonNull[GraphQLNullableType]" is not assignable to "GraphQLObjectType"
+ "GraphQLNonNull[GraphQLNullableType]" is not assignable to "GraphQLInterfaceType"
+ "GraphQLNonNull[GraphQLNullableType]" is not assignable to "GraphQLUnionType"
+ "GraphQLNonNull[GraphQLNullableType]" is not assignable to "GraphQLEnumType"
+ "GraphQLNonNull[GraphQLNullableType]" is not assignable to "GraphQLList[GraphQLType]"
+ "GraphQLNonNull[GraphQLNullableType]" is not assignable to "GraphQLNonNull[GraphQLNullableOutputType]"
+ ... (reportArgumentType)
- "GraphQLNamedType" is not assignable to "GraphQLList[Unknown]"
+ "GraphQLNamedType" is not assignable to "GraphQLList[GraphQLType]"
+ /tmp/mypy_primer/projects/graphql-core/src/graphql/type/introspection.py:123:17 - error: Argument of type "GraphQLNonNull[GraphQLNullableType]" cannot be assigned to parameter "type_" of type "GraphQLOutputType" in function "__init__"
+ Type "GraphQLNonNull[GraphQLNullableType]" is not assignable to type "GraphQLOutputType"
+ "GraphQLNonNull[GraphQLNullableType]" is not assignable to "GraphQLScalarType"
+ "GraphQLNonNull[GraphQLNullableType]" is not assignable to "GraphQLObjectType"
... (truncated 333 lines) ...
pytest-robotframework (https://github.com/detachhead/pytest-robotframework)
+ /tmp/mypy_primer/projects/pytest-robotframework/pytest_robotframework/__init__.py:423:42 - error: Unnecessary "# pyright: ignore" rule: "reportUnknownArgumentType" (reportUnnecessaryTypeIgnoreComment)
- 2258 errors, 0 warnings, 0 notes
+ 2259 errors, 0 warnings, 0 notes
python-htmlgen (https://github.com/srittau/python-htmlgen)
- /tmp/mypy_primer/projects/python-htmlgen/test_htmlgen/generator.py:23:9 - error: Return type is unknown (reportUnknownParameterType)
+ /tmp/mypy_primer/projects/python-htmlgen/test_htmlgen/generator.py:23:9 - error: Method "generate" overrides class "Generator" in an incompatible manner
+ Return type mismatch: base method returns type "GenValueGenerator", override returns type "SupportsNext[Any]"
+ "SupportsNext[Any]" is not assignable to "Generator[GenValue, None, None]" (reportIncompatibleMethodOverride)
- /tmp/mypy_primer/projects/python-htmlgen/test_htmlgen/generator.py:24:16 - error: Return type is unknown (reportUnknownVariableType)
- 1211 errors, 0 warnings, 0 notes
+ 1210 errors, 0 warnings, 0 notes
artigraph (https://github.com/artigraph/artigraph)
- /tmp/mypy_primer/projects/artigraph/src/arti/executors/local.py:24:14 - error: Type of "backend" is partially unknown
- Type of "backend" is "Backend[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/artigraph/src/arti/executors/local.py:24:44 - error: Type of "backend" is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/artigraph/src/arti/executors/local.py:32:75 - error: Argument type is unknown
- Argument corresponds to parameter "connection" in function "get_producer_inputs" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/artigraph/src/arti/executors/local.py:39:25 - error: Argument type is unknown
- Argument corresponds to parameter "connection" in function "discover_producer_partitions" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/artigraph/src/arti/executors/local.py:46:29 - error: Argument type is unknown
- Argument corresponds to parameter "connection" in function "build_producer_partition" (reportUnknownArgumentType)
- Type of "backend" is "Unknown | Backend[Unknown]" (reportUnknownVariableType)
+ Type of "backend" is "Unknown | Backend[BackendConnection]" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/artigraph/src/arti/graphs/__init__.py:310:9 - error: Return type, "Backend[Unknown]", is partially unknown (reportUnknownParameterType)
- /tmp/mypy_primer/projects/artigraph/src/arti/graphs/__init__.py:353:29 - error: Type of "backend" is partially unknown
- Type of "backend" is "Backend[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/artigraph/src/arti/graphs/__init__.py:353:60 - error: Type of "conn" is partially unknown
- Type of "conn" is "BackendConnection | Unknown" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/artigraph/src/arti/graphs/__init__.py:354:13 - error: Type of "write_graph" is partially unknown
- Type of "write_graph" is "((graph: Graph) -> None) | Unknown" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/artigraph/src/arti/graphs/__init__.py:354:13 - error: Result of call expression is of type "Unknown | None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
- /tmp/mypy_primer/projects/artigraph/src/arti/graphs/__init__.py:355:13 - error: Type of "write_snapshot" is partially unknown
- Type of "write_snapshot" is "((snapshot: GraphSnapshot) -> None) | Unknown" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/artigraph/src/arti/graphs/__init__.py:355:13 - error: Result of call expression is of type "Unknown | None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
- /tmp/mypy_primer/projects/artigraph/src/arti/graphs/__init__.py:357:17 - error: Type of "write_artifact_and_graph_partitions" is partially unknown
- Type of "write_artifact_and_graph_partitions" is "((snapshot: GraphSnapshot, artifact_key: str, artifact: Artifact, partitions: tuple[StoragePartitionSnapshot, ...]) -> None) | Unknown" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/artigraph/src/arti/graphs/__init__.py:357:17 - error: Result of call expression is of type "Unknown | None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
- /tmp/mypy_primer/projects/artigraph/src/arti/graphs/__init__.py:373:29 - error: Type of "backend" is partially unknown
- Type of "backend" is "Backend[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/artigraph/src/arti/graphs/__init__.py:373:56 - error: Type of "conn" is partially unknown
- Type of "conn" is "BackendConnection | Unknown" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/artigraph/src/arti/graphs/__init__.py:374:13 - error: Type of "write_snapshot_tag" is partially unknown
- Type of "write_snapshot_tag" is "((snapshot: GraphSnapshot, tag: str, overwrite: bool = False) -> None) | Unknown" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/artigraph/src/arti/graphs/__init__.py:374:13 - error: Result of call expression is of type "Unknown | None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
- /tmp/mypy_primer/projects/artigraph/src/arti/graphs/__init__.py:382:9 - error: Type of parameter "connectable" is partially unknown
- Parameter type is "Backend[Unknown] | BackendConnection" (reportUnknownParameterType)
- /tmp/mypy_primer/projects/artigraph/src/arti/graphs/__init__.py:384:39 - error: Type of "conn" is partially unknown
- Type of "conn" is "BackendConnection | Unknown" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/artigraph/src/arti/graphs/__init__.py:385:20 - error: Type of "read_snapshot_tag" is partially unknown
- Type of "read_snapshot_tag" is "((name: str, tag: str) -> GraphSnapshot) | Unknown" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/artigraph/src/arti/graphs/__init__.py:385:20 - error: Return type, "GraphSnapshot | Unknown", is partially unknown (reportUnknownVariableType)
- Argument type is "Mapping[Unknown, Unknown]" (reportUnknownArgumentType)
+ Argument type is "Mapping[Unknown, object]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/artigraph/src/arti/internal/mappings.py:197:24 - error: Type of "v" is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/artigraph/src/arti/internal/type_hints.py:149:9 - error: Type of "first" is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/artigraph/src/arti/internal/type_hints.py:149:17 - error: Type of "tail" is partially unknown
- Type of "tail" is "list[Unknown]" (reportUnknownVariableType)
- Argument type is "tuple[Unknown, ...] | list[Unknown] | set[Unknown] | frozenset[Unknown]" (reportUnknownArgumentType)
+ Argument type is "tuple[Unknown, ...] | list[Unknown] | set[Unknown] | frozenset[object]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/artigraph/src/arti/internal/type_hints.py:150:9 - error: Type of "first_type" is partially unknown
- Type of "first_type" is "type[Unknown]" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/artigraph/src/arti/internal/type_hints.py:150:27 - error: Argument type is unknown
- Argument corresponds to parameter "o" in function "__init__" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/artigraph/src/arti/internal/type_hints.py:151:46 - error: Type of "v" is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/artigraph/src/arti/internal/type_hints.py:154:20 - error: Type "frozenset[Unknown]" is already specialized (reportInvalidTypeArguments)
+ /tmp/mypy_primer/projects/artigraph/src/arti/internal/type_hints.py:154:20 - error: Type "frozenset[object]" is already specialized (reportInvalidTypeArguments)
- /tmp/mypy_primer/projects/artigraph/src/arti/internal/type_hints.py:154:20 - error: Return type, "type[list[Unknown]] | type[set[Unknown]] | type[frozenset[Unknown]]", is partially unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/artigraph/src/arti/internal/type_hints.py:154:20 - error: Return type, "type[list[Unknown]] | type[set[Unknown]] | type[frozenset[object]]", is partially unknown (reportUnknownVariableType)
- Argument type is "list[Unknown] | set[Unknown] | frozenset[Unknown]" (reportUnknownArgumentType)
+ Argument type is "list[Unknown] | set[Unknown] | frozenset[object]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/artigraph/src/arti/types/__init__.py:106:20 - error: Return type, "frozenset[Unknown]", is partially unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/artigraph/src/arti/types/__init__.py:106:30 - error: Argument type is partially unknown
- Argument corresponds to parameter "iterable" in function "__new__"
- Argument type is "Iterable[Unknown]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/artigraph/src/arti/types/__init__.py:107:16 - error: Return type, "Any | Mapping[Unknown, Unknown]", is partially unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/artigraph/src/arti/types/__init__.py:107:16 - error: Return type, "Any | Mapping[object, Unknown]", is partially unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/artigraph/tests/arti/graphs/test_graph.py:196:25 - error: Type of "backend" is partially unknown
- Type of "backend" is "Backend[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/artigraph/tests/arti/graphs/test_graph.py:239:12 - error: Type of "from_tag" is partially unknown
- Type of "from_tag" is "(name: str, tag: str, *, connectable: Backend[Unknown] | BackendConnection) -> GraphSnapshot" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/artigraph/tests/arti/graphs/test_graph.py:253:16 - error: Type of "from_tag" is partially unknown
- Type of "from_tag" is "(name: str, tag: str, *, connectable: Backend[Unknown] | BackendConnection) -> GraphSnapshot" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/artigraph/tests/arti/graphs/test_graph.py:256:9 - error: Type of "from_tag" is partially unknown
- Type of "from_tag" is "(name: str, tag: str, *, connectable: Backend[Unknown] | BackendConnection) -> GraphSnapshot" (reportUnknownMemberType)
- 3550 errors, 0 warnings, 0 notes
+ 3516 errors, 0 warnings, 0 notes
mypy (https://github.com/python/mypy)
- /tmp/mypy_primer/projects/mypy/mypy/server/objgraph.py:55:16 - error: Type of "e" is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/mypy/mypy/server/objgraph.py:55:31 - error: Argument type is partially unknown
- Argument corresponds to parameter "iterable" in function "__new__"
- Argument type is "Iterable[Unknown]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/mypy/mypyc/analysis/ircheck.py:303:14 - error: Unnecessary isinstance call; "FrozenSet[object]" is always an instance of "frozenset[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/mypy/mypyc/analysis/ircheck.py:303:14 - error: Unnecessary isinstance call; "FrozenSet[object]" is always an instance of "frozenset[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/mypy/mypyc/codegen/literals.py:66:14 - error: Unnecessary isinstance call; "FrozenSet[object]" is always an instance of "frozenset[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/mypy/mypyc/codegen/literals.py:66:14 - error: Unnecessary isinstance call; "FrozenSet[object]" is always an instance of "frozenset[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/mypy/mypyc/codegen/literals.py:105:12 - error: Unnecessary isinstance call; "FrozenSet[object]" is always an instance of "frozenset[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/mypy/mypyc/codegen/literals.py:105:12 - error: Unnecessary isinstance call; "FrozenSet[object]" is always an instance of "frozenset[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/mypy/mypyc/test/test_serialization.py:66:17 - error: Type of "xv" is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/mypy/mypyc/test/test_serialization.py:66:38 - error: Argument type is partially unknown
- Argument corresponds to parameter "iterable" in function "__new__"
- Argument type is "zip[tuple[Unknown, Any]]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/mypy/mypyc/test/test_serialization.py:66:42 - error: Argument type is partially unknown
- Argument corresponds to parameter "iter1" in function "__new__"
- Argument type is "Iterable[Unknown]" (reportUnknownArgumentType)
- 16229 errors, 0 warnings, 0 notes
+ 16224 errors, 0 warnings, 0 notes
sympy (https://github.com/sympy/sympy)
- /tmp/mypy_primer/projects/sympy/sympy/combinatorics/permutations.py:1662:20 - error: Argument of type "Iterable[Unknown]" cannot be assigned to parameter "obj" of type "Sized" in function "len"
+ /tmp/mypy_primer/projects/sympy/sympy/combinatorics/permutations.py:1662:20 - error: Argument of type "Iterable[object]" cannot be assigned to parameter "obj" of type "Sized" in function "len"
- "Iterable[Unknown]" is incompatible with protocol "Sized"
+ "Iterable[object]" is incompatible with protocol "Sized"
- /tmp/mypy_primer/projects/sympy/sympy/combinatorics/permutations.py:1664:60 - error: Argument type is partially unknown
- Argument corresponds to parameter "args" in function "format"
- Argument type is "Iterable[Unknown]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/sympy/sympy/combinatorics/permutations.py:1665:21 - error: "__getitem__" method not defined on type "Iterable[Unknown]" (reportIndexIssue)
+ /tmp/mypy_primer/projects/sympy/sympy/combinatorics/permutations.py:1665:21 - error: "__getitem__" method not defined on type "Iterable[object]" (reportIndexIssue)
- /tmp/mypy_primer/projects/sympy/sympy/core/basic.py:351:24 - error: Argument type is unknown
- Argument corresponds to parameter "args" in function "__new__" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/sympy/sympy/core/basic.py:352:24 - error: Argument type is unknown
- Argument corresponds to parameter "args" in function "__new__" (reportUnknownArgumentType)
- Type of "sequence" is "ItemsView[Unknown, Unknown] | Unknown" (reportUnknownVariableType)
+ Type of "sequence" is "ItemsView[Unknown, object] | Unknown" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/sympy/sympy/core/basic.py:1074:51 - error: Argument type is unknown
- Argument corresponds to parameter "new" in function "sympify_new" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/sympy/sympy/core/basic.py:1074:64 - error: Type of "s2" is unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/sympy/sympy/core/basic.py:1074:64 - error: Type of "s2" is partially unknown
+ Type of "s2" is "Unknown | object" (reportUnknownVariableType)
- Type of "sequence" is "ItemsView[Unknown, Unknown] | Unknown" (reportUnknownVariableType)
+ Type of "sequence" is "ItemsView[Unknown, object] | Unknown" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/sympy/sympy/integrals/manualintegrate.py:780:14 - error: Type of "new" is unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/sympy/sympy/integrals/manualintegrate.py:780:14 - error: Type of "new" is partially unknown
+ Type of "new" is "object | Unknown" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/sympy/sympy/integrals/manualintegrate.py:789:38 - error: Argument type is unknown
- Argument corresponds to parameter "args" in function "__new__" (reportUnknownArgumentType)
- Argument type is "ItemsView[Unknown, Unknown] | Unknown | list[tuple[Unknown, Unknown]]" (reportUnknownArgumentType)
+ Argument type is "ItemsView[Unknown, object] | Unknown | list[tuple[Unknown, Unknown]]" (reportUnknownArgumentType)
... (truncated 2131 lines) ...```
Diff from mypy_primer, showing the effect of this PR on open source code:
anyio (https://github.com/agronholm/anyio)
- /tmp/mypy_primer/projects/anyio/src/anyio/_core/_exceptions.py:86:13 - error: Type of "exc" is partially unknown
- Type of "exc" is "Unknown | BaseExceptionGroup[Unknown]" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/anyio/src/anyio/_core/_exceptions.py:86:20 - error: Type of "exceptions" is partially unknown
- Type of "exceptions" is "tuple[Unknown | BaseExceptionGroup[Unknown], ...]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/anyio/src/anyio/_core/_exceptions.py:87:43 - error: Argument type is partially unknown
- Argument corresponds to parameter "exception" in function "iterate_exceptions"
- Argument type is "Unknown | BaseExceptionGroup[Unknown]" (reportUnknownArgumentType)
- 1704 errors, 0 warnings, 0 notes
+ 1701 errors, 0 warnings, 0 notes
pytest-robotframework (https://github.com/detachhead/pytest-robotframework)
+ /tmp/mypy_primer/projects/pytest-robotframework/pytest_robotframework/__init__.py:423:42 - error: Unnecessary "# pyright: ignore" rule: "reportUnknownArgumentType" (reportUnnecessaryTypeIgnoreComment)
- 2258 errors, 0 warnings, 0 notes
+ 2259 errors, 0 warnings, 0 notes
graphql-core (https://github.com/graphql-python/graphql-core)
+ /tmp/mypy_primer/projects/graphql-core/src/graphql/execution/execute.py:1769:16 - error: Type "object | None" is not assignable to return type "str | None"
+ Type "object | None" is not assignable to type "str | None"
+ Type "object" is not assignable to type "str | None"
+ "object" is not assignable to "str"
+ "object" is not assignable to "None" (reportReturnType)
- 1860 errors, 0 warnings, 0 notes
+ 1861 errors, 0 warnings, 0 notes
artigraph (https://github.com/artigraph/artigraph)
- Argument type is "Mapping[Unknown, Unknown]" (reportUnknownArgumentType)
+ Argument type is "Mapping[Unknown, object]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/artigraph/src/arti/internal/mappings.py:197:24 - error: Type of "v" is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/artigraph/src/arti/internal/type_hints.py:149:9 - error: Type of "first" is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/artigraph/src/arti/internal/type_hints.py:149:17 - error: Type of "tail" is partially unknown
- Type of "tail" is "list[Unknown]" (reportUnknownVariableType)
- Argument type is "tuple[Unknown, ...] | list[Unknown] | set[Unknown] | frozenset[Unknown]" (reportUnknownArgumentType)
+ Argument type is "tuple[Unknown, ...] | list[Unknown] | set[Unknown] | frozenset[object]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/artigraph/src/arti/internal/type_hints.py:150:9 - error: Type of "first_type" is partially unknown
- Type of "first_type" is "type[Unknown]" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/artigraph/src/arti/internal/type_hints.py:150:27 - error: Argument type is unknown
- Argument corresponds to parameter "o" in function "__init__" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/artigraph/src/arti/internal/type_hints.py:151:46 - error: Type of "v" is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/artigraph/src/arti/internal/type_hints.py:154:20 - error: Type "frozenset[Unknown]" is already specialized (reportInvalidTypeArguments)
+ /tmp/mypy_primer/projects/artigraph/src/arti/internal/type_hints.py:154:20 - error: Type "frozenset[object]" is already specialized (reportInvalidTypeArguments)
- /tmp/mypy_primer/projects/artigraph/src/arti/internal/type_hints.py:154:20 - error: Return type, "type[list[Unknown]] | type[set[Unknown]] | type[frozenset[Unknown]]", is partially unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/artigraph/src/arti/internal/type_hints.py:154:20 - error: Return type, "type[list[Unknown]] | type[set[Unknown]] | type[frozenset[object]]", is partially unknown (reportUnknownVariableType)
- Argument type is "list[Unknown] | set[Unknown] | frozenset[Unknown]" (reportUnknownArgumentType)
+ Argument type is "list[Unknown] | set[Unknown] | frozenset[object]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/artigraph/src/arti/types/__init__.py:106:20 - error: Return type, "frozenset[Unknown]", is partially unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/artigraph/src/arti/types/__init__.py:106:30 - error: Argument type is partially unknown
- Argument corresponds to parameter "iterable" in function "__new__"
- Argument type is "Iterable[Unknown]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/artigraph/src/arti/types/__init__.py:107:16 - error: Return type, "Any | Mapping[Unknown, Unknown]", is partially unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/artigraph/src/arti/types/__init__.py:107:16 - error: Return type, "Any | Mapping[object, Unknown]", is partially unknown (reportUnknownVariableType)
- 3550 errors, 0 warnings, 0 notes
+ 3542 errors, 0 warnings, 0 notes
mypy (https://github.com/python/mypy)
- /tmp/mypy_primer/projects/mypy/mypy/server/objgraph.py:55:16 - error: Type of "e" is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/mypy/mypy/server/objgraph.py:55:31 - error: Argument type is partially unknown
- Argument corresponds to parameter "iterable" in function "__new__"
- Argument type is "Iterable[Unknown]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/mypy/mypyc/analysis/ircheck.py:303:14 - error: Unnecessary isinstance call; "FrozenSet[object]" is always an instance of "frozenset[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/mypy/mypyc/analysis/ircheck.py:303:14 - error: Unnecessary isinstance call; "FrozenSet[object]" is always an instance of "frozenset[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/mypy/mypyc/codegen/literals.py:66:14 - error: Unnecessary isinstance call; "FrozenSet[object]" is always an instance of "frozenset[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/mypy/mypyc/codegen/literals.py:66:14 - error: Unnecessary isinstance call; "FrozenSet[object]" is always an instance of "frozenset[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/mypy/mypyc/codegen/literals.py:105:12 - error: Unnecessary isinstance call; "FrozenSet[object]" is always an instance of "frozenset[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/mypy/mypyc/codegen/literals.py:105:12 - error: Unnecessary isinstance call; "FrozenSet[object]" is always an instance of "frozenset[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/mypy/mypyc/test/test_serialization.py:66:17 - error: Type of "xv" is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/mypy/mypyc/test/test_serialization.py:66:38 - error: Argument type is partially unknown
- Argument corresponds to parameter "iterable" in function "__new__"
- Argument type is "zip[tuple[Unknown, Any]]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/mypy/mypyc/test/test_serialization.py:66:42 - error: Argument type is partially unknown
- Argument corresponds to parameter "iter1" in function "__new__"
- Argument type is "Iterable[Unknown]" (reportUnknownArgumentType)
- 16229 errors, 0 warnings, 0 notes
+ 16224 errors, 0 warnings, 0 notes
sympy (https://github.com/sympy/sympy)
- /tmp/mypy_primer/projects/sympy/sympy/combinatorics/permutations.py:1662:20 - error: Argument of type "Iterable[Unknown]" cannot be assigned to parameter "obj" of type "Sized" in function "len"
+ /tmp/mypy_primer/projects/sympy/sympy/combinatorics/permutations.py:1662:20 - error: Argument of type "Iterable[object]" cannot be assigned to parameter "obj" of type "Sized" in function "len"
- "Iterable[Unknown]" is incompatible with protocol "Sized"
+ "Iterable[object]" is incompatible with protocol "Sized"
- /tmp/mypy_primer/projects/sympy/sympy/combinatorics/permutations.py:1664:60 - error: Argument type is partially unknown
- Argument corresponds to parameter "args" in function "format"
- Argument type is "Iterable[Unknown]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/sympy/sympy/combinatorics/permutations.py:1665:21 - error: "__getitem__" method not defined on type "Iterable[Unknown]" (reportIndexIssue)
+ /tmp/mypy_primer/projects/sympy/sympy/combinatorics/permutations.py:1665:21 - error: "__getitem__" method not defined on type "Iterable[object]" (reportIndexIssue)
- /tmp/mypy_primer/projects/sympy/sympy/core/basic.py:351:24 - error: Argument type is unknown
- Argument corresponds to parameter "args" in function "__new__" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/sympy/sympy/core/basic.py:352:24 - error: Argument type is unknown
- Argument corresponds to parameter "args" in function "__new__" (reportUnknownArgumentType)
- Type of "sequence" is "ItemsView[Unknown, Unknown] | Unknown" (reportUnknownVariableType)
+ Type of "sequence" is "ItemsView[Unknown, object] | Unknown" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/sympy/sympy/core/basic.py:1074:51 - error: Argument type is unknown
- Argument corresponds to parameter "new" in function "sympify_new" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/sympy/sympy/core/basic.py:1074:64 - error: Type of "s2" is unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/sympy/sympy/core/basic.py:1074:64 - error: Type of "s2" is partially unknown
+ Type of "s2" is "Unknown | object" (reportUnknownVariableType)
- Type of "sequence" is "ItemsView[Unknown, Unknown] | Unknown" (reportUnknownVariableType)
+ Type of "sequence" is "ItemsView[Unknown, object] | Unknown" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/sympy/sympy/integrals/manualintegrate.py:780:14 - error: Type of "new" is unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/sympy/sympy/integrals/manualintegrate.py:780:14 - error: Type of "new" is partially unknown
+ Type of "new" is "object | Unknown" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/sympy/sympy/integrals/manualintegrate.py:789:38 - error: Argument type is unknown
- Argument corresponds to parameter "args" in function "__new__" (reportUnknownArgumentType)
- Argument type is "ItemsView[Unknown, Unknown] | Unknown | list[tuple[Unknown, Unknown]]" (reportUnknownArgumentType)
+ Argument type is "ItemsView[Unknown, object] | Unknown | list[tuple[Unknown, Unknown]]" (reportUnknownArgumentType)
- Type of "__str__" is "((self: list[Unknown]) -> str) | ((self: tuple[Unknown, ...]) -> str) | ((self: set[Unknown]) -> str) | ((self: frozenset[Unknown]) -> str)" (reportUnknownMemberType)
+ Type of "__str__" is "((self: list[Unknown]) -> str) | ((self: tuple[Unknown, ...]) -> str) | ((self: set[Unknown]) -> str) | ((self: frozenset[object]) -> str)" (reportUnknownMemberType)
- Argument type is "list[Unknown] | tuple[Unknown, ...] | set[Unknown] | frozenset[Unknown]" (reportUnknownArgumentType)
+ Argument type is "list[Unknown] | tuple[Unknown, ...] | set[Unknown] | frozenset[object]" (reportUnknownArgumentType)
- Type of "__repr__" is "((self: list[Unknown]) -> str) | ((self: tuple[Unknown, ...]) -> str) | ((self: set[Unknown]) -> str) | ((self: frozenset[Unknown]) -> str)" (reportUnknownMemberType)
+ Type of "__repr__" is "((self: list[Unknown]) -> str) | ((self: tuple[Unknown, ...]) -> str) | ((self: set[Unknown]) -> str) | ((self: frozenset[object]) -> str)" (reportUnknownMemberType)
- Argument type is "list[Unknown] | tuple[Unknown, ...] | set[Unknown] | frozenset[Unknown]" (reportUnknownArgumentType)
+ Argument type is "list[Unknown] | tuple[Unknown, ...] | set[Unknown] | frozenset[object]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/sympy/sympy/interactive/printing.py:149:39 - error: Argument type is unknown
+ /tmp/mypy_primer/projects/sympy/sympy/interactive/printing.py:149:46 - error: Type of "i" is partially unknown
+ Type of "i" is "Unknown | object" (reportUnknownVariableType)
- Argument corresponds to parameter "o" in function "_can_print" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/sympy/sympy/interactive/printing.py:149:46 - error: Type of "i" is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/sympy/sympy/matrices/common.py:2293:62 - error: Argument type is partially unknown
- Argument corresponds to parameter "iterable" in function "__init__"
- Argument type is "Permutation | Iterable[Unknown]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/sympy/sympy/matrices/common.py:2297:24 - error: "__getitem__" method not defined on type "Iterable[Unknown]" (reportIndexIssue)
+ /tmp/mypy_primer/projects/sympy/sympy/matrices/common.py:2297:24 - error: "__getitem__" method not defined on type "Iterable[object]" (reportIndexIssue)
- /tmp/mypy_primer/projects/sympy/sympy/matrices/common.py:2299:38 - error: Argument of type "Iterable[Unknown]" cannot be assigned to parameter "sequence" of type "SupportsLenAndGetItem[_T@reversed]" in function "__new__"
+ /tmp/mypy_primer/projects/sympy/sympy/matrices/common.py:2299:38 - error: Argument of type "Iterable[object]" cannot be assigned to parameter "sequence" of type "SupportsLenAndGetItem[_T@reversed]" in function "__new__"
- "Iterable[Unknown]" is incompatible with protocol "SupportsLenAndGetItem[_T@reversed]"
+ "Iterable[object]" is incompatible with protocol "SupportsLenAndGetItem[_T@reversed]"
- /tmp/mypy_primer/projects/sympy/sympy/matrices/matrixbase.py:2317:62 - error: Argument type is partially unknown
- Argument corresponds to parameter "iterable" in function "__init__"
- Argument type is "Permutation | Iterable[Unknown]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/sympy/sympy/matrices/matrixbase.py:2321:24 - error: "__getitem__" method not defined on type "Iterable[Unknown]" (reportIndexIssue)
+ /tmp/mypy_primer/projects/sympy/sympy/matrices/matrixbase.py:2321:24 - error: "__getitem__" method not defined on type "Iterable[object]" (reportIndexIssue)
- /tmp/mypy_primer/projects/sympy/sympy/matrices/matrixbase.py:2323:38 - error: Argument of type "Iterable[Unknown]" cannot be assigned to parameter "sequence" of type "SupportsLenAndGetItem[_T@reversed]" in function "__new__"
+ /tmp/mypy_primer/projects/sympy/sympy/matrices/matrixbase.py:2323:38 - error: Argument of type "Iterable[object]" cannot be assigned to parameter "sequence" of type "SupportsLenAndGetItem[_T@reversed]" in function "__new__"
- "Iterable[Unknown]" is incompatible with protocol "SupportsLenAndGetItem[_T@reversed]"
+ "Iterable[object]" is incompatible with protocol "SupportsLenAndGetItem[_T@reversed]"
- /tmp/mypy_primer/projects/sympy/sympy/physics/mechanics/linearize.py:312:17 - error: Type of "op" is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/sympy/sympy/physics/mechanics/linearize.py:313:38 - error: Argument type is unknown
- Argument corresponds to parameter "m" in function "update" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/sympy/sympy/physics/mechanics/linearize.py:313:17 - error: No overloads for "update" match the provided arguments (reportCallIssue)
+ /tmp/mypy_primer/projects/sympy/sympy/physics/mechanics/linearize.py:313:38 - error: Argument of type "object" cannot be assigned to parameter "m" of type "Iterable[tuple[Unknown, Unknown]]" in function "update"
+ "object" is incompatible with protocol "Iterable[tuple[Unknown, Unknown]]"
+ "__iter__" is not present (reportArgumentType)
- /tmp/mypy_primer/projects/sympy/sympy/physics/quantum/circuitutils.py:236:5 - error: Return type, "tuple[tuple[()] | tuple[Gate | Unknown], dict[Unknown, Unknown], Symbol | Unknown, Generator[Unknown, Unknown, Unknown] | Generator[Symbol, Any, NoReturn] | Unknown]", is partially unknown (reportUnknownParameterType)
+ /tmp/mypy_primer/projects/sympy/sympy/physics/quantum/circuitutils.py:236:5 - error: Return type, "tuple[tuple[()] | tuple[Gate | Unknown | object], dict[Unknown, Unknown], Symbol | Unknown | object, Generator[object, Never, object] | Generator[Symbol, Any, NoReturn] | Unknown]", is partially unknown (reportUnknownParameterType)
- /tmp/mypy_primer/projects/sympy/sympy/physics/quantum/circuitutils.py:282:9 - error: Type of "index_gen" is partially unknown
- Type of "index_gen" is "Generator[Unknown, Unknown, Unknown]" (reportUnknownVariableType)
- Type of "result" is "tuple[tuple[()] | tuple[Gate | Unknown], dict[Unknown, Unknown], Symbol | Unknown, Generator[Unknown, Unknown, Unknown] | Generator[Symbol, Any, NoReturn] | Unknown]" (reportUnknownVariableType)
+ Type of "result" is "tuple[tuple[()] | tuple[Gate | Unknown | object], dict[Unknown, Unknown], Symbol | Unknown | object, Generator[object, Never, object] | Generator[Symbol, Any, NoReturn] | Unknown]" (reportUnknownVariableType)
- Type of "sym_item" is "tuple[()] | tuple[Gate | Unknown]" (reportUnknownVariableType)
+ Type of "sym_item" is "tuple[()] | tuple[Gate | Unknown | object]" (reportUnknownVariableType)
- Type of "cur_ndx" is "Symbol | Unknown" (reportUnknownVariableType)
... (truncated 821 lines) ...
websockets (https://github.com/aaugustin/websockets)
- /tmp/mypy_primer/projects/websockets/src/websockets/headers.py:470:12 - error: Unnecessary isinstance call; "Sequence[Subprotocol]" is always an instance of "Sequence[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/websockets/src/websockets/headers.py:470:12 - error: Unnecessary isinstance call; "Sequence[Subprotocol]" is always an instance of "Sequence[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/websockets/src/websockets/asyncio/connection.py:492:14 - error: Unnecessary isinstance call; "AsyncIterable[Data]" is always an instance of "AsyncIterable[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/websockets/src/websockets/asyncio/connection.py:492:14 - error: Unnecessary isinstance call; "AsyncIterable[Data]" is always an instance of "AsyncIterable[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/websockets/src/websockets/asyncio/server.py:901:14 - error: Unnecessary isinstance call; "tuple[str, str] | Iterable[tuple[str, str]]" is always an instance of "Iterable[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/websockets/src/websockets/asyncio/server.py:901:14 - error: Unnecessary isinstance call; "tuple[str, str] | Iterable[tuple[str, str]]" is always an instance of "Iterable[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/websockets/src/websockets/asyncio/server.py:951:12 - error: Unnecessary isinstance call; "bool" is never an instance of "Awaitable[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/websockets/src/websockets/asyncio/server.py:951:12 - error: Unnecessary isinstance call; "bool" is never an instance of "Awaitable[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/websockets/src/websockets/legacy/auth.py:162:14 - error: Unnecessary isinstance call; "Credentials | Iterable[Credentials]" is always an instance of "Iterable[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/websockets/src/websockets/legacy/auth.py:162:14 - error: Unnecessary isinstance call; "Credentials | Iterable[Credentials]" is always an instance of "Iterable[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/websockets/src/websockets/legacy/protocol.py:678:14 - error: Unnecessary isinstance call; "AsyncIterable[Data]" is always an instance of "AsyncIterable[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/websockets/src/websockets/legacy/protocol.py:678:14 - error: Unnecessary isinstance call; "AsyncIterable[Data]" is always an instance of "AsyncIterable[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/websockets/src/websockets/legacy/server.py:361:16 - error: Unnecessary isinstance call; "Awaitable[HTTPResponse | None]" is always an instance of "Awaitable[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/websockets/src/websockets/legacy/server.py:361:16 - error: Unnecessary isinstance call; "Awaitable[HTTPResponse | None]" is always an instance of "Awaitable[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/websockets/src/websockets/legacy/server.py:586:12 - error: Unnecessary isinstance call; "Coroutine[Any, Any, HTTPResponse | None]" is always an instance of "Awaitable[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/websockets/src/websockets/legacy/server.py:586:12 - error: Unnecessary isinstance call; "Coroutine[Any, Any, HTTPResponse | None]" is always an instance of "Awaitable[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/websockets/src/websockets/sync/connection.py:321:14 - error: Unnecessary isinstance call; "Iterable[Data]" is always an instance of "Iterable[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/websockets/src/websockets/sync/connection.py:321:14 - error: Unnecessary isinstance call; "Iterable[Data]" is always an instance of "Iterable[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/websockets/src/websockets/sync/server.py:668:14 - error: Unnecessary isinstance call; "tuple[str, str] | Iterable[tuple[str, str]]" is always an instance of "Iterable[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/websockets/src/websockets/sync/server.py:668:14 - error: Unnecessary isinstance call; "tuple[str, str] | Iterable[tuple[str, str]]" is always an instance of "Iterable[object]" (reportUnnecessaryIsInstance)
dedupe (https://github.com/dedupeio/dedupe)
- /tmp/mypy_primer/projects/dedupe/dedupe/serializer.py:36:20 - error: Return type, "dict[str, str | list[Unknown]]", is partially unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/dedupe/dedupe/serializer.py:36:65 - error: Argument type is partially unknown
- Argument corresponds to parameter "iterable" in function "__init__"
- Argument type is "frozenset[Unknown]" (reportUnknownArgumentType)
- 2523 errors, 0 warnings, 0 notes
+ 2521 errors, 0 warnings, 0 notes
cloud-init (https://github.com/canonical/cloud-init)
- /tmp/mypy_primer/projects/cloud-init/cloudinit/log/loggers.py:101:32 - error: Argument type is unknown
- Argument corresponds to parameter "object" in function "__new__" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/cloud-init/cloudinit/log/loggers.py:101:39 - error: Type of "c" is unknown (reportUnknownVariableType)
- 66981 errors, 0 warnings, 0 notes
+ 66979 errors, 0 warnings, 0 notes
scikit-learn (https://github.com/scikit-learn/scikit-learn)
- /tmp/mypy_primer/projects/scikit-learn/sklearn/datasets/_arff_parser.py:254:47 - error: Argument type is partially unknown
- Argument corresponds to parameter "iterable" in function "from_iterable"
- Argument type is "Generator[List[Unknown], Unknown, Unknown]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/scikit-learn/sklearn/datasets/_samples_generator.py:1049:16 - error: Argument of type "Iterable[Unknown]" cannot be assigned to parameter "obj" of type "Sized" in function "len"
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/datasets/_samples_generator.py:1049:16 - error: Argument of type "Iterable[object]" cannot be assigned to parameter "obj" of type "Sized" in function "len"
- "Iterable[Unknown]" is incompatible with protocol "Sized"
+ "Iterable[object]" is incompatible with protocol "Sized"
- /tmp/mypy_primer/projects/scikit-learn/sklearn/datasets/_samples_generator.py:1078:29 - error: Argument type is partially unknown
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/datasets/_samples_generator.py:1078:25 - error: No overloads for "sum" match the provided arguments (reportCallIssue)
- Argument corresponds to parameter "iterable" in function "sum"
- Argument type is "<subclass of <subclass of int and Integral> and Iterable> | <subclass of int and Iterable> | list[int] | Unknown" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/datasets/_samples_generator.py:1078:29 - error: Argument of type "<subclass of <subclass of int and Integral> and Iterable[object]> | <subclass of int and Iterable[object]> | list[int] | Unknown" cannot be assigned to parameter "iterable" of type "Iterable[_SupportsSumNoDefaultT@sum]" in function "sum"
+ Type "<subclass of <subclass of int and Integral> and Iterable[object]> | <subclass of int and Iterable[object]> | list[int] | Unknown" is not assignable to type "Iterable[_SupportsSumNoDefaultT@sum]"
+ "<subclass of <subclass of int and Integral> and Iterable[object]>" is not assignable to "Iterable[_SupportsSumNoDefaultT@sum]"
+ Type parameter "_T_co@Iterable" is covariant, but "object" is not a subtype of "_SupportsSumNoDefaultT@sum"
+ Type "object" is not assignable to type "_SupportsSumWithNoDefaultGiven"
+ "object" is incompatible with protocol "_SupportsSumWithNoDefaultGiven" (reportArgumentType)
- /tmp/mypy_primer/projects/scikit-learn/sklearn/datasets/_samples_generator.py:1079:29 - error: Argument type is partially unknown
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/datasets/_samples_generator.py:1079:25 - error: No overloads for "sum" match the provided arguments (reportCallIssue)
- Argument corresponds to parameter "iterable" in function "sum"
- Argument type is "<subclass of <subclass of int and Integral> and Iterable> | <subclass of int and Iterable> | list[int] | Unknown" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/datasets/_samples_generator.py:1079:29 - error: Argument of type "<subclass of <subclass of int and Integral> and Iterable[object]> | <subclass of int and Iterable[object]> | list[int] | Unknown" cannot be assigned to parameter "iterable" of type "Iterable[_SupportsSumNoDefaultT@sum]" in function "sum"
+ Type "<subclass of <subclass of int and Integral> and Iterable[object]> | <subclass of int and Iterable[object]> | list[int] | Unknown" is not assignable to type "Iterable[_SupportsSumNoDefaultT@sum]"
+ "<subclass of <subclass of int and Integral> and Iterable[object]>" is not assignable to "Iterable[_SupportsSumNoDefaultT@sum]"
+ Type parameter "_T_co@Iterable" is covariant, but "object" is not a subtype of "_SupportsSumNoDefaultT@sum"
+ Type "object" is not assignable to type "_SupportsSumWithNoDefaultGiven"
+ "object" is incompatible with protocol "_SupportsSumWithNoDefaultGiven" (reportArgumentType)
- Argument type is "<subclass of <subclass of int and Integral> and Iterable> | <subclass of int and Iterable> | list[int] | Unknown" (reportUnknownArgumentType)
+ Argument type is "<subclass of <subclass of int and Integral> and Iterable[object]> | <subclass of int and Iterable[object]> | list[int] | Unknown" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/scikit-learn/sklearn/datasets/_svmlight_format_io.py:193:23 - error: Argument type is partially unknown
- Argument corresponds to parameter "path" in function "fspath"
- Argument type is "PathLike[Unknown]" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/datasets/_svmlight_format_io.py:193:13 - error: No overloads for "fspath" match the provided arguments (reportCallIssue)
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/datasets/_svmlight_format_io.py:193:23 - error: Argument of type "PathLike[object]" cannot be assigned to parameter "path" of type "PathLike[AnyStr@fspath]" in function "fspath"
+ "PathLike[object]" is not assignable to "PathLike[AnyStr@fspath]"
+ Type parameter "AnyStr_co@PathLike" is covariant, but "object" is not a subtype of "AnyStr@fspath"
+ Type "object" is not assignable to constrained type variable "AnyStr" (reportArgumentType)
- Argument type is "Mapping[Unknown, Unknown]" (reportUnknownArgumentType)
+ Argument type is "Mapping[Unknown, object]" (reportUnknownArgumentType)
- Type of "X" is "list[Mapping[Unknown, Unknown]] | Unknown" (reportUnknownVariableType)
+ Type of "X" is "list[Mapping[Unknown, object]] | Unknown" (reportUnknownVariableType)
- Type of "x" is "Mapping[Unknown, Unknown] | Unknown" (reportUnknownVariableType)
+ Type of "x" is "Mapping[Unknown, object] | Unknown" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/scikit-learn/sklearn/feature_extraction/_dict_vectorizer.py:225:20 - error: Type of "v" is unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/feature_extraction/_dict_vectorizer.py:225:20 - error: Type of "v" is partially unknown
+ Type of "v" is "object | Unknown" (reportUnknownVariableType)
- Type of "items" is "(() -> ItemsView[Unknown, Unknown]) | Unknown" (reportUnknownMemberType)
+ Type of "items" is "(() -> ItemsView[Unknown, object]) | Unknown" (reportUnknownMemberType)
- Argument type is "Mapping[Unknown, Unknown] | Unknown" (reportUnknownArgumentType)
+ Argument type is "Mapping[Unknown, object] | object | Unknown" (reportUnknownArgumentType)
- Argument type is "Mapping[Unknown, Unknown] | Unknown" (reportUnknownArgumentType)
+ Argument type is "Mapping[Unknown, object] | object | Unknown" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/scikit-learn/sklearn/feature_extraction/text.py:477:17 - error: Type of "indices" is partially unknown
- Type of "indices" is "set[Unknown]" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/scikit-learn/sklearn/feature_extraction/text.py:477:31 - error: Argument type is partially unknown
... (truncated 1687 lines) ...```
Diff from mypy_primer, showing the effect of this PR on open source code:
anyio (https://github.com/agronholm/anyio)
- /tmp/mypy_primer/projects/anyio/src/anyio/_core/_exceptions.py:86:13 - error: Type of "exc" is partially unknown
- Type of "exc" is "Unknown | BaseExceptionGroup[Unknown]" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/anyio/src/anyio/_core/_exceptions.py:86:20 - error: Type of "exceptions" is partially unknown
- Type of "exceptions" is "tuple[Unknown | BaseExceptionGroup[Unknown], ...]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/anyio/src/anyio/_core/_exceptions.py:87:43 - error: Argument type is partially unknown
- Argument corresponds to parameter "exception" in function "iterate_exceptions"
- Argument type is "Unknown | BaseExceptionGroup[Unknown]" (reportUnknownArgumentType)
- 1704 errors, 0 warnings, 0 notes
+ 1701 errors, 0 warnings, 0 notes
graphql-core (https://github.com/graphql-python/graphql-core)
+ /tmp/mypy_primer/projects/graphql-core/src/graphql/language/visitor.py:237:13 - error: Type of "idx" is Any (reportAny)
+ /tmp/mypy_primer/projects/graphql-core/src/graphql/language/visitor.py:237:19 - error: Type of "idx" is Any (reportAny)
+ /tmp/mypy_primer/projects/graphql-core/src/graphql/language/visitor.py:238:20 - error: Type of "keys" is Any (reportAny)
+ /tmp/mypy_primer/projects/graphql-core/src/graphql/language/visitor.py:239:21 - error: Type of "edits" is Any (reportAny)
+ /tmp/mypy_primer/projects/graphql-core/src/graphql/language/visitor.py:240:13 - error: Type of "in_array" is Any (reportAny)
+ /tmp/mypy_primer/projects/graphql-core/src/graphql/language/visitor.py:240:24 - error: Type of "in_array" is Any (reportAny)
+ /tmp/mypy_primer/projects/graphql-core/src/graphql/language/visitor.py:241:21 - error: Type of "prev" is Any (reportAny)
- /tmp/mypy_primer/projects/graphql-core/src/graphql/language/visitor.py:273:21 - error: Result of call expression is of type "Unknown | None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
- /tmp/mypy_primer/projects/graphql-core/src/graphql/language/visitor.py:284:13 - error: Result of call expression is of type "Unknown | None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
- /tmp/mypy_primer/projects/graphql-core/src/graphql/language/visitor.py:290:13 - error: Type of "stack" is Any (reportAny)
+ /tmp/mypy_primer/projects/graphql-core/src/graphql/language/visitor.py:303:16 - error: Return type is Any (reportAny)
- 1860 errors, 0 warnings, 0 notes
+ 1865 errors, 0 warnings, 0 notes
mypy (https://github.com/python/mypy)
- /tmp/mypy_primer/projects/mypy/mypy/server/objgraph.py:55:16 - error: Type of "e" is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/mypy/mypy/server/objgraph.py:55:31 - error: Argument type is partially unknown
- Argument corresponds to parameter "iterable" in function "__new__"
- Argument type is "Iterable[Unknown]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/mypy/mypyc/analysis/ircheck.py:303:14 - error: Unnecessary isinstance call; "FrozenSet[object]" is always an instance of "frozenset[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/mypy/mypyc/analysis/ircheck.py:303:14 - error: Unnecessary isinstance call; "FrozenSet[object]" is always an instance of "frozenset[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/mypy/mypyc/codegen/literals.py:66:14 - error: Unnecessary isinstance call; "FrozenSet[object]" is always an instance of "frozenset[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/mypy/mypyc/codegen/literals.py:66:14 - error: Unnecessary isinstance call; "FrozenSet[object]" is always an instance of "frozenset[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/mypy/mypyc/codegen/literals.py:105:12 - error: Unnecessary isinstance call; "FrozenSet[object]" is always an instance of "frozenset[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/mypy/mypyc/codegen/literals.py:105:12 - error: Unnecessary isinstance call; "FrozenSet[object]" is always an instance of "frozenset[object]" (reportUnnecessaryIsInstance)
- 16229 errors, 0 warnings, 0 notes
+ 16227 errors, 0 warnings, 0 notes
sympy (https://github.com/sympy/sympy)
- /tmp/mypy_primer/projects/sympy/sympy/core/basic.py:351:24 - error: Argument type is unknown
- Argument corresponds to parameter "args" in function "__new__" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/sympy/sympy/physics/mechanics/linearize.py:312:17 - error: Type of "op" is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/sympy/sympy/physics/mechanics/linearize.py:313:38 - error: Argument type is unknown
- Argument corresponds to parameter "m" in function "update" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/sympy/sympy/physics/mechanics/linearize.py:313:17 - error: No overloads for "update" match the provided arguments (reportCallIssue)
+ /tmp/mypy_primer/projects/sympy/sympy/physics/mechanics/linearize.py:313:38 - error: Argument of type "object" cannot be assigned to parameter "m" of type "Iterable[tuple[Unknown, Unknown]]" in function "update"
+ "object" is incompatible with protocol "Iterable[tuple[Unknown, Unknown]]"
+ "__iter__" is not present (reportArgumentType)
- /tmp/mypy_primer/projects/sympy/sympy/physics/quantum/operatorset.py:147:5 - error: Return type, "set[type[J2Op] | type[JxOp] | type[JyOp] | type[JzOp] | type[XOp] | type[YOp] | type[ZOp]] | Unknown | set[Unknown] | type[Operator] | type[PxOp] | type[XOp] | None", is partially unknown (reportUnknownParameterType)
+ /tmp/mypy_primer/projects/sympy/sympy/physics/quantum/operatorset.py:147:5 - error: Return type, "set[object] | Unknown | set[Unknown] | type[Operator] | type[PxOp] | type[XOp] | None", is partially unknown (reportUnknownParameterType)
- /tmp/mypy_primer/projects/sympy/sympy/physics/quantum/operatorset.py:232:12 - error: Return type, "set[type[J2Op] | type[JxOp] | type[JyOp] | type[JzOp] | type[XOp] | type[YOp] | type[ZOp]] | Unknown | set[Unknown] | type[Operator] | type[PxOp] | type[XOp] | None", is partially unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/sympy/sympy/physics/quantum/operatorset.py:232:12 - error: Return type, "set[object] | Unknown | set[Unknown] | type[Operator] | type[PxOp] | type[XOp] | None", is partially unknown (reportUnknownVariableType)
- Type of "state_to_operators" is "(state: Unknown, **options: Unknown) -> (set[type[J2Op] | type[JxOp] | type[JyOp] | type[JzOp] | type[XOp] | type[YOp] | type[ZOp]] | Unknown | set[Unknown] | type[Operator] | type[PxOp] | type[XOp] | None)" (reportUnknownVariableType)
+ Type of "state_to_operators" is "(state: Unknown, **options: Unknown) -> (set[object] | Unknown | set[Unknown] | type[Operator] | type[PxOp] | type[XOp] | None)" (reportUnknownVariableType)
- Type of "basis_op" is "set[type[J2Op] | type[JxOp] | type[JyOp] | type[JzOp] | type[XOp] | type[YOp] | type[ZOp]] | Unknown | set[Unknown] | type[Operator] | type[PxOp] | type[XOp] | None" (reportUnknownVariableType)
+ Type of "basis_op" is "set[object] | Unknown | set[Unknown] | type[Operator] | type[PxOp] | type[XOp] | None" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/sympy/sympy/physics/quantum/represent.py:419:30 - error: Cannot access attribute "hilbert_space" for class "set[type[J2Op] | type[JxOp] | type[JyOp] | type[JzOp] | type[XOp] | type[YOp] | type[ZOp]]"
+ /tmp/mypy_primer/projects/sympy/sympy/physics/quantum/represent.py:419:30 - error: Cannot access attribute "hilbert_space" for class "set[object]"
- /tmp/mypy_primer/projects/sympy/sympy/physics/quantum/represent.py:420:28 - error: Cannot access attribute "hilbert_space" for class "set[type[J2Op] | type[JxOp] | type[JyOp] | type[JzOp] | type[XOp] | type[YOp] | type[ZOp]]"
+ /tmp/mypy_primer/projects/sympy/sympy/physics/quantum/represent.py:420:28 - error: Cannot access attribute "hilbert_space" for class "set[object]"
- /tmp/mypy_primer/projects/sympy/sympy/physics/quantum/state.py:101:9 - error: Return type, "set[type[J2Op] | type[JxOp] | type[JyOp] | type[JzOp] | type[XOp] | type[YOp] | type[ZOp]] | Unknown | set[Unknown] | type[Operator] | type[PxOp] | type[XOp] | None", is partially unknown (reportUnknownParameterType)
+ /tmp/mypy_primer/projects/sympy/sympy/physics/quantum/state.py:101:9 - error: Return type, "set[object] | Unknown | set[Unknown] | type[Operator] | type[PxOp] | type[XOp] | None", is partially unknown (reportUnknownParameterType)
- Type of "state_to_operators" is "(state: Unknown, **options: Unknown) -> (set[type[J2Op] | type[JxOp] | type[JyOp] | type[JzOp] | type[XOp] | type[YOp] | type[ZOp]] | Unknown | set[Unknown] | type[Operator] | type[PxOp] | type[XOp] | None)" (reportUnknownVariableType)
+ Type of "state_to_operators" is "(state: Unknown, **options: Unknown) -> (set[object] | Unknown | set[Unknown] | type[Operator] | type[PxOp] | type[XOp] | None)" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/sympy/sympy/physics/quantum/state.py:104:16 - error: Return type, "set[type[J2Op] | type[JxOp] | type[JyOp] | type[JzOp] | type[XOp] | type[YOp] | type[ZOp]] | Unknown | set[Unknown] | type[Operator] | type[PxOp] | type[XOp] | None", is partially unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/sympy/sympy/physics/quantum/state.py:104:16 - error: Return type, "set[object] | Unknown | set[Unknown] | type[Operator] | type[PxOp] | type[XOp] | None", is partially unknown (reportUnknownVariableType)
- Type of "operators" is "set[type[J2Op] | type[JxOp] | type[JyOp] | type[JzOp] | type[XOp] | type[YOp] | type[ZOp]] | Unknown | set[Unknown] | type[Operator] | type[PxOp] | type[XOp] | None" (reportUnknownMemberType)
+ Type of "operators" is "set[object] | Unknown | set[Unknown] | type[Operator] | type[PxOp] | type[XOp] | None" (reportUnknownMemberType)
- Type of "state_to_operators" is "(state: Unknown, **options: Unknown) -> (set[type[J2Op] | type[JxOp] | type[JyOp] | type[JzOp] | type[XOp] | type[YOp] | type[ZOp]] | Unknown | set[Unknown] | type[Operator] | type[PxOp] | type[XOp] | None)" (reportUnknownVariableType)
+ Type of "state_to_operators" is "(state: Unknown, **options: Unknown) -> (set[object] | Unknown | set[Unknown] | type[Operator] | type[PxOp] | type[XOp] | None)" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/sympy/sympy/physics/quantum/tests/test_operatorset.py:68:41 - error: Return type of lambda, "set[type[J2Op] | type[JxOp] | type[JyOp] | type[JzOp] | type[XOp] | type[YOp] | type[ZOp]] | Unknown | set[Unknown] | type[Operator] | type[PxOp] | type[XOp] | None", is partially unknown (reportUnknownLambdaType)
+ /tmp/mypy_primer/projects/sympy/sympy/physics/quantum/tests/test_operatorset.py:68:41 - error: Return type of lambda, "set[object] | Unknown | set[Unknown] | type[Operator] | type[PxOp] | type[XOp] | None", is partially unknown (reportUnknownLambdaType)
- /tmp/mypy_primer/projects/sympy/sympy/solvers/solveset.py:3128:9 - error: Type of "symbols" is partially unknown
- Type of "symbols" is "list[Unknown]" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/sympy/sympy/solvers/solveset.py:3128:25 - error: Argument of type "Unknown | tuple[Unknown, ...] | GeneratorType[Unknown, Unknown, Unknown]" cannot be assigned to parameter "i" of type "SupportsNext[_T@next]" in function "next"
+ /tmp/mypy_primer/projects/sympy/sympy/solvers/solveset.py:3128:25 - error: Argument of type "Unknown | tuple[Unknown, ...] | GeneratorType[object, Never, object]" cannot be assigned to parameter "i" of type "SupportsNext[_T@next]" in function "next"
- Type "Unknown | tuple[Unknown, ...] | GeneratorType[Unknown, Unknown, Unknown]" is not assignable to type "SupportsNext[Unknown]"
+ Type "Unknown | tuple[Unknown, ...] | GeneratorType[object, Never, object]" is not assignable to type "SupportsNext[object]"
- "tuple[Unknown, ...]" is incompatible with protocol "SupportsNext[Unknown]"
+ "tuple[Unknown, ...]" is incompatible with protocol "SupportsNext[object]"
- /tmp/mypy_primer/projects/sympy/sympy/solvers/solveset.py:3129:9 - error: Type of "symset" is partially unknown
- Type of "symset" is "set[Unknown]" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/sympy/sympy/solvers/solveset.py:3129:22 - error: Argument type is partially unknown
- Argument corresponds to parameter "iterable" in function "__init__"
- Argument type is "list[Unknown]" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/sympy/sympy/solvers/solveset.py:3136:30 - error: Cannot access attribute "name" for class "object"
+ Attribute "name" is unknown (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/sympy/sympy/solvers/solveset.py:3137:18 - error: Argument type is partially unknown
- Argument corresponds to parameter "obj" in function "len"
- Argument type is "set[Unknown]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/sympy/sympy/solvers/solveset.py:3137:33 - error: Argument type is partially unknown
- Argument corresponds to parameter "obj" in function "len"
- Argument type is "list[Unknown]" (reportUnknownArgumentType)
- Argument type is "list[Dummy] | list[Unknown] | Unknown | tuple[Unknown, ...]" (reportUnknownArgumentType)
+ Argument type is "list[Dummy] | list[object] | Unknown | tuple[Unknown, ...]" (reportUnknownArgumentType)
- Type of "sym" is "Dummy | Unknown" (reportUnknownVariableType)
+ Type of "sym" is "Dummy | object | Unknown" (reportUnknownVariableType)
- Type of "rep" is "dict[Dummy | Unknown, Symbol]" (reportUnknownVariableType)
+ Type of "rep" is "dict[Dummy | object | Unknown, Symbol]" (reportUnknownVariableType)
- Type of "sym" is "Dummy | Unknown" (reportUnknownVariableType)
+ Type of "sym" is "Dummy | object | Unknown" (reportUnknownVariableType)
- Type of "sqrtdenest" is "(expr: Unknown, max_iter: int = 3) -> Unknown" (reportUnknownVariableType)
... (truncated 122 lines) ...
websockets (https://github.com/aaugustin/websockets)
- /tmp/mypy_primer/projects/websockets/src/websockets/headers.py:470:12 - error: Unnecessary isinstance call; "Sequence[Subprotocol]" is always an instance of "Sequence[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/websockets/src/websockets/headers.py:470:12 - error: Unnecessary isinstance call; "Sequence[Subprotocol]" is always an instance of "Sequence[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/websockets/src/websockets/asyncio/connection.py:492:14 - error: Unnecessary isinstance call; "AsyncIterable[Data]" is always an instance of "AsyncIterable[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/websockets/src/websockets/asyncio/connection.py:492:14 - error: Unnecessary isinstance call; "AsyncIterable[Data]" is always an instance of "AsyncIterable[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/websockets/src/websockets/asyncio/server.py:901:14 - error: Unnecessary isinstance call; "tuple[str, str] | Iterable[tuple[str, str]]" is always an instance of "Iterable[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/websockets/src/websockets/asyncio/server.py:901:14 - error: Unnecessary isinstance call; "tuple[str, str] | Iterable[tuple[str, str]]" is always an instance of "Iterable[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/websockets/src/websockets/asyncio/server.py:951:12 - error: Unnecessary isinstance call; "bool" is never an instance of "Awaitable[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/websockets/src/websockets/asyncio/server.py:951:12 - error: Unnecessary isinstance call; "bool" is never an instance of "Awaitable[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/websockets/src/websockets/legacy/auth.py:162:14 - error: Unnecessary isinstance call; "Credentials | Iterable[Credentials]" is always an instance of "Iterable[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/websockets/src/websockets/legacy/auth.py:162:14 - error: Unnecessary isinstance call; "Credentials | Iterable[Credentials]" is always an instance of "Iterable[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/websockets/src/websockets/legacy/protocol.py:678:14 - error: Unnecessary isinstance call; "AsyncIterable[Data]" is always an instance of "AsyncIterable[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/websockets/src/websockets/legacy/protocol.py:678:14 - error: Unnecessary isinstance call; "AsyncIterable[Data]" is always an instance of "AsyncIterable[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/websockets/src/websockets/legacy/server.py:361:16 - error: Unnecessary isinstance call; "Awaitable[HTTPResponse | None]" is always an instance of "Awaitable[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/websockets/src/websockets/legacy/server.py:361:16 - error: Unnecessary isinstance call; "Awaitable[HTTPResponse | None]" is always an instance of "Awaitable[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/websockets/src/websockets/legacy/server.py:586:12 - error: Unnecessary isinstance call; "Coroutine[Any, Any, HTTPResponse | None]" is always an instance of "Awaitable[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/websockets/src/websockets/legacy/server.py:586:12 - error: Unnecessary isinstance call; "Coroutine[Any, Any, HTTPResponse | None]" is always an instance of "Awaitable[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/websockets/src/websockets/sync/connection.py:321:14 - error: Unnecessary isinstance call; "Iterable[Data]" is always an instance of "Iterable[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/websockets/src/websockets/sync/connection.py:321:14 - error: Unnecessary isinstance call; "Iterable[Data]" is always an instance of "Iterable[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/websockets/src/websockets/sync/server.py:668:14 - error: Unnecessary isinstance call; "tuple[str, str] | Iterable[tuple[str, str]]" is always an instance of "Iterable[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/websockets/src/websockets/sync/server.py:668:14 - error: Unnecessary isinstance call; "tuple[str, str] | Iterable[tuple[str, str]]" is always an instance of "Iterable[object]" (reportUnnecessaryIsInstance)
scikit-learn (https://github.com/scikit-learn/scikit-learn)
- /tmp/mypy_primer/projects/scikit-learn/sklearn/datasets/_arff_parser.py:254:47 - error: Argument type is partially unknown
- Argument corresponds to parameter "iterable" in function "from_iterable"
- Argument type is "Generator[List[Unknown], Unknown, Unknown]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/scikit-learn/sklearn/datasets/_samples_generator.py:1078:29 - error: Argument type is partially unknown
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/datasets/_samples_generator.py:1078:25 - error: No overloads for "sum" match the provided arguments (reportCallIssue)
- Argument corresponds to parameter "iterable" in function "sum"
- Argument type is "<subclass of <subclass of int and Integral> and Iterable> | <subclass of int and Iterable> | list[int] | Unknown" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/datasets/_samples_generator.py:1078:29 - error: Argument of type "<subclass of <subclass of int and Integral> and Iterable[object]> | <subclass of int and Iterable[object]> | list[int] | Unknown" cannot be assigned to parameter "iterable" of type "Iterable[_SupportsSumNoDefaultT@sum]" in function "sum"
+ Type "<subclass of <subclass of int and Integral> and Iterable[object]> | <subclass of int and Iterable[object]> | list[int] | Unknown" is not assignable to type "Iterable[_SupportsSumNoDefaultT@sum]"
+ "<subclass of <subclass of int and Integral> and Iterable[object]>" is not assignable to "Iterable[_SupportsSumNoDefaultT@sum]"
+ Type parameter "_T_co@Iterable" is covariant, but "object" is not a subtype of "_SupportsSumNoDefaultT@sum"
+ Type "object" is not assignable to type "_SupportsSumWithNoDefaultGiven"
+ "object" is incompatible with protocol "_SupportsSumWithNoDefaultGiven" (reportArgumentType)
- /tmp/mypy_primer/projects/scikit-learn/sklearn/datasets/_samples_generator.py:1079:29 - error: Argument type is partially unknown
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/datasets/_samples_generator.py:1079:25 - error: No overloads for "sum" match the provided arguments (reportCallIssue)
- Argument corresponds to parameter "iterable" in function "sum"
- Argument type is "<subclass of <subclass of int and Integral> and Iterable> | <subclass of int and Iterable> | list[int] | Unknown" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/datasets/_samples_generator.py:1079:29 - error: Argument of type "<subclass of <subclass of int and Integral> and Iterable[object]> | <subclass of int and Iterable[object]> | list[int] | Unknown" cannot be assigned to parameter "iterable" of type "Iterable[_SupportsSumNoDefaultT@sum]" in function "sum"
+ Type "<subclass of <subclass of int and Integral> and Iterable[object]> | <subclass of int and Iterable[object]> | list[int] | Unknown" is not assignable to type "Iterable[_SupportsSumNoDefaultT@sum]"
+ "<subclass of <subclass of int and Integral> and Iterable[object]>" is not assignable to "Iterable[_SupportsSumNoDefaultT@sum]"
+ Type parameter "_T_co@Iterable" is covariant, but "object" is not a subtype of "_SupportsSumNoDefaultT@sum"
+ Type "object" is not assignable to type "_SupportsSumWithNoDefaultGiven"
+ "object" is incompatible with protocol "_SupportsSumWithNoDefaultGiven" (reportArgumentType)
- Argument type is "<subclass of <subclass of int and Integral> and Iterable> | <subclass of int and Iterable> | list[int] | Unknown" (reportUnknownArgumentType)
+ Argument type is "<subclass of <subclass of int and Integral> and Iterable[object]> | <subclass of int and Iterable[object]> | list[int] | Unknown" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/scikit-learn/sklearn/feature_extraction/text.py:477:17 - error: Type of "indices" is partially unknown
- Type of "indices" is "set[Unknown]" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/scikit-learn/sklearn/feature_extraction/text.py:477:31 - error: Argument type is partially unknown
- Argument corresponds to parameter "iterable" in function "__init__"
- Argument type is "ValuesView[Unknown]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/scikit-learn/sklearn/feature_extraction/text.py:478:24 - error: Argument type is partially unknown
- Argument corresponds to parameter "obj" in function "len"
- Argument type is "set[Unknown]" (reportUnknownArgumentType)
- Argument type is "Mapping[Unknown, Unknown]" (reportUnknownArgumentType)
+ Argument type is "Mapping[Unknown, object]" (reportUnknownArgumentType)
- Argument type is "Mapping[Unknown, Unknown]" (reportUnknownArgumentType)
+ Argument type is "Mapping[Unknown, object]" (reportUnknownArgumentType)
- Argument type is "Mapping[Unknown, Unknown]" (reportUnknownArgumentType)
+ Argument type is "Mapping[Unknown, object]" (reportUnknownArgumentType)
- Type of "vocabulary_" is "dict[Unknown, Unknown]" (reportUnknownMemberType)
+ Type of "vocabulary_" is "dict[Unknown, object]" (reportUnknownMemberType)
- Argument type is "Mapping[Unknown, Unknown] | dict[Unknown, Unknown]" (reportUnknownArgumentType)
+ Argument type is "Mapping[Unknown, object] | dict[Unknown, Unknown]" (reportUnknownArgumentType)
- Type of "vocabulary_" is "dict[Unknown, Unknown]" (reportUnknownMemberType)
+ Type of "vocabulary_" is "dict[Unknown, object]" (reportUnknownMemberType)
- Argument type is "dict[Unknown, Unknown]" (reportUnknownArgumentType)
+ Argument type is "dict[Unknown, object]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/scikit-learn/sklearn/metrics/tests/test_pairwise.py:589:21 - error: Argument type is partially unknown
- Argument corresponds to parameter "iterable" in function "__init__"
- Argument type is "GeneratorType[Unknown, Any, None]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/scikit-learn/sklearn/metrics/tests/test_pairwise.py:605:21 - error: Argument type is partially unknown
- Argument corresponds to parameter "iterable" in function "__init__"
- Argument type is "GeneratorType[Unknown, Any, None]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/scikit-learn/sklearn/metrics/tests/test_pairwise.py:683:32 - error: Argument type is partially unknown
- Argument corresponds to parameter "iterable" in function "__init__"
- Argument type is "GeneratorType[Unknown, Any, None]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/scikit-learn/sklearn/metrics/tests/test_pairwise.py:745:17 - error: Argument type is partially unknown
- Argument corresponds to parameter "i" in function "next"
- Argument type is "GeneratorType[Unknown, Any, None]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/scikit-learn/sklearn/metrics/tests/test_pairwise.py:747:14 - error: Argument type is partially unknown
- Argument corresponds to parameter "i" in function "next"
- Argument type is "GeneratorType[Unknown, Any, None]" (reportUnknownArgumentType)
- Type of "param_grid" is "list[Mapping[Unknown, Unknown]]" (reportUnknownVariableType)
+ Type of "param_grid" is "list[Mapping[Unknown, object] | Mapping[object, Unknown]]" (reportUnknownVariableType)
- Type of "grid" is "Mapping[Unknown, Unknown] | Unknown" (reportUnknownVariableType)
+ Type of "grid" is "Mapping[Unknown, object] | Mapping[object, Unknown] | object" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/scikit-learn/sklearn/model_selection/_search.py:119:17 - error: Type of "key" is unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/model_selection/_search.py:119:17 - error: Type of "key" is partially unknown
+ Type of "key" is "object | Unknown" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/scikit-learn/sklearn/model_selection/_search.py:119:22 - error: Type of "value" is unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/model_selection/_search.py:119:22 - error: Type of "value" is partially unknown
+ Type of "value" is "Unknown | object" (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/model_selection/_search.py:120:60 - error: Cannot access attribute "ndim" for class "object"
+ Attribute "ndim" is unknown (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/model_selection/_search.py:123:56 - error: Cannot access attribute "shape" for class "object"
+ Attribute "shape" is unknown (reportAttributeAccessIssue)
- Argument type is "str | Unknown" (reportUnknownArgumentType)
+ Argument type is "str | Unknown | object" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/scikit-learn/sklearn/model_selection/_search.py:134:24 - error: Argument type is unknown
- Argument corresponds to parameter "obj" in function "len" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/model_selection/_search.py:134:24 - error: Argument of type "Unknown | object" cannot be assigned to parameter "obj" of type "Sized" in function "len"
+ Type "Unknown | object" is not assignable to type "Sized"
+ "object" is incompatible with protocol "Sized"
+ "__len__" is not present (reportArgumentType)
- Type of "param_grid" is "list[Mapping[Unknown, Unknown]] | Iterable[Unknown]" (reportUnknownMemberType)
+ Type of "param_grid" is "list[Mapping[Unknown, object] | Mapping[object, Unknown]] | Iterable[object]" (reportUnknownMemberType)
- Type of "p" is "Mapping[Unknown, Unknown] | Unknown" (reportUnknownVariableType)
+ Type of "p" is "Mapping[Unknown, object] | Mapping[object, Unknown] | object" (reportUnknownVariableType)
- Type of "param_grid" is "list[Mapping[Unknown, Unknown]] | Iterable[Unknown]" (reportUnknownMemberType)
... (truncated 101 lines) ...
bidict (https://github.com/jab/bidict)
- Argument type is "Mapping[Unknown, Unknown]" (reportUnknownArgumentType)
+ Argument type is "Mapping[Unknown, object]" (reportUnknownArgumentType)
- Argument type is "zip[tuple[tuple[KT@BidictBase, VT@BidictBase], tuple[Unknown, Unknown]]]" (reportUnknownArgumentType)
+ Argument type is "zip[tuple[tuple[KT@BidictBase, VT@BidictBase], tuple[Unknown, object]]]" (reportUnknownArgumentType)
- Argument type is "ItemsView[Unknown, Unknown]" (reportUnknownArgumentType)
+ Argument type is "ItemsView[Unknown, object]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/bidict/bidict/_base.py:423:16 - error: Unnecessary isinstance call; "MapOrItems[KT@BidictBase, VT@BidictBase]" is always an instance of "Iterable[Unknown] | Maplike[Unknown, Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/bidict/bidict/_base.py:423:16 - error: Unnecessary isinstance call; "MapOrItems[KT@BidictBase, VT@BidictBase]" is always an instance of "Iterable[object] | Maplike[Unknown, object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/bidict/bidict/_base.py:500:16 - error: Unnecessary isinstance call; "Mapping[KT@BidictBase, VT@BidictBase]" is always an instance of "Mapping[Unknown, Unknown]" (reportUnnecessaryIsInstance)
... (truncated 959 lines) ...```
Diff from mypy_primer, showing the effect of this PR on open source code:
anyio (https://github.com/agronholm/anyio)
- /tmp/mypy_primer/projects/anyio/src/anyio/_core/_exceptions.py:86:13 - error: Type of "exc" is partially unknown
- Type of "exc" is "Unknown | BaseExceptionGroup[Unknown]" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/anyio/src/anyio/_core/_exceptions.py:86:20 - error: Type of "exceptions" is partially unknown
- Type of "exceptions" is "tuple[Unknown | BaseExceptionGroup[Unknown], ...]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/anyio/src/anyio/_core/_exceptions.py:87:43 - error: Argument type is partially unknown
- Argument corresponds to parameter "exception" in function "iterate_exceptions"
- Argument type is "Unknown | BaseExceptionGroup[Unknown]" (reportUnknownArgumentType)
- 1704 errors, 0 warnings, 0 notes
+ 1701 errors, 0 warnings, 0 notes
graphql-core (https://github.com/graphql-python/graphql-core)
+ /tmp/mypy_primer/projects/graphql-core/src/graphql/language/visitor.py:237:13 - error: Type of "idx" is Any (reportAny)
+ /tmp/mypy_primer/projects/graphql-core/src/graphql/language/visitor.py:237:19 - error: Type of "idx" is Any (reportAny)
+ /tmp/mypy_primer/projects/graphql-core/src/graphql/language/visitor.py:238:20 - error: Type of "keys" is Any (reportAny)
+ /tmp/mypy_primer/projects/graphql-core/src/graphql/language/visitor.py:239:21 - error: Type of "edits" is Any (reportAny)
+ /tmp/mypy_primer/projects/graphql-core/src/graphql/language/visitor.py:240:13 - error: Type of "in_array" is Any (reportAny)
+ /tmp/mypy_primer/projects/graphql-core/src/graphql/language/visitor.py:240:24 - error: Type of "in_array" is Any (reportAny)
+ /tmp/mypy_primer/projects/graphql-core/src/graphql/language/visitor.py:241:21 - error: Type of "prev" is Any (reportAny)
- /tmp/mypy_primer/projects/graphql-core/src/graphql/language/visitor.py:273:21 - error: Result of call expression is of type "Unknown | None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
- /tmp/mypy_primer/projects/graphql-core/src/graphql/language/visitor.py:284:13 - error: Result of call expression is of type "Unknown | None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
- /tmp/mypy_primer/projects/graphql-core/src/graphql/language/visitor.py:290:13 - error: Type of "stack" is Any (reportAny)
+ /tmp/mypy_primer/projects/graphql-core/src/graphql/language/visitor.py:303:16 - error: Return type is Any (reportAny)
- 1860 errors, 0 warnings, 0 notes
+ 1865 errors, 0 warnings, 0 notes
mypy (https://github.com/python/mypy)
- /tmp/mypy_primer/projects/mypy/mypy/server/objgraph.py:55:16 - error: Type of "e" is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/mypy/mypy/server/objgraph.py:55:31 - error: Argument type is partially unknown
- Argument corresponds to parameter "iterable" in function "__new__"
- Argument type is "Iterable[Unknown]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/mypy/mypyc/analysis/ircheck.py:303:14 - error: Unnecessary isinstance call; "FrozenSet[object]" is always an instance of "frozenset[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/mypy/mypyc/analysis/ircheck.py:303:14 - error: Unnecessary isinstance call; "FrozenSet[object]" is always an instance of "frozenset[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/mypy/mypyc/codegen/literals.py:66:14 - error: Unnecessary isinstance call; "FrozenSet[object]" is always an instance of "frozenset[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/mypy/mypyc/codegen/literals.py:66:14 - error: Unnecessary isinstance call; "FrozenSet[object]" is always an instance of "frozenset[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/mypy/mypyc/codegen/literals.py:105:12 - error: Unnecessary isinstance call; "FrozenSet[object]" is always an instance of "frozenset[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/mypy/mypyc/codegen/literals.py:105:12 - error: Unnecessary isinstance call; "FrozenSet[object]" is always an instance of "frozenset[object]" (reportUnnecessaryIsInstance)
- 16227 errors, 0 warnings, 0 notes
+ 16225 errors, 0 warnings, 0 notes
sympy (https://github.com/sympy/sympy)
- /tmp/mypy_primer/projects/sympy/sympy/core/basic.py:351:24 - error: Argument type is unknown
- Argument corresponds to parameter "args" in function "__new__" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/sympy/sympy/tensor/array/arrayop.py:490:9 - error: Type of "_iter" is partially unknown
- Type of "_iter" is "ImmutableDenseNDimArray | Iterable[Unknown] | MatrixBase" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/sympy/sympy/tensor/array/arrayop.py:499:16 - error: Type of "_iter" is partially unknown
- Type of "_iter" is "ImmutableDenseNDimArray | Iterable[Unknown] | MatrixBase" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/sympy/sympy/tensor/array/arrayop.py:499:16 - error: Argument of type "ImmutableDenseNDimArray | Iterable[Unknown] | MatrixBase" cannot be assigned to parameter "obj" of type "Sized" in function "len"
+ /tmp/mypy_primer/projects/sympy/sympy/tensor/array/arrayop.py:499:16 - error: Argument of type "ImmutableDenseNDimArray | Iterable[object] | MatrixBase" cannot be assigned to parameter "obj" of type "Sized" in function "len"
- Type "ImmutableDenseNDimArray | Iterable[Unknown] | MatrixBase" is not assignable to type "Sized"
+ Type "ImmutableDenseNDimArray | Iterable[object] | MatrixBase" is not assignable to type "Sized"
- "Iterable[Unknown]" is incompatible with protocol "Sized"
+ "Iterable[object]" is incompatible with protocol "Sized"
- /tmp/mypy_primer/projects/sympy/sympy/tensor/array/arrayop.py:500:27 - error: Type of "_iter" is partially unknown
- Type of "_iter" is "ImmutableDenseNDimArray | Iterable[Unknown] | MatrixBase" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/sympy/sympy/tensor/array/arrayop.py:503:29 - error: Type of "_iter" is partially unknown
- Type of "_iter" is "Iterable[Unknown] | MatrixBase" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/sympy/sympy/tensor/array/arrayop.py:509:29 - error: Type of "_iter" is partially unknown
- Type of "_iter" is "Iterable[Unknown] | MatrixBase" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/sympy/sympy/tensor/array/arrayop.py:512:26 - error: Type of "_iter" is partially unknown
- Type of "_iter" is "Iterable[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/sympy/sympy/tensor/array/arrayop.py:512:26 - error: Argument type is partially unknown
- Argument corresponds to parameter "obj" in function "hasattr"
- Argument type is "Iterable[Unknown]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/sympy/sympy/tensor/array/arrayop.py:513:31 - error: Type of "_iter" is partially unknown
- Type of "_iter" is "Iterable[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/sympy/sympy/tensor/array/arrayop.py:513:31 - error: Argument of type "Iterable[Unknown]" cannot be assigned to parameter "i" of type "SupportsNext[_T@next]" in function "next"
+ /tmp/mypy_primer/projects/sympy/sympy/tensor/array/arrayop.py:513:31 - error: Argument of type "Iterable[object]" cannot be assigned to parameter "i" of type "SupportsNext[_T@next]" in function "next"
- "Iterable[Unknown]" is incompatible with protocol "SupportsNext[_T@next]"
+ "Iterable[object]" is incompatible with protocol "SupportsNext[_T@next]"
- /tmp/mypy_primer/projects/sympy/sympy/tensor/array/arrayop.py:516:26 - error: Type of "_iter" is partially unknown
- Type of "_iter" is "Iterable[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/sympy/sympy/tensor/array/arrayop.py:516:26 - error: "__getitem__" method not defined on type "Iterable[Unknown]" (reportIndexIssue)
+ /tmp/mypy_primer/projects/sympy/sympy/tensor/array/arrayop.py:516:26 - error: "__getitem__" method not defined on type "Iterable[object]" (reportIndexIssue)
- /tmp/mypy_primer/projects/sympy/sympy/tensor/array/arrayop.py:528:59 - error: Type of "_iter" is partially unknown
- Type of "_iter" is "ImmutableDenseNDimArray | Iterable[Unknown] | MatrixBase" (reportUnknownMemberType)
- 597255 errors, 0 warnings, 0 notes
+ 597244 errors, 0 warnings, 0 notes
websockets (https://github.com/aaugustin/websockets)
- /tmp/mypy_primer/projects/websockets/src/websockets/headers.py:470:12 - error: Unnecessary isinstance call; "Sequence[Subprotocol]" is always an instance of "Sequence[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/websockets/src/websockets/headers.py:470:12 - error: Unnecessary isinstance call; "Sequence[Subprotocol]" is always an instance of "Sequence[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/websockets/src/websockets/asyncio/connection.py:492:14 - error: Unnecessary isinstance call; "AsyncIterable[Data]" is always an instance of "AsyncIterable[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/websockets/src/websockets/asyncio/connection.py:492:14 - error: Unnecessary isinstance call; "AsyncIterable[Data]" is always an instance of "AsyncIterable[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/websockets/src/websockets/asyncio/server.py:901:14 - error: Unnecessary isinstance call; "tuple[str, str] | Iterable[tuple[str, str]]" is always an instance of "Iterable[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/websockets/src/websockets/asyncio/server.py:901:14 - error: Unnecessary isinstance call; "tuple[str, str] | Iterable[tuple[str, str]]" is always an instance of "Iterable[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/websockets/src/websockets/asyncio/server.py:951:12 - error: Unnecessary isinstance call; "bool" is never an instance of "Awaitable[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/websockets/src/websockets/asyncio/server.py:951:12 - error: Unnecessary isinstance call; "bool" is never an instance of "Awaitable[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/websockets/src/websockets/legacy/auth.py:162:14 - error: Unnecessary isinstance call; "Credentials | Iterable[Credentials]" is always an instance of "Iterable[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/websockets/src/websockets/legacy/auth.py:162:14 - error: Unnecessary isinstance call; "Credentials | Iterable[Credentials]" is always an instance of "Iterable[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/websockets/src/websockets/legacy/protocol.py:678:14 - error: Unnecessary isinstance call; "AsyncIterable[Data]" is always an instance of "AsyncIterable[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/websockets/src/websockets/legacy/protocol.py:678:14 - error: Unnecessary isinstance call; "AsyncIterable[Data]" is always an instance of "AsyncIterable[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/websockets/src/websockets/legacy/server.py:361:16 - error: Unnecessary isinstance call; "Awaitable[HTTPResponse | None]" is always an instance of "Awaitable[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/websockets/src/websockets/legacy/server.py:361:16 - error: Unnecessary isinstance call; "Awaitable[HTTPResponse | None]" is always an instance of "Awaitable[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/websockets/src/websockets/legacy/server.py:586:12 - error: Unnecessary isinstance call; "Coroutine[Any, Any, HTTPResponse | None]" is always an instance of "Awaitable[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/websockets/src/websockets/legacy/server.py:586:12 - error: Unnecessary isinstance call; "Coroutine[Any, Any, HTTPResponse | None]" is always an instance of "Awaitable[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/websockets/src/websockets/sync/connection.py:321:14 - error: Unnecessary isinstance call; "Iterable[Data]" is always an instance of "Iterable[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/websockets/src/websockets/sync/connection.py:321:14 - error: Unnecessary isinstance call; "Iterable[Data]" is always an instance of "Iterable[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/websockets/src/websockets/sync/server.py:668:14 - error: Unnecessary isinstance call; "tuple[str, str] | Iterable[tuple[str, str]]" is always an instance of "Iterable[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/websockets/src/websockets/sync/server.py:668:14 - error: Unnecessary isinstance call; "tuple[str, str] | Iterable[tuple[str, str]]" is always an instance of "Iterable[object]" (reportUnnecessaryIsInstance)
scikit-learn (https://github.com/scikit-learn/scikit-learn)
- /tmp/mypy_primer/projects/scikit-learn/sklearn/datasets/_samples_generator.py:1078:29 - error: Argument type is partially unknown
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/datasets/_samples_generator.py:1078:25 - error: No overloads for "sum" match the provided arguments (reportCallIssue)
- Argument corresponds to parameter "iterable" in function "sum"
- Argument type is "<subclass of <subclass of int and Integral> and Iterable> | <subclass of int and Iterable> | list[int] | Unknown" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/datasets/_samples_generator.py:1078:29 - error: Argument of type "<subclass of <subclass of int and Integral> and Iterable[object]> | <subclass of int and Iterable[object]> | list[int] | Unknown" cannot be assigned to parameter "iterable" of type "Iterable[_SupportsSumNoDefaultT@sum]" in function "sum"
+ Type "<subclass of <subclass of int and Integral> and Iterable[object]> | <subclass of int and Iterable[object]> | list[int] | Unknown" is not assignable to type "Iterable[_SupportsSumNoDefaultT@sum]"
+ "<subclass of <subclass of int and Integral> and Iterable[object]>" is not assignable to "Iterable[_SupportsSumNoDefaultT@sum]"
+ Type parameter "_T_co@Iterable" is covariant, but "object" is not a subtype of "_SupportsSumNoDefaultT@sum"
+ Type "object" is not assignable to type "_SupportsSumWithNoDefaultGiven"
+ "object" is incompatible with protocol "_SupportsSumWithNoDefaultGiven" (reportArgumentType)
- /tmp/mypy_primer/projects/scikit-learn/sklearn/datasets/_samples_generator.py:1079:29 - error: Argument type is partially unknown
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/datasets/_samples_generator.py:1079:25 - error: No overloads for "sum" match the provided arguments (reportCallIssue)
- Argument corresponds to parameter "iterable" in function "sum"
- Argument type is "<subclass of <subclass of int and Integral> and Iterable> | <subclass of int and Iterable> | list[int] | Unknown" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/datasets/_samples_generator.py:1079:29 - error: Argument of type "<subclass of <subclass of int and Integral> and Iterable[object]> | <subclass of int and Iterable[object]> | list[int] | Unknown" cannot be assigned to parameter "iterable" of type "Iterable[_SupportsSumNoDefaultT@sum]" in function "sum"
+ Type "<subclass of <subclass of int and Integral> and Iterable[object]> | <subclass of int and Iterable[object]> | list[int] | Unknown" is not assignable to type "Iterable[_SupportsSumNoDefaultT@sum]"
+ "<subclass of <subclass of int and Integral> and Iterable[object]>" is not assignable to "Iterable[_SupportsSumNoDefaultT@sum]"
+ Type parameter "_T_co@Iterable" is covariant, but "object" is not a subtype of "_SupportsSumNoDefaultT@sum"
+ Type "object" is not assignable to type "_SupportsSumWithNoDefaultGiven"
+ "object" is incompatible with protocol "_SupportsSumWithNoDefaultGiven" (reportArgumentType)
- Argument type is "<subclass of <subclass of int and Integral> and Iterable> | <subclass of int and Iterable> | list[int] | Unknown" (reportUnknownArgumentType)
+ Argument type is "<subclass of <subclass of int and Integral> and Iterable[object]> | <subclass of int and Iterable[object]> | list[int] | Unknown" (reportUnknownArgumentType)
- Type of "param_grid" is "list[Mapping[Unknown, Unknown]]" (reportUnknownVariableType)
+ Type of "param_grid" is "list[Mapping[Unknown, object] | Mapping[object, Unknown]]" (reportUnknownVariableType)
- Type of "grid" is "Mapping[Unknown, Unknown] | Unknown" (reportUnknownVariableType)
+ Type of "grid" is "Mapping[Unknown, object] | Mapping[object, Unknown] | object" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/scikit-learn/sklearn/model_selection/_search.py:119:17 - error: Type of "key" is unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/model_selection/_search.py:119:17 - error: Type of "key" is partially unknown
+ Type of "key" is "object | Unknown" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/scikit-learn/sklearn/model_selection/_search.py:119:22 - error: Type of "value" is unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/model_selection/_search.py:119:22 - error: Type of "value" is partially unknown
+ Type of "value" is "Unknown | object" (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/model_selection/_search.py:120:60 - error: Cannot access attribute "ndim" for class "object"
+ Attribute "ndim" is unknown (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/model_selection/_search.py:123:56 - error: Cannot access attribute "shape" for class "object"
+ Attribute "shape" is unknown (reportAttributeAccessIssue)
- Argument type is "str | Unknown" (reportUnknownArgumentType)
+ Argument type is "str | Unknown | object" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/scikit-learn/sklearn/model_selection/_search.py:134:24 - error: Argument type is unknown
- Argument corresponds to parameter "obj" in function "len" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/model_selection/_search.py:134:24 - error: Argument of type "Unknown | object" cannot be assigned to parameter "obj" of type "Sized" in function "len"
+ Type "Unknown | object" is not assignable to type "Sized"
+ "object" is incompatible with protocol "Sized"
+ "__len__" is not present (reportArgumentType)
- Type of "param_grid" is "list[Mapping[Unknown, Unknown]] | Iterable[Unknown]" (reportUnknownMemberType)
+ Type of "param_grid" is "list[Mapping[Unknown, object] | Mapping[object, Unknown]] | Iterable[object]" (reportUnknownMemberType)
- Type of "p" is "Mapping[Unknown, Unknown] | Unknown" (reportUnknownVariableType)
+ Type of "p" is "Mapping[Unknown, object] | Mapping[object, Unknown] | object" (reportUnknownVariableType)
- Type of "param_grid" is "list[Mapping[Unknown, Unknown]] | Iterable[Unknown]" (reportUnknownMemberType)
+ Type of "param_grid" is "list[Mapping[Unknown, object] | Mapping[object, Unknown]] | Iterable[object]" (reportUnknownMemberType)
- Type of "items" is "list[tuple[Unknown, Unknown]]" (reportUnknownVariableType)
+ Type of "items" is "list[tuple[Unknown, object]]" (reportUnknownVariableType)
- Type of "items" is "(() -> ItemsView[Unknown, Unknown]) | Unknown" (reportUnknownMemberType)
+ Type of "items" is "(() -> ItemsView[Unknown, object]) | (() -> ItemsView[object, Unknown]) | Unknown" (reportUnknownMemberType)
- Argument type is "ItemsView[Unknown, Unknown] | Unknown" (reportUnknownArgumentType)
+ Argument type is "ItemsView[object, Unknown] | ItemsView[Unknown, object] | Unknown" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/model_selection/_search.py:153:30 - error: Cannot access attribute "items" for class "object"
+ Attribute "items" is unknown (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/scikit-learn/sklearn/model_selection/_search.py:167:25 - error: Argument type is unknown
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/model_selection/_search.py:162:9 - error: Return type is unknown (reportUnknownParameterType)
- Argument corresponds to parameter "obj" in function "len" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/model_selection/_search.py:166:16 - error: No overloads for "sum" match the provided arguments (reportCallIssue)
- /tmp/mypy_primer/projects/scikit-learn/sklearn/model_selection/_search.py:167:32 - error: Type of "v" is unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/model_selection/_search.py:166:16 - error: Return type is unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/model_selection/_search.py:167:25 - error: Argument of type "object | Unknown" cannot be assigned to parameter "obj" of type "Sized" in function "len"
+ Type "object | Unknown" is not assignable to type "Sized"
+ "object" is incompatible with protocol "Sized"
+ "__len__" is not present (reportArgumentType)
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/model_selection/_search.py:167:32 - error: Type of "v" is partially unknown
+ Type of "v" is "object | Unknown" (reportUnknownVariableType)
- Type of "values" is "(() -> ValuesView[Unknown]) | Unknown" (reportUnknownMemberType)
+ Type of "values" is "(() -> ValuesView[object]) | (() -> ValuesView[Unknown]) | Unknown" (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/model_selection/_search.py:167:39 - error: Cannot access attribute "values" for class "object"
+ Attribute "values" is unknown (reportAttributeAccessIssue)
- Type of "p" is "Mapping[Unknown, Unknown] | Unknown" (reportUnknownVariableType)
+ Type of "p" is "Mapping[Unknown, object] | Mapping[object, Unknown] | object" (reportUnknownVariableType)
- Type of "param_grid" is "list[Mapping[Unknown, Unknown]] | Iterable[Unknown]" (reportUnknownMemberType)
+ Type of "param_grid" is "list[Mapping[Unknown, object] | Mapping[object, Unknown]] | Iterable[object]" (reportUnknownMemberType)
- Type of "sub_grid" is "Mapping[Unknown, Unknown] | Unknown" (reportUnknownVariableType)
+ Type of "sub_grid" is "Mapping[Unknown, object] | Mapping[object, Unknown] | object" (reportUnknownVariableType)
- Type of "param_grid" is "list[Mapping[Unknown, Unknown]] | Iterable[Unknown]" (reportUnknownMemberType)
+ Type of "param_grid" is "list[Mapping[Unknown, object] | Mapping[object, Unknown]] | Iterable[object]" (reportUnknownMemberType)
... (truncated 64 lines) ...
bidict (https://github.com/jab/bidict)
- Argument type is "Mapping[Unknown, Unknown]" (reportUnknownArgumentType)
+ Argument type is "Mapping[Unknown, object]" (reportUnknownArgumentType)
- Argument type is "zip[tuple[tuple[KT@BidictBase, VT@BidictBase], tuple[Unknown, Unknown]]]" (reportUnknownArgumentType)
+ Argument type is "zip[tuple[tuple[KT@BidictBase, VT@BidictBase], tuple[Unknown, object]]]" (reportUnknownArgumentType)
- Argument type is "ItemsView[Unknown, Unknown]" (reportUnknownArgumentType)
+ Argument type is "ItemsView[Unknown, object]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/bidict/bidict/_base.py:423:16 - error: Unnecessary isinstance call; "MapOrItems[KT@BidictBase, VT@BidictBase]" is always an instance of "Iterable[Unknown] | Maplike[Unknown, Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/bidict/bidict/_base.py:423:16 - error: Unnecessary isinstance call; "MapOrItems[KT@BidictBase, VT@BidictBase]" is always an instance of "Iterable[object] | Maplike[Unknown, object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/bidict/bidict/_base.py:500:16 - error: Unnecessary isinstance call; "Mapping[KT@BidictBase, VT@BidictBase]" is always an instance of "Mapping[Unknown, Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/bidict/bidict/_base.py:500:16 - error: Unnecessary isinstance call; "Mapping[KT@BidictBase, VT@BidictBase]" is always an instance of "Mapping[Unknown, object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/bidict/bidict/_base.py:508:16 - error: Unnecessary isinstance call; "Mapping[KT@BidictBase, VT@BidictBase]" is always an instance of "Mapping[Unknown, Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/bidict/bidict/_base.py:508:16 - error: Unnecessary isinstance call; "Mapping[KT@BidictBase, VT@BidictBase]" is always an instance of "Mapping[Unknown, object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/bidict/bidict/_base.py:543:12 - error: Return type, "Iterator[Unknown]", is partially unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/bidict/bidict/_base.py:543:12 - error: Type "Iterator[object]" is not assignable to return type "Iterator[KT@_fwdm_reversed]"
+ "Iterator[object]" is not assignable to "Iterator[KT@_fwdm_reversed]"
+ Type parameter "_T_co@Iterator" is covariant, but "object" is not a subtype of "KT@_fwdm_reversed"
+ Type "object" is not assignable to type "KT@_fwdm_reversed" (reportReturnType)
scrapy (https://github.com/scrapy/scrapy)
+ /tmp/mypy_primer/projects/scrapy/scrapy/spiders/crawl.py:182:53 - error: Argument of type "List[object] | object | Any | tuple[()]" cannot be assigned to parameter "results" of type "Iterable[Any]" in function "process_results"
+ Type "List[object] | object | Any | tuple[()]" is not assignable to type "Iterable[Any]"
+ "object" is incompatible with protocol "Iterable[Any]"
+ "__iter__" is not present (reportArgumentType)
- /tmp/mypy_primer/projects/scrapy/scrapy/spiders/crawl.py:179:17 - error: Type of "cb_res" is partially unknown
- Type of "cb_res" is "List[Unknown]" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/scrapy/scrapy/spiders/crawl.py:179:49 - error: Argument type is partially unknown
- Argument corresponds to parameter "result" in function "collect_asyncgen"
- Argument type is "AsyncIterable[Unknown]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/scrapy/scrapy/spiders/crawl.py:181:17 - error: Type of "cb_res" is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/scrapy/scrapy/spiders/crawl.py:182:53 - error: Argument type is partially unknown
- Argument corresponds to parameter "results" in function "process_results"
- Argument type is "List[Unknown] | Unknown | Any | tuple[()]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/scrapy/scrapy/utils/signal.py:39:15 - error: Argument type is partially unknown
- Argument corresponds to parameter "iterable" in function "__new__"
- Argument type is "Sequence[Unknown] | tuple[()]" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/scrapy/scrapy/utils/signal.py:58:16 - error: "object" is not iterable
+ "__iter__" method not defined (reportGeneralTypeIssues)
+ /tmp/mypy_primer/projects/scrapy/scrapy/utils/signal.py:58:16 - error: "tuple[object, ...] | tuple[Any, ...]" is not a valid exception class (reportGeneralTypeIssues)
- 28442 errors, 0 warnings, 0 notes
+ 28440 errors, 0 warnings, 0 notes
pydantic (https://github.com/pydantic/pydantic)
- /tmp/mypy_primer/projects/pydantic/pydantic/json_schema.py:1472:17 - error: Result of call expression is of type "Unknown | None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+ /tmp/mypy_primer/projects/pydantic/pydantic/json_schema.py:1466:33 - error: Type of "__get__" is partially unknown
+ Type of "__get__" is "Overload[(instance: None, owner: type, /) -> ((...) -> object), (instance: _T@__get__, owner: type[_T@__get__] | None = None, /) -> ((...) -> object)] | Overload[(instance: Unknown, owner: type[Unknown] | None = None, /) -> ((...) -> object), (instance: None, owner: type[Unknown], /) -> ((...) -> object)]" (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/pydantic/pydantic/json_schema.py:1466:33 - error: Type "(...) -> object" is not assignable to declared type "JsonSchemaExtraCallable | JsonDict | None"
+ Type "(...) -> object" is not assignable to type "JsonSchemaExtraCallable | JsonDict | None"
+ "function" is not assignable to "Dict[str, JsonValue]"
+ Type "(...) -> object" is not assignable to type "(JsonDict) -> None"
+ Function return type "object" is incompatible with type "None"
+ "object" is not assignable to "None"
+ Type "(...) -> object" is not assignable to type "(JsonDict, Type[Any]) -> None"
+ Function return type "object" is incompatible with type "None"
+ "object" is not assignable to "None"
+ ... (reportAssignmentType)
- /tmp/mypy_primer/projects/pydantic/pydantic/json_schema.py:1474:17 - error: Result of call expression is of type "Unknown | None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
- /tmp/mypy_primer/projects/pydantic/pydantic/validate_call_decorator.py:54:25 - error: Argument type is partially unknown
- Argument corresponds to parameter "o" in function "__init__"
- Argument type is "staticmethod[..., Unknown]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/pydantic/pydantic/_internal/_utils.py:258:14 - error: Unnecessary isinstance call; "AbstractSetIntStr" is always an instance of "AbstractSet[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/pydantic/pydantic/_internal/_utils.py:258:14 - error: Unnecessary isinstance call; "AbstractSetIntStr" is always an instance of "AbstractSet[object]" (reportUnnecessaryIsInstance)
... (truncated 599 lines) ...```
Diff from mypy_primer, showing the effect of this PR on open source code:
anyio (https://github.com/agronholm/anyio)
- /tmp/mypy_primer/projects/anyio/src/anyio/_core/_exceptions.py:86:13 - error: Type of "exc" is partially unknown
- Type of "exc" is "Unknown | BaseExceptionGroup[Unknown]" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/anyio/src/anyio/_core/_exceptions.py:86:20 - error: Type of "exceptions" is partially unknown
- Type of "exceptions" is "tuple[Unknown | BaseExceptionGroup[Unknown], ...]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/anyio/src/anyio/_core/_exceptions.py:87:43 - error: Argument type is partially unknown
- Argument corresponds to parameter "exception" in function "iterate_exceptions"
- Argument type is "Unknown | BaseExceptionGroup[Unknown]" (reportUnknownArgumentType)
- 1704 errors, 0 warnings, 0 notes
+ 1701 errors, 0 warnings, 0 notes
graphql-core (https://github.com/graphql-python/graphql-core)
+ /tmp/mypy_primer/projects/graphql-core/src/graphql/language/visitor.py:237:13 - error: Type of "idx" is Any (reportAny)
+ /tmp/mypy_primer/projects/graphql-core/src/graphql/language/visitor.py:237:19 - error: Type of "idx" is Any (reportAny)
+ /tmp/mypy_primer/projects/graphql-core/src/graphql/language/visitor.py:238:20 - error: Type of "keys" is Any (reportAny)
+ /tmp/mypy_primer/projects/graphql-core/src/graphql/language/visitor.py:239:21 - error: Type of "edits" is Any (reportAny)
+ /tmp/mypy_primer/projects/graphql-core/src/graphql/language/visitor.py:240:13 - error: Type of "in_array" is Any (reportAny)
+ /tmp/mypy_primer/projects/graphql-core/src/graphql/language/visitor.py:240:24 - error: Type of "in_array" is Any (reportAny)
+ /tmp/mypy_primer/projects/graphql-core/src/graphql/language/visitor.py:241:21 - error: Type of "prev" is Any (reportAny)
- /tmp/mypy_primer/projects/graphql-core/src/graphql/language/visitor.py:273:21 - error: Result of call expression is of type "Unknown | None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
- /tmp/mypy_primer/projects/graphql-core/src/graphql/language/visitor.py:284:13 - error: Result of call expression is of type "Unknown | None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
- /tmp/mypy_primer/projects/graphql-core/src/graphql/language/visitor.py:290:13 - error: Type of "stack" is Any (reportAny)
+ /tmp/mypy_primer/projects/graphql-core/src/graphql/language/visitor.py:303:16 - error: Return type is Any (reportAny)
- 1860 errors, 0 warnings, 0 notes
+ 1865 errors, 0 warnings, 0 notes
mypy (https://github.com/python/mypy)
- /tmp/mypy_primer/projects/mypy/mypy/server/objgraph.py:55:16 - error: Type of "e" is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/mypy/mypy/server/objgraph.py:55:31 - error: Argument type is partially unknown
- Argument corresponds to parameter "iterable" in function "__new__"
- Argument type is "Iterable[Unknown]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/mypy/mypyc/analysis/ircheck.py:303:14 - error: Unnecessary isinstance call; "FrozenSet[object]" is always an instance of "frozenset[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/mypy/mypyc/analysis/ircheck.py:303:14 - error: Unnecessary isinstance call; "FrozenSet[object]" is always an instance of "frozenset[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/mypy/mypyc/codegen/literals.py:66:14 - error: Unnecessary isinstance call; "FrozenSet[object]" is always an instance of "frozenset[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/mypy/mypyc/codegen/literals.py:66:14 - error: Unnecessary isinstance call; "FrozenSet[object]" is always an instance of "frozenset[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/mypy/mypyc/codegen/literals.py:105:12 - error: Unnecessary isinstance call; "FrozenSet[object]" is always an instance of "frozenset[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/mypy/mypyc/codegen/literals.py:105:12 - error: Unnecessary isinstance call; "FrozenSet[object]" is always an instance of "frozenset[object]" (reportUnnecessaryIsInstance)
- 16227 errors, 0 warnings, 0 notes
+ 16225 errors, 0 warnings, 0 notes
sympy (https://github.com/sympy/sympy)
- /tmp/mypy_primer/projects/sympy/sympy/core/basic.py:351:24 - error: Argument type is unknown
- Argument corresponds to parameter "args" in function "__new__" (reportUnknownArgumentType)
- Type of "_get_const_characteristic_eq_sols" is "(r: Unknown, func: Unknown, order: Unknown) -> tuple[list[Unknown], list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, Any, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, type[__class_UndefinedFunction] | Unknown, int] | tuple[int, Any, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, type[__class_UndefinedFunction] | Unknown, int]]]" (reportUnknownVariableType)
+ Type of "_get_const_characteristic_eq_sols" is "(r: Unknown, func: Unknown, order: Unknown) -> tuple[list[Unknown], list[tuple[int, Any, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, Any, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, Any, int] | tuple[int, type[__class_UndefinedFunction] | Unknown, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, type[__class_UndefinedFunction] | Unknown, int]]]" (reportUnknownVariableType)
- Type of "collectterms" is "list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, Any, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, type[__class_UndefinedFunction] | Unknown, int] | tuple[int, Any, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, type[__class_UndefinedFunction] | Unknown, int]]" (reportUnknownVariableType)
+ Type of "collectterms" is "list[tuple[int, Any, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, Any, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, Any, int] | tuple[int, type[__class_UndefinedFunction] | Unknown, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, type[__class_UndefinedFunction] | Unknown, int]]" (reportUnknownVariableType)
- Type of "collectterms" is "list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, Any, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, type[__class_UndefinedFunction] | Unknown, int] | tuple[int, Any, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, type[__class_UndefinedFunction] | Unknown, int]]" (reportUnknownVariableType)
+ Type of "collectterms" is "list[tuple[int, Any, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, Any, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, Any, int] | tuple[int, type[__class_UndefinedFunction] | Unknown, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, type[__class_UndefinedFunction] | Unknown, int]]" (reportUnknownVariableType)
- Type of "collectterms" is "list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, Any, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, type[__class_UndefinedFunction] | Unknown, int] | tuple[int, Any, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, type[__class_UndefinedFunction] | Unknown, int]]" (reportUnknownVariableType)
+ Type of "collectterms" is "list[tuple[int, Any, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, Any, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, Any, int] | tuple[int, type[__class_UndefinedFunction] | Unknown, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, type[__class_UndefinedFunction] | Unknown, int]]" (reportUnknownVariableType)
- Type of "sqrtdenest" is "(expr: Unknown, max_iter: int = 3) -> Unknown" (reportUnknownVariableType)
+ Type of "sqrtdenest" is "(expr: Unknown, max_iter: int = 3) -> (Unknown | Mul | Pow | Order | Expr | Add | None)" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/sympy/sympy/solvers/ode/subscheck.py:385:22 - error: Type of "simplify" is partially unknown
+ /tmp/mypy_primer/projects/sympy/sympy/solvers/ode/subscheck.py:385:22 - error: Type of "simplify" is unknown (reportUnknownMemberType)
- Type of "simplify" is "Unknown | ((**kwargs: Unknown) -> Unknown)" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/sympy/sympy/solvers/ode/subscheck.py:385:37 - error: "simplify" is not a known attribute of "None" (reportOptionalMemberAccess)
- Type of "_" is "Unknown | Any | Literal[False]" (reportUnknownVariableType)
+ Type of "_" is "Unknown | Literal[False]" (reportUnknownVariableType)
- Type of "_" is "Unknown | Any | Literal[False]" (reportUnknownVariableType)
+ Type of "_" is "Unknown | Literal[False]" (reportUnknownVariableType)
- Type of "_" is "Unknown | Any | Literal[False]" (reportUnknownVariableType)
+ Type of "_" is "Unknown | Literal[False]" (reportUnknownVariableType)
- Type of "_" is "Unknown | Any | Literal[False]" (reportUnknownVariableType)
+ Type of "_" is "Unknown | Literal[False]" (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:501:5 - error: Type of "eqs" is partially unknown
+ Type of "eqs" is "list[Unknown]" (reportUnknownVariableType)
- Argument type is "Unknown | Any | _NotImplementedType" (reportUnknownArgumentType)
+ Argument type is "Unknown | _NotImplementedType" (reportUnknownArgumentType)
- Type of "eqs" is "list[Unknown | Any]" (reportUnknownVariableType)
+ Type of "eqs" is "list[Unknown]" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:505:16 - error: Argument type is partially unknown
+ /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:505:16 - error: Argument type is unknown
- Argument corresponds to parameter "iterable" in function "__init__"
+ Argument corresponds to parameter "iterable" in function "__init__" (reportUnknownArgumentType)
- Argument type is "Unknown | Any" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:717:18 - error: Argument type is unknown
+ Argument corresponds to parameter "f" in function "solve" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:1768:5 - error: Type of "eqs" is partially unknown
+ /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:1768:5 - error: Type of "eqs" is unknown (reportUnknownVariableType)
- Type of "eqs" is "Unknown | Any" (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:1769:18 - error: Argument type is unknown
+ Argument corresponds to parameter "f" in function "solve" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:1770:18 - error: Argument type is unknown
+ Argument corresponds to parameter "f" in function "solve" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/sympy/sympy/stats/tests/test_symbolic_multivariate.py:64:50 - error: Argument type is unknown
+ Argument corresponds to parameter "expr" in function "__new__" (reportUnknownArgumentType)
- Type of "c" is "Unknown | Any | _NotImplementedType" (reportUnknownVariableType)
+ Type of "c" is "Unknown | _NotImplementedType" (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/sympy/sympy/utilities/tests/test_lambdify.py:634:29 - error: Argument type is unknown
+ Argument corresponds to parameter "expr" in function "lambdify" (reportUnknownArgumentType)
... (truncated 18 lines) ...
websockets (https://github.com/aaugustin/websockets)
- /tmp/mypy_primer/projects/websockets/src/websockets/headers.py:470:12 - error: Unnecessary isinstance call; "Sequence[Subprotocol]" is always an instance of "Sequence[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/websockets/src/websockets/headers.py:470:12 - error: Unnecessary isinstance call; "Sequence[Subprotocol]" is always an instance of "Sequence[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/websockets/src/websockets/asyncio/connection.py:492:14 - error: Unnecessary isinstance call; "AsyncIterable[Data]" is always an instance of "AsyncIterable[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/websockets/src/websockets/asyncio/connection.py:492:14 - error: Unnecessary isinstance call; "AsyncIterable[Data]" is always an instance of "AsyncIterable[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/websockets/src/websockets/asyncio/server.py:901:14 - error: Unnecessary isinstance call; "tuple[str, str] | Iterable[tuple[str, str]]" is always an instance of "Iterable[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/websockets/src/websockets/asyncio/server.py:901:14 - error: Unnecessary isinstance call; "tuple[str, str] | Iterable[tuple[str, str]]" is always an instance of "Iterable[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/websockets/src/websockets/asyncio/server.py:951:12 - error: Unnecessary isinstance call; "bool" is never an instance of "Awaitable[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/websockets/src/websockets/asyncio/server.py:951:12 - error: Unnecessary isinstance call; "bool" is never an instance of "Awaitable[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/websockets/src/websockets/legacy/auth.py:162:14 - error: Unnecessary isinstance call; "Credentials | Iterable[Credentials]" is always an instance of "Iterable[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/websockets/src/websockets/legacy/auth.py:162:14 - error: Unnecessary isinstance call; "Credentials | Iterable[Credentials]" is always an instance of "Iterable[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/websockets/src/websockets/legacy/protocol.py:678:14 - error: Unnecessary isinstance call; "AsyncIterable[Data]" is always an instance of "AsyncIterable[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/websockets/src/websockets/legacy/protocol.py:678:14 - error: Unnecessary isinstance call; "AsyncIterable[Data]" is always an instance of "AsyncIterable[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/websockets/src/websockets/legacy/server.py:361:16 - error: Unnecessary isinstance call; "Awaitable[HTTPResponse | None]" is always an instance of "Awaitable[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/websockets/src/websockets/legacy/server.py:361:16 - error: Unnecessary isinstance call; "Awaitable[HTTPResponse | None]" is always an instance of "Awaitable[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/websockets/src/websockets/legacy/server.py:586:12 - error: Unnecessary isinstance call; "Coroutine[Any, Any, HTTPResponse | None]" is always an instance of "Awaitable[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/websockets/src/websockets/legacy/server.py:586:12 - error: Unnecessary isinstance call; "Coroutine[Any, Any, HTTPResponse | None]" is always an instance of "Awaitable[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/websockets/src/websockets/sync/connection.py:321:14 - error: Unnecessary isinstance call; "Iterable[Data]" is always an instance of "Iterable[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/websockets/src/websockets/sync/connection.py:321:14 - error: Unnecessary isinstance call; "Iterable[Data]" is always an instance of "Iterable[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/websockets/src/websockets/sync/server.py:668:14 - error: Unnecessary isinstance call; "tuple[str, str] | Iterable[tuple[str, str]]" is always an instance of "Iterable[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/websockets/src/websockets/sync/server.py:668:14 - error: Unnecessary isinstance call; "tuple[str, str] | Iterable[tuple[str, str]]" is always an instance of "Iterable[object]" (reportUnnecessaryIsInstance)
scikit-learn (https://github.com/scikit-learn/scikit-learn)
- /tmp/mypy_primer/projects/scikit-learn/sklearn/datasets/_samples_generator.py:1078:29 - error: Argument type is partially unknown
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/datasets/_samples_generator.py:1078:25 - error: No overloads for "sum" match the provided arguments (reportCallIssue)
- Argument corresponds to parameter "iterable" in function "sum"
- Argument type is "<subclass of <subclass of int and Integral> and Iterable> | <subclass of int and Iterable> | list[int] | Unknown" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/datasets/_samples_generator.py:1078:29 - error: Argument of type "<subclass of <subclass of int and Integral> and Iterable[object]> | <subclass of int and Iterable[object]> | list[int] | Unknown" cannot be assigned to parameter "iterable" of type "Iterable[_SupportsSumNoDefaultT@sum]" in function "sum"
+ Type "<subclass of <subclass of int and Integral> and Iterable[object]> | <subclass of int and Iterable[object]> | list[int] | Unknown" is not assignable to type "Iterable[_SupportsSumNoDefaultT@sum]"
+ "<subclass of <subclass of int and Integral> and Iterable[object]>" is not assignable to "Iterable[_SupportsSumNoDefaultT@sum]"
+ Type parameter "_T_co@Iterable" is covariant, but "object" is not a subtype of "_SupportsSumNoDefaultT@sum"
+ Type "object" is not assignable to type "_SupportsSumWithNoDefaultGiven"
+ "object" is incompatible with protocol "_SupportsSumWithNoDefaultGiven" (reportArgumentType)
- /tmp/mypy_primer/projects/scikit-learn/sklearn/datasets/_samples_generator.py:1079:29 - error: Argument type is partially unknown
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/datasets/_samples_generator.py:1079:25 - error: No overloads for "sum" match the provided arguments (reportCallIssue)
- Argument corresponds to parameter "iterable" in function "sum"
- Argument type is "<subclass of <subclass of int and Integral> and Iterable> | <subclass of int and Iterable> | list[int] | Unknown" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/datasets/_samples_generator.py:1079:29 - error: Argument of type "<subclass of <subclass of int and Integral> and Iterable[object]> | <subclass of int and Iterable[object]> | list[int] | Unknown" cannot be assigned to parameter "iterable" of type "Iterable[_SupportsSumNoDefaultT@sum]" in function "sum"
+ Type "<subclass of <subclass of int and Integral> and Iterable[object]> | <subclass of int and Iterable[object]> | list[int] | Unknown" is not assignable to type "Iterable[_SupportsSumNoDefaultT@sum]"
+ "<subclass of <subclass of int and Integral> and Iterable[object]>" is not assignable to "Iterable[_SupportsSumNoDefaultT@sum]"
+ Type parameter "_T_co@Iterable" is covariant, but "object" is not a subtype of "_SupportsSumNoDefaultT@sum"
+ Type "object" is not assignable to type "_SupportsSumWithNoDefaultGiven"
+ "object" is incompatible with protocol "_SupportsSumWithNoDefaultGiven" (reportArgumentType)
- Argument type is "<subclass of <subclass of int and Integral> and Iterable> | <subclass of int and Iterable> | list[int] | Unknown" (reportUnknownArgumentType)
+ Argument type is "<subclass of <subclass of int and Integral> and Iterable[object]> | <subclass of int and Iterable[object]> | list[int] | Unknown" (reportUnknownArgumentType)
- 208225 errors, 0 warnings, 0 notes
+ 208227 errors, 0 warnings, 0 notes
bidict (https://github.com/jab/bidict)
- Argument type is "Mapping[Unknown, Unknown]" (reportUnknownArgumentType)
+ Argument type is "Mapping[Unknown, object]" (reportUnknownArgumentType)
- Argument type is "zip[tuple[tuple[KT@BidictBase, VT@BidictBase], tuple[Unknown, Unknown]]]" (reportUnknownArgumentType)
+ Argument type is "zip[tuple[tuple[KT@BidictBase, VT@BidictBase], tuple[Unknown, object]]]" (reportUnknownArgumentType)
- Argument type is "ItemsView[Unknown, Unknown]" (reportUnknownArgumentType)
+ Argument type is "ItemsView[Unknown, object]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/bidict/bidict/_base.py:423:16 - error: Unnecessary isinstance call; "MapOrItems[KT@BidictBase, VT@BidictBase]" is always an instance of "Iterable[Unknown] | Maplike[Unknown, Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/bidict/bidict/_base.py:423:16 - error: Unnecessary isinstance call; "MapOrItems[KT@BidictBase, VT@BidictBase]" is always an instance of "Iterable[object] | Maplike[Unknown, object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/bidict/bidict/_base.py:500:16 - error: Unnecessary isinstance call; "Mapping[KT@BidictBase, VT@BidictBase]" is always an instance of "Mapping[Unknown, Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/bidict/bidict/_base.py:500:16 - error: Unnecessary isinstance call; "Mapping[KT@BidictBase, VT@BidictBase]" is always an instance of "Mapping[Unknown, object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/bidict/bidict/_base.py:508:16 - error: Unnecessary isinstance call; "Mapping[KT@BidictBase, VT@BidictBase]" is always an instance of "Mapping[Unknown, Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/bidict/bidict/_base.py:508:16 - error: Unnecessary isinstance call; "Mapping[KT@BidictBase, VT@BidictBase]" is always an instance of "Mapping[Unknown, object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/bidict/bidict/_base.py:543:12 - error: Return type, "Iterator[Unknown]", is partially unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/bidict/bidict/_base.py:543:12 - error: Type "Iterator[object]" is not assignable to return type "Iterator[KT@_fwdm_reversed]"
+ "Iterator[object]" is not assignable to "Iterator[KT@_fwdm_reversed]"
+ Type parameter "_T_co@Iterator" is covariant, but "object" is not a subtype of "KT@_fwdm_reversed"
+ Type "object" is not assignable to type "KT@_fwdm_reversed" (reportReturnType)
pydantic (https://github.com/pydantic/pydantic)
- /tmp/mypy_primer/projects/pydantic/pydantic/json_schema.py:1472:17 - error: Result of call expression is of type "Unknown | None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+ /tmp/mypy_primer/projects/pydantic/pydantic/json_schema.py:1466:33 - error: Type of "__get__" is partially unknown
+ Type of "__get__" is "Overload[(instance: None, owner: type, /) -> ((...) -> object), (instance: _T@__get__, owner: type[_T@__get__] | None = None, /) -> ((...) -> object)] | Overload[(instance: Unknown, owner: type[Unknown] | None = None, /) -> ((...) -> object), (instance: None, owner: type[Unknown], /) -> ((...) -> object)]" (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/pydantic/pydantic/json_schema.py:1466:33 - error: Type "(...) -> object" is not assignable to declared type "JsonSchemaExtraCallable | JsonDict | None"
+ Type "(...) -> object" is not assignable to type "JsonSchemaExtraCallable | JsonDict | None"
+ "function" is not assignable to "Dict[str, JsonValue]"
+ Type "(...) -> object" is not assignable to type "(JsonDict) -> None"
+ Function return type "object" is incompatible with type "None"
+ "object" is not assignable to "None"
+ Type "(...) -> object" is not assignable to type "(JsonDict, Type[Any]) -> None"
+ Function return type "object" is incompatible with type "None"
+ "object" is not assignable to "None"
+ ... (reportAssignmentType)
- /tmp/mypy_primer/projects/pydantic/pydantic/json_schema.py:1474:17 - error: Result of call expression is of type "Unknown | None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
- /tmp/mypy_primer/projects/pydantic/pydantic/validate_call_decorator.py:54:25 - error: Argument type is partially unknown
- Argument corresponds to parameter "o" in function "__init__"
- Argument type is "staticmethod[..., Unknown]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/pydantic/pydantic/_internal/_utils.py:258:14 - error: Unnecessary isinstance call; "AbstractSetIntStr" is always an instance of "AbstractSet[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/pydantic/pydantic/_internal/_utils.py:258:14 - error: Unnecessary isinstance call; "AbstractSetIntStr" is always an instance of "AbstractSet[object]" (reportUnnecessaryIsInstance)
- 6214 errors, 0 warnings, 0 notes
+ 6213 errors, 0 warnings, 0 notes
scrapy (https://github.com/scrapy/scrapy)
+ /tmp/mypy_primer/projects/scrapy/scrapy/spiders/crawl.py:182:53 - error: Argument of type "List[object] | object | Any | tuple[()]" cannot be assigned to parameter "results" of type "Iterable[Any]" in function "process_results"
+ Type "List[object] | object | Any | tuple[()]" is not assignable to type "Iterable[Any]"
+ "object" is incompatible with protocol "Iterable[Any]"
+ "__iter__" is not present (reportArgumentType)
- /tmp/mypy_primer/projects/scrapy/scrapy/spiders/crawl.py:179:17 - error: Type of "cb_res" is partially unknown
- Type of "cb_res" is "List[Unknown]" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/scrapy/scrapy/spiders/crawl.py:179:49 - error: Argument type is partially unknown
- Argument corresponds to parameter "result" in function "collect_asyncgen"
- Argument type is "AsyncIterable[Unknown]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/scrapy/scrapy/spiders/crawl.py:181:17 - error: Type of "cb_res" is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/scrapy/scrapy/spiders/crawl.py:182:53 - error: Argument type is partially unknown
- Argument corresponds to parameter "results" in function "process_results"
- Argument type is "List[Unknown] | Unknown | Any | tuple[()]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/scrapy/scrapy/utils/signal.py:39:15 - error: Argument type is partially unknown
- Argument corresponds to parameter "iterable" in function "__new__"
- Argument type is "Sequence[Unknown] | tuple[()]" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/scrapy/scrapy/utils/signal.py:58:16 - error: "object" is not iterable
+ "__iter__" method not defined (reportGeneralTypeIssues)
+ /tmp/mypy_primer/projects/scrapy/scrapy/utils/signal.py:58:16 - error: "tuple[object, ...] | tuple[Any, ...]" is not a valid exception class (reportGeneralTypeIssues)
- 28442 errors, 0 warnings, 0 notes
+ 28440 errors, 0 warnings, 0 notes
core (https://github.com/home-assistant/core)
- /tmp/mypy_primer/projects/core/homeassistant/components/automation/config.py:226:8 - error: Unnecessary isinstance call; "dict[str, Any]" is always an instance of "Mapping[Unknown, Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/core/homeassistant/components/automation/config.py:226:8 - error: Unnecessary isinstance call; "dict[str, Any]" is always an instance of "Mapping[Unknown, object]" (reportUnnecessaryIsInstance)
... (truncated 542 lines) ...```
Diff from mypy_primer, showing the effect of this PR on open source code:
graphql-core (https://github.com/graphql-python/graphql-core)
+ /tmp/mypy_primer/projects/graphql-core/src/graphql/language/visitor.py:237:13 - error: Type of "idx" is Any (reportAny)
+ /tmp/mypy_primer/projects/graphql-core/src/graphql/language/visitor.py:237:19 - error: Type of "idx" is Any (reportAny)
+ /tmp/mypy_primer/projects/graphql-core/src/graphql/language/visitor.py:238:20 - error: Type of "keys" is Any (reportAny)
+ /tmp/mypy_primer/projects/graphql-core/src/graphql/language/visitor.py:239:21 - error: Type of "edits" is Any (reportAny)
+ /tmp/mypy_primer/projects/graphql-core/src/graphql/language/visitor.py:240:13 - error: Type of "in_array" is Any (reportAny)
+ /tmp/mypy_primer/projects/graphql-core/src/graphql/language/visitor.py:240:24 - error: Type of "in_array" is Any (reportAny)
+ /tmp/mypy_primer/projects/graphql-core/src/graphql/language/visitor.py:241:21 - error: Type of "prev" is Any (reportAny)
- /tmp/mypy_primer/projects/graphql-core/src/graphql/language/visitor.py:273:21 - error: Result of call expression is of type "Unknown | None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
- /tmp/mypy_primer/projects/graphql-core/src/graphql/language/visitor.py:284:13 - error: Result of call expression is of type "Unknown | None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
- /tmp/mypy_primer/projects/graphql-core/src/graphql/language/visitor.py:290:13 - error: Type of "stack" is Any (reportAny)
+ /tmp/mypy_primer/projects/graphql-core/src/graphql/language/visitor.py:303:16 - error: Return type is Any (reportAny)
- 1860 errors, 0 warnings, 0 notes
+ 1865 errors, 0 warnings, 0 notes
anyio (https://github.com/agronholm/anyio)
- /tmp/mypy_primer/projects/anyio/src/anyio/_core/_exceptions.py:86:13 - error: Type of "exc" is partially unknown
- Type of "exc" is "Unknown | BaseExceptionGroup[Unknown]" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/anyio/src/anyio/_core/_exceptions.py:86:20 - error: Type of "exceptions" is partially unknown
- Type of "exceptions" is "tuple[Unknown | BaseExceptionGroup[Unknown], ...]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/anyio/src/anyio/_core/_exceptions.py:87:43 - error: Argument type is partially unknown
- Argument corresponds to parameter "exception" in function "iterate_exceptions"
- Argument type is "Unknown | BaseExceptionGroup[Unknown]" (reportUnknownArgumentType)
- 1704 errors, 0 warnings, 0 notes
+ 1701 errors, 0 warnings, 0 notes
mypy (https://github.com/python/mypy)
- /tmp/mypy_primer/projects/mypy/mypy/server/objgraph.py:55:16 - error: Type of "e" is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/mypy/mypy/server/objgraph.py:55:31 - error: Argument type is partially unknown
- Argument corresponds to parameter "iterable" in function "__new__"
- Argument type is "Iterable[Unknown]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/mypy/mypyc/analysis/ircheck.py:303:14 - error: Unnecessary isinstance call; "FrozenSet[object]" is always an instance of "frozenset[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/mypy/mypyc/analysis/ircheck.py:303:14 - error: Unnecessary isinstance call; "FrozenSet[object]" is always an instance of "frozenset[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/mypy/mypyc/codegen/literals.py:66:14 - error: Unnecessary isinstance call; "FrozenSet[object]" is always an instance of "frozenset[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/mypy/mypyc/codegen/literals.py:66:14 - error: Unnecessary isinstance call; "FrozenSet[object]" is always an instance of "frozenset[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/mypy/mypyc/codegen/literals.py:105:12 - error: Unnecessary isinstance call; "FrozenSet[object]" is always an instance of "frozenset[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/mypy/mypyc/codegen/literals.py:105:12 - error: Unnecessary isinstance call; "FrozenSet[object]" is always an instance of "frozenset[object]" (reportUnnecessaryIsInstance)
- 16227 errors, 0 warnings, 0 notes
+ 16225 errors, 0 warnings, 0 notes
sympy (https://github.com/sympy/sympy)
- /tmp/mypy_primer/projects/sympy/sympy/core/basic.py:351:24 - error: Argument type is unknown
- Argument corresponds to parameter "args" in function "__new__" (reportUnknownArgumentType)
- Type of "_" is "Unknown | Any | Literal[False]" (reportUnknownVariableType)
+ Type of "_" is "Unknown | Literal[False]" (reportUnknownVariableType)
- Type of "_" is "Unknown | Any | Literal[False]" (reportUnknownVariableType)
+ Type of "_" is "Unknown | Literal[False]" (reportUnknownVariableType)
- Type of "_" is "Unknown | Any | Literal[False]" (reportUnknownVariableType)
+ Type of "_" is "Unknown | Literal[False]" (reportUnknownVariableType)
- Type of "_" is "Unknown | Any | Literal[False]" (reportUnknownVariableType)
+ Type of "_" is "Unknown | Literal[False]" (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:501:5 - error: Type of "eqs" is partially unknown
+ Type of "eqs" is "list[Unknown]" (reportUnknownVariableType)
- Argument type is "Unknown | Any | _NotImplementedType" (reportUnknownArgumentType)
+ Argument type is "Unknown | _NotImplementedType" (reportUnknownArgumentType)
- Type of "eqs" is "list[Unknown | Any]" (reportUnknownVariableType)
+ Type of "eqs" is "list[Unknown]" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:505:16 - error: Argument type is partially unknown
+ /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:505:16 - error: Argument type is unknown
- Argument corresponds to parameter "iterable" in function "__init__"
+ Argument corresponds to parameter "iterable" in function "__init__" (reportUnknownArgumentType)
- Argument type is "Unknown | Any" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:717:18 - error: Argument type is unknown
+ Argument corresponds to parameter "f" in function "solve" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:1768:5 - error: Type of "eqs" is partially unknown
+ /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:1768:5 - error: Type of "eqs" is unknown (reportUnknownVariableType)
- Type of "eqs" is "Unknown | Any" (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:1769:18 - error: Argument type is unknown
+ Argument corresponds to parameter "f" in function "solve" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:1770:18 - error: Argument type is unknown
+ Argument corresponds to parameter "f" in function "solve" (reportUnknownArgumentType)
- Type of "eq" is "_NotImplementedType | Unknown" (reportUnknownVariableType)
+ Type of "eq" is "_NotImplementedType | GreaterThan | Unknown | Equality | Relational | Unequality" (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/sympy/sympy/stats/frv_types.py:236:16 - error: Operator "&" not supported for types "_NotImplementedType | GreaterThan | Unknown | Equality | Relational | Unequality" and "_NotImplementedType | LessThan | Unknown | Equality | Relational | Unequality"
+ Operator "&" not supported for types "GreaterThan" and "LessThan"
+ Operator "&" not supported for types "GreaterThan" and "Equality"
+ Operator "&" not supported for types "GreaterThan" and "Relational"
+ Operator "&" not supported for types "GreaterThan" and "Unequality"
+ Operator "&" not supported for types "Equality" and "LessThan"
+ Operator "&" not supported for types "Equality" and "Equality"
+ Operator "&" not supported for types "Equality" and "Relational"
+ Operator "&" not supported for types "Equality" and "Unequality"
+ ... (reportOperatorIssue)
+ /tmp/mypy_primer/projects/sympy/sympy/stats/frv_types.py:425:16 - error: Operator "&" not supported for types "_NotImplementedType | GreaterThan | Unknown | Equality | Relational | Unequality" and "_NotImplementedType | LessThan | Unknown | Equality | Relational | Unequality"
+ Operator "&" not supported for types "GreaterThan" and "LessThan"
+ Operator "&" not supported for types "GreaterThan" and "Equality"
+ Operator "&" not supported for types "GreaterThan" and "Relational"
+ Operator "&" not supported for types "GreaterThan" and "Unequality"
+ Operator "&" not supported for types "Equality" and "LessThan"
+ Operator "&" not supported for types "Equality" and "Equality"
+ Operator "&" not supported for types "Equality" and "Relational"
+ Operator "&" not supported for types "Equality" and "Unequality"
+ ... (reportOperatorIssue)
+ /tmp/mypy_primer/projects/sympy/sympy/stats/frv_types.py:713:17 - error: Operator "&" not supported for types "_NotImplementedType | GreaterThan | Unknown | Equality | Relational | Unequality" and "_NotImplementedType | LessThan | Unknown | Equality | Relational | Unequality"
+ Operator "&" not supported for types "GreaterThan" and "LessThan"
+ Operator "&" not supported for types "GreaterThan" and "Equality"
+ Operator "&" not supported for types "GreaterThan" and "Relational"
+ Operator "&" not supported for types "GreaterThan" and "Unequality"
+ Operator "&" not supported for types "Equality" and "LessThan"
+ Operator "&" not supported for types "Equality" and "Equality"
+ Operator "&" not supported for types "Equality" and "Relational"
+ Operator "&" not supported for types "Equality" and "Unequality"
+ ... (reportOperatorIssue)
+ /tmp/mypy_primer/projects/sympy/sympy/stats/frv_types.py:771:22 - error: Invalid conditional operand of type "_NotImplementedType | StrictGreaterThan | Unknown | Equality | Relational | Unequality"
+ Method __bool__ for type "StrictGreaterThan" returns type "NoReturn" rather than "bool"
+ Method __bool__ for type "Equality" returns type "NoReturn" rather than "bool"
+ Method __bool__ for type "Relational" returns type "NoReturn" rather than "bool"
+ Method __bool__ for type "Unequality" returns type "NoReturn" rather than "bool" (reportGeneralTypeIssues)
+ /tmp/mypy_primer/projects/sympy/sympy/stats/frv_types.py:771:39 - error: Invalid conditional operand of type "_NotImplementedType | LessThan | Unknown | Equality | Relational | Unequality"
+ Method __bool__ for type "LessThan" returns type "NoReturn" rather than "bool"
+ Method __bool__ for type "Equality" returns type "NoReturn" rather than "bool"
+ Method __bool__ for type "Relational" returns type "NoReturn" rather than "bool"
+ Method __bool__ for type "Unequality" returns type "NoReturn" rather than "bool" (reportGeneralTypeIssues)
+ /tmp/mypy_primer/projects/sympy/sympy/stats/frv_types.py:811:17 - error: Operator "&" not supported for types "_NotImplementedType | GreaterThan | Unknown | Equality | Relational | Unequality" and "_NotImplementedType | LessThan | Unknown | Equality | Relational | Unequality"
+ Operator "&" not supported for types "GreaterThan" and "LessThan"
+ Operator "&" not supported for types "GreaterThan" and "Equality"
+ Operator "&" not supported for types "GreaterThan" and "Relational"
+ Operator "&" not supported for types "GreaterThan" and "Unequality"
+ Operator "&" not supported for types "Equality" and "LessThan"
+ Operator "&" not supported for types "Equality" and "Equality"
+ Operator "&" not supported for types "Equality" and "Relational"
+ Operator "&" not supported for types "Equality" and "Unequality"
+ ... (reportOperatorIssue)
+ /tmp/mypy_primer/projects/sympy/sympy/stats/frv_types.py:814:17 - error: Operator "&" not supported for types "_NotImplementedType | GreaterThan | Unknown | Equality | Relational | Unequality" and "_NotImplementedType | LessThan | Unknown | Equality | Relational | Unequality"
+ Operator "&" not supported for types "GreaterThan" and "LessThan"
+ Operator "&" not supported for types "GreaterThan" and "Equality"
+ Operator "&" not supported for types "GreaterThan" and "Relational"
+ Operator "&" not supported for types "GreaterThan" and "Unequality"
+ Operator "&" not supported for types "Equality" and "LessThan"
+ Operator "&" not supported for types "Equality" and "Equality"
+ Operator "&" not supported for types "Equality" and "Relational"
+ Operator "&" not supported for types "Equality" and "Unequality"
+ ... (reportOperatorIssue)
- Type of "condition" is "_NotImplementedType | Unknown" (reportUnknownVariableType)
+ Type of "condition" is "_NotImplementedType | StrictLessThan | Unknown | Equality | Relational | Unequality" (reportUnknownVariableType)
- Type of "condition" is "_NotImplementedType | Unknown" (reportUnknownVariableType)
+ Type of "condition" is "_NotImplementedType | StrictGreaterThan | Unknown | Equality | Relational | Unequality" (reportUnknownVariableType)
- Type of "condition" is "_NotImplementedType | Unknown" (reportUnknownVariableType)
+ Type of "condition" is "_NotImplementedType | LessThan | Unknown | Equality | Relational | Unequality" (reportUnknownVariableType)
- Type of "condition" is "_NotImplementedType | Unknown" (reportUnknownVariableType)
+ Type of "condition" is "_NotImplementedType | GreaterThan | Unknown | Equality | Relational | Unequality" (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/sympy/sympy/stats/tests/test_stochastic_process.py:126:14 - error: Operator "&" not supported for types "_NotImplementedType | StrictLessThan | Unknown | Equality | Relational | Unequality" and "_NotImplementedType | StrictGreaterThan | Unknown | Equality | Relational | Unequality"
+ Operator "&" not supported for types "StrictLessThan" and "StrictGreaterThan"
+ Operator "&" not supported for types "StrictLessThan" and "Equality"
... (truncated 63 lines) ...
websockets (https://github.com/aaugustin/websockets)
- /tmp/mypy_primer/projects/websockets/src/websockets/headers.py:470:12 - error: Unnecessary isinstance call; "Sequence[Subprotocol]" is always an instance of "Sequence[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/websockets/src/websockets/headers.py:470:12 - error: Unnecessary isinstance call; "Sequence[Subprotocol]" is always an instance of "Sequence[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/websockets/src/websockets/asyncio/connection.py:492:14 - error: Unnecessary isinstance call; "AsyncIterable[Data]" is always an instance of "AsyncIterable[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/websockets/src/websockets/asyncio/connection.py:492:14 - error: Unnecessary isinstance call; "AsyncIterable[Data]" is always an instance of "AsyncIterable[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/websockets/src/websockets/asyncio/server.py:901:14 - error: Unnecessary isinstance call; "tuple[str, str] | Iterable[tuple[str, str]]" is always an instance of "Iterable[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/websockets/src/websockets/asyncio/server.py:901:14 - error: Unnecessary isinstance call; "tuple[str, str] | Iterable[tuple[str, str]]" is always an instance of "Iterable[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/websockets/src/websockets/asyncio/server.py:951:12 - error: Unnecessary isinstance call; "bool" is never an instance of "Awaitable[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/websockets/src/websockets/asyncio/server.py:951:12 - error: Unnecessary isinstance call; "bool" is never an instance of "Awaitable[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/websockets/src/websockets/legacy/auth.py:162:14 - error: Unnecessary isinstance call; "Credentials | Iterable[Credentials]" is always an instance of "Iterable[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/websockets/src/websockets/legacy/auth.py:162:14 - error: Unnecessary isinstance call; "Credentials | Iterable[Credentials]" is always an instance of "Iterable[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/websockets/src/websockets/legacy/protocol.py:678:14 - error: Unnecessary isinstance call; "AsyncIterable[Data]" is always an instance of "AsyncIterable[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/websockets/src/websockets/legacy/protocol.py:678:14 - error: Unnecessary isinstance call; "AsyncIterable[Data]" is always an instance of "AsyncIterable[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/websockets/src/websockets/legacy/server.py:361:16 - error: Unnecessary isinstance call; "Awaitable[HTTPResponse | None]" is always an instance of "Awaitable[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/websockets/src/websockets/legacy/server.py:361:16 - error: Unnecessary isinstance call; "Awaitable[HTTPResponse | None]" is always an instance of "Awaitable[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/websockets/src/websockets/legacy/server.py:586:12 - error: Unnecessary isinstance call; "Coroutine[Any, Any, HTTPResponse | None]" is always an instance of "Awaitable[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/websockets/src/websockets/legacy/server.py:586:12 - error: Unnecessary isinstance call; "Coroutine[Any, Any, HTTPResponse | None]" is always an instance of "Awaitable[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/websockets/src/websockets/sync/connection.py:321:14 - error: Unnecessary isinstance call; "Iterable[Data]" is always an instance of "Iterable[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/websockets/src/websockets/sync/connection.py:321:14 - error: Unnecessary isinstance call; "Iterable[Data]" is always an instance of "Iterable[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/websockets/src/websockets/sync/server.py:668:14 - error: Unnecessary isinstance call; "tuple[str, str] | Iterable[tuple[str, str]]" is always an instance of "Iterable[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/websockets/src/websockets/sync/server.py:668:14 - error: Unnecessary isinstance call; "tuple[str, str] | Iterable[tuple[str, str]]" is always an instance of "Iterable[object]" (reportUnnecessaryIsInstance)
scikit-learn (https://github.com/scikit-learn/scikit-learn)
- /tmp/mypy_primer/projects/scikit-learn/sklearn/datasets/_samples_generator.py:1078:29 - error: Argument type is partially unknown
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/datasets/_samples_generator.py:1078:25 - error: No overloads for "sum" match the provided arguments (reportCallIssue)
- Argument corresponds to parameter "iterable" in function "sum"
- Argument type is "<subclass of <subclass of int and Integral> and Iterable> | <subclass of int and Iterable> | list[int] | Unknown" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/datasets/_samples_generator.py:1078:29 - error: Argument of type "<subclass of <subclass of int and Integral> and Iterable[object]> | <subclass of int and Iterable[object]> | list[int] | Unknown" cannot be assigned to parameter "iterable" of type "Iterable[_SupportsSumNoDefaultT@sum]" in function "sum"
+ Type "<subclass of <subclass of int and Integral> and Iterable[object]> | <subclass of int and Iterable[object]> | list[int] | Unknown" is not assignable to type "Iterable[_SupportsSumNoDefaultT@sum]"
+ "<subclass of <subclass of int and Integral> and Iterable[object]>" is not assignable to "Iterable[_SupportsSumNoDefaultT@sum]"
+ Type parameter "_T_co@Iterable" is covariant, but "object" is not a subtype of "_SupportsSumNoDefaultT@sum"
+ Type "object" is not assignable to type "_SupportsSumWithNoDefaultGiven"
+ "object" is incompatible with protocol "_SupportsSumWithNoDefaultGiven" (reportArgumentType)
- /tmp/mypy_primer/projects/scikit-learn/sklearn/datasets/_samples_generator.py:1079:29 - error: Argument type is partially unknown
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/datasets/_samples_generator.py:1079:25 - error: No overloads for "sum" match the provided arguments (reportCallIssue)
- Argument corresponds to parameter "iterable" in function "sum"
- Argument type is "<subclass of <subclass of int and Integral> and Iterable> | <subclass of int and Iterable> | list[int] | Unknown" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/datasets/_samples_generator.py:1079:29 - error: Argument of type "<subclass of <subclass of int and Integral> and Iterable[object]> | <subclass of int and Iterable[object]> | list[int] | Unknown" cannot be assigned to parameter "iterable" of type "Iterable[_SupportsSumNoDefaultT@sum]" in function "sum"
+ Type "<subclass of <subclass of int and Integral> and Iterable[object]> | <subclass of int and Iterable[object]> | list[int] | Unknown" is not assignable to type "Iterable[_SupportsSumNoDefaultT@sum]"
+ "<subclass of <subclass of int and Integral> and Iterable[object]>" is not assignable to "Iterable[_SupportsSumNoDefaultT@sum]"
+ Type parameter "_T_co@Iterable" is covariant, but "object" is not a subtype of "_SupportsSumNoDefaultT@sum"
+ Type "object" is not assignable to type "_SupportsSumWithNoDefaultGiven"
+ "object" is incompatible with protocol "_SupportsSumWithNoDefaultGiven" (reportArgumentType)
- Argument type is "<subclass of <subclass of int and Integral> and Iterable> | <subclass of int and Iterable> | list[int] | Unknown" (reportUnknownArgumentType)
+ Argument type is "<subclass of <subclass of int and Integral> and Iterable[object]> | <subclass of int and Iterable[object]> | list[int] | Unknown" (reportUnknownArgumentType)
- 208228 errors, 0 warnings, 0 notes
+ 208230 errors, 0 warnings, 0 notes
bidict (https://github.com/jab/bidict)
- Argument type is "Mapping[Unknown, Unknown]" (reportUnknownArgumentType)
+ Argument type is "Mapping[Unknown, object]" (reportUnknownArgumentType)
- Argument type is "zip[tuple[tuple[KT@BidictBase, VT@BidictBase], tuple[Unknown, Unknown]]]" (reportUnknownArgumentType)
+ Argument type is "zip[tuple[tuple[KT@BidictBase, VT@BidictBase], tuple[Unknown, object]]]" (reportUnknownArgumentType)
- Argument type is "ItemsView[Unknown, Unknown]" (reportUnknownArgumentType)
+ Argument type is "ItemsView[Unknown, object]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/bidict/bidict/_base.py:423:16 - error: Unnecessary isinstance call; "MapOrItems[KT@BidictBase, VT@BidictBase]" is always an instance of "Iterable[Unknown] | Maplike[Unknown, Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/bidict/bidict/_base.py:423:16 - error: Unnecessary isinstance call; "MapOrItems[KT@BidictBase, VT@BidictBase]" is always an instance of "Iterable[object] | Maplike[Unknown, object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/bidict/bidict/_base.py:500:16 - error: Unnecessary isinstance call; "Mapping[KT@BidictBase, VT@BidictBase]" is always an instance of "Mapping[Unknown, Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/bidict/bidict/_base.py:500:16 - error: Unnecessary isinstance call; "Mapping[KT@BidictBase, VT@BidictBase]" is always an instance of "Mapping[Unknown, object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/bidict/bidict/_base.py:508:16 - error: Unnecessary isinstance call; "Mapping[KT@BidictBase, VT@BidictBase]" is always an instance of "Mapping[Unknown, Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/bidict/bidict/_base.py:508:16 - error: Unnecessary isinstance call; "Mapping[KT@BidictBase, VT@BidictBase]" is always an instance of "Mapping[Unknown, object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/bidict/bidict/_base.py:543:12 - error: Return type, "Iterator[Unknown]", is partially unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/bidict/bidict/_base.py:543:12 - error: Type "Iterator[object]" is not assignable to return type "Iterator[KT@_fwdm_reversed]"
+ "Iterator[object]" is not assignable to "Iterator[KT@_fwdm_reversed]"
+ Type parameter "_T_co@Iterator" is covariant, but "object" is not a subtype of "KT@_fwdm_reversed"
+ Type "object" is not assignable to type "KT@_fwdm_reversed" (reportReturnType)
pydantic (https://github.com/pydantic/pydantic)
- /tmp/mypy_primer/projects/pydantic/pydantic/json_schema.py:1472:17 - error: Result of call expression is of type "Unknown | None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+ /tmp/mypy_primer/projects/pydantic/pydantic/json_schema.py:1466:33 - error: Type of "__get__" is partially unknown
+ Type of "__get__" is "Overload[(instance: None, owner: type, /) -> ((...) -> object), (instance: _T@__get__, owner: type[_T@__get__] | None = None, /) -> ((...) -> object)] | Overload[(instance: Unknown, owner: type[Unknown] | None = None, /) -> ((...) -> object), (instance: None, owner: type[Unknown], /) -> ((...) -> object)]" (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/pydantic/pydantic/json_schema.py:1466:33 - error: Type "(...) -> object" is not assignable to declared type "JsonSchemaExtraCallable | JsonDict | None"
+ Type "(...) -> object" is not assignable to type "JsonSchemaExtraCallable | JsonDict | None"
+ "function" is not assignable to "Dict[str, JsonValue]"
+ Type "(...) -> object" is not assignable to type "(JsonDict) -> None"
+ Function return type "object" is incompatible with type "None"
+ "object" is not assignable to "None"
+ Type "(...) -> object" is not assignable to type "(JsonDict, Type[Any]) -> None"
+ Function return type "object" is incompatible with type "None"
+ "object" is not assignable to "None"
+ ... (reportAssignmentType)
- /tmp/mypy_primer/projects/pydantic/pydantic/json_schema.py:1474:17 - error: Result of call expression is of type "Unknown | None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
- /tmp/mypy_primer/projects/pydantic/pydantic/validate_call_decorator.py:54:25 - error: Argument type is partially unknown
- Argument corresponds to parameter "o" in function "__init__"
- Argument type is "staticmethod[..., Unknown]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/pydantic/pydantic/_internal/_utils.py:258:14 - error: Unnecessary isinstance call; "AbstractSetIntStr" is always an instance of "AbstractSet[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/pydantic/pydantic/_internal/_utils.py:258:14 - error: Unnecessary isinstance call; "AbstractSetIntStr" is always an instance of "AbstractSet[object]" (reportUnnecessaryIsInstance)
- 6214 errors, 0 warnings, 0 notes
+ 6213 errors, 0 warnings, 0 notes
scrapy (https://github.com/scrapy/scrapy)
+ /tmp/mypy_primer/projects/scrapy/scrapy/spiders/crawl.py:182:53 - error: Argument of type "List[object] | object | Any | tuple[()]" cannot be assigned to parameter "results" of type "Iterable[Any]" in function "process_results"
+ Type "List[object] | object | Any | tuple[()]" is not assignable to type "Iterable[Any]"
+ "object" is incompatible with protocol "Iterable[Any]"
+ "__iter__" is not present (reportArgumentType)
- /tmp/mypy_primer/projects/scrapy/scrapy/spiders/crawl.py:179:17 - error: Type of "cb_res" is partially unknown
- Type of "cb_res" is "List[Unknown]" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/scrapy/scrapy/spiders/crawl.py:179:49 - error: Argument type is partially unknown
- Argument corresponds to parameter "result" in function "collect_asyncgen"
- Argument type is "AsyncIterable[Unknown]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/scrapy/scrapy/spiders/crawl.py:181:17 - error: Type of "cb_res" is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/scrapy/scrapy/spiders/crawl.py:182:53 - error: Argument type is partially unknown
- Argument corresponds to parameter "results" in function "process_results"
- Argument type is "List[Unknown] | Unknown | Any | tuple[()]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/scrapy/scrapy/utils/signal.py:39:15 - error: Argument type is partially unknown
- Argument corresponds to parameter "iterable" in function "__new__"
- Argument type is "Sequence[Unknown] | tuple[()]" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/scrapy/scrapy/utils/signal.py:58:16 - error: "object" is not iterable
+ "__iter__" method not defined (reportGeneralTypeIssues)
+ /tmp/mypy_primer/projects/scrapy/scrapy/utils/signal.py:58:16 - error: "tuple[object, ...] | tuple[Any, ...]" is not a valid exception class (reportGeneralTypeIssues)
- 28442 errors, 0 warnings, 0 notes
+ 28440 errors, 0 warnings, 0 notes
core (https://github.com/home-assistant/core)
- /tmp/mypy_primer/projects/core/homeassistant/components/automation/config.py:226:8 - error: Unnecessary isinstance call; "dict[str, Any]" is always an instance of "Mapping[Unknown, Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/core/homeassistant/components/automation/config.py:226:8 - error: Unnecessary isinstance call; "dict[str, Any]" is always an instance of "Mapping[Unknown, object]" (reportUnnecessaryIsInstance)
... (truncated 532 lines) ...```
Thanks for working on this. I tried working on it for a while, but I got stuck on trying to understand the code. I think this would be one of the most valuable features of basedpyright.
i ran into a difficult to solve edge case that led to me abandoning this change for now (see the failing test case) but i may give it another go in the future
https://github.com/DetachHead/basedpyright/pull/885
You should pull from main here before looking at the diff there.
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:224:5 - warning: Return type is unknown (reportUnknownParameterType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:224:5 - warning: Return type, "object | Unknown", is partially unknown (reportUnknownParameterType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:238:20 - warning: Return type is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:253:5 - warning: Return type is unknown (reportUnknownParameterType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:253:5 - warning: Return type, "object | Unknown", is partially unknown (reportUnknownParameterType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:267:12 - warning: Return type is unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:267:12 - warning: Return type, "object | Unknown", is partially unknown (reportUnknownVariableType)
- /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 unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2219:37 - error: Operator "<=" not supported for types "object" and "int" (reportOperatorIssue)
- /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 unknown (reportUnknownMemberType)
- /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:2221:18 - error: Operator ">=" not supported for types "object" and "int" (reportOperatorIssue)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2224:17 - warning: Type of "start" is unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2224:17 - warning: Type of "start" is partially unknown
+ Type of "start" is "Unknown | Any" (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2226:36 - error: Operator ">=" not supported for types "object" and "int" (reportOperatorIssue)
- /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 unknown
- 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 unknown (reportUnknownMemberType)
- /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 unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2228:18 - error: Operator "<=" not supported for types "object" and "int" (reportOperatorIssue)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2231:17 - warning: Type of "stop" is unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2231:17 - warning: Type of "stop" is partially unknown
+ Type of "stop" is "Unknown | Any" (reportUnknownVariableType)
- /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 unknown
- Argument corresponds to parameter "i" in function "_get_by_index" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2773:9 - warning: Type of "_target" is partially unknown
- Type of "_target" is "Sequence[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2775:9 - warning: Return type is unknown (reportUnknownParameterType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2775:9 - error: Method "__getitem__" overrides class "Sequence" in an incompatible manner
+ Return type mismatch: base method returns type "Sequence[Unknown]", override returns type "object"
+ "object" is not assignable to "Sequence[Unknown]" (reportIncompatibleMethodOverride)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2776:16 - warning: Type of "_target" is partially unknown
- Type of "_target" is "Sequence[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2776:16 - warning: Return type is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2779:20 - warning: Type of "_target" is partially unknown
- Type of "_target" is "Sequence[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2779:20 - warning: Argument type is partially unknown
- Argument corresponds to parameter "obj" in function "len"
- Argument type is "Sequence[Unknown]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2782:62 - warning: Type of "_target" is partially unknown
- Type of "_target" is "Sequence[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2782:62 - warning: Argument type is partially unknown
- Argument corresponds to parameter "obj" in function "repr"
- Argument type is "Sequence[Unknown]" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:4251:12 - error: "object" is not iterable
+ "__iter__" method not defined (reportGeneralTypeIssues)
- 24 errors, 2742 warnings, 0 notes
+ 30 errors, 2721 warnings, 0 notes
mkosi (https://github.com/systemd/mkosi)
+ /tmp/mypy_primer/projects/mkosi/mkosi/config.py:4892:20 - error: No overloads for "fspath" match the provided arguments (reportCallIssue)
- /tmp/mypy_primer/projects/mkosi/mkosi/config.py:4892:30 - warning: Argument type is partially unknown
- Argument corresponds to parameter "path" in function "fspath"
- Argument type is "PathLike[Unknown]" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/mkosi/mkosi/config.py:4892:30 - error: Argument of type "PathLike[object]" cannot be assigned to parameter "path" of type "PathLike[AnyStr@fspath]" in function "fspath"
+ "PathLike[object]" is not assignable to "PathLike[AnyStr@fspath]"
+ Type parameter "AnyStr_co@PathLike" is covariant, but "object" is not a subtype of "AnyStr@fspath"
+ Type "object" is not assignable to constrained type variable "AnyStr" (reportArgumentType)
- 24 errors, 1593 warnings, 0 notes
+ 26 errors, 1592 warnings, 0 notes
yarl (https://github.com/aio-libs/yarl)
- /tmp/mypy_primer/projects/yarl/yarl/_query.py:104:8 - warning: Unnecessary isinstance call; "dict[str, QueryVariable] | Mapping[str, QueryVariable]" is always an instance of "Mapping[Unknown, Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/yarl/yarl/_query.py:104:8 - warning: Unnecessary isinstance call; "dict[str, QueryVariable] | Mapping[str, QueryVariable]" is always an instance of "Mapping[Unknown, object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/yarl/yarl/_url.py:1228:14 - warning: Unnecessary isinstance call; "Never" is always an instance of "Sequence[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/yarl/yarl/_url.py:1228:14 - warning: Unnecessary isinstance call; "Never" is always an instance of "Sequence[object]" (reportUnnecessaryIsInstance)
pytest (https://github.com/pytest-dev/pytest)
- /tmp/mypy_primer/projects/pytest/src/_pytest/reports.py:205:50 - warning: Argument type is partially unknown
- Argument corresponds to parameter "obj" in function "len"
- Argument type is "Sequence[Unknown]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/reports.py:206:13 - warning: Type of "word" is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/reports.py:206:19 - warning: Type of "markup" is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/reports.py:208:24 - warning: Return type, "tuple[str, Mapping[Unknown, Unknown]]", is partially unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/pytest/src/_pytest/reports.py:208:24 - warning: Return type, "tuple[str, Mapping[Unknown, object]]", is partially unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/pytest/src/_pytest/reports.py:208:30 - error: Type "tuple[str, Mapping[Unknown, object]]" is not assignable to return type "tuple[str, Mapping[str, bool]]"
+ "Mapping[Unknown, object]" is not assignable to "Mapping[str, bool]"
+ Type parameter "_VT_co@Mapping" is covariant, but "object" is not a subtype of "bool"
+ "object" is not assignable to "bool" (reportReturnType)
- Argument type is "Mapping[Unknown, Unknown]" (reportUnknownArgumentType)
+ Argument type is "Mapping[Unknown, object]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/_code/code.py:741:21 - warning: Argument type is partially unknown
- Argument corresponds to parameter "exc_group" in function "_group_contains"
- Argument type is "BaseExceptionGroup[Unknown] | BaseExceptionGroup[BaseException]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/_code/code.py:750:51 - warning: Argument type is partially unknown
- Argument corresponds to parameter "exc" in function "_stringify_exception"
- Argument type is "BaseExceptionGroup[Unknown] | BaseExceptionGroup[BaseException] | BaseException" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/_code/code.py:789:37 - warning: Type of "value" is partially unknown
- Type of "value" is "BaseExceptionGroup[Unknown]*" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/_code/code.py:789:37 - warning: Argument type is partially unknown
- Argument corresponds to parameter "exc_group" in function "_group_contains"
- Argument type is "BaseExceptionGroup[Unknown]*" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/config/__init__.py:1673:40 - warning: Argument type is partially unknown
- Argument corresponds to parameter "args" in function "__init__"
- Argument type is "PathLike[Unknown]" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/pytest/src/_pytest/config/__init__.py:1673:40 - error: Argument of type "PathLike[object]" cannot be assigned to parameter "args" of type "StrPath" in function "__new__"
+ Type "PathLike[object]" is not assignable to type "StrPath"
+ "PathLike[object]" is not assignable to "str"
+ "PathLike[object]" is not assignable to "PathLike[str]"
+ Type parameter "AnyStr_co@PathLike" is covariant, but "object" is not a subtype of "str"
+ "object" is not assignable to "str" (reportArgumentType)
+ /tmp/mypy_primer/projects/pytest/src/_pytest/config/__init__.py:1673:40 - error: Argument of type "PathLike[object]" cannot be assigned to parameter "args" of type "StrPath" in function "__init__"
+ Type "PathLike[object]" is not assignable to type "StrPath"
+ "PathLike[object]" is not assignable to "str"
+ "PathLike[object]" is not assignable to "PathLike[str]"
+ Type parameter "AnyStr_co@PathLike" is covariant, but "object" is not a subtype of "str"
+ "object" is not assignable to "str" (reportArgumentType)
- 1162 errors, 17377 warnings, 0 notes
+ 1165 errors, 17369 warnings, 0 notes
steam.py (https://github.com/Gobot1234/steam.py)
- /tmp/mypy_primer/projects/steam.py/steam/badge.py:57:82 - error: Type of "app" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/steam.py/steam/trade.py:550:34 - error: Type of "sending" is partially unknown
- Type of "sending" is "Sequence[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/steam.py/steam/trade.py:550:70 - error: Type of "receiving" is partially unknown
- Type of "receiving" is "Sequence[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/steam.py/steam/ext/commands/cog.py:131:38 - error: Type of "children" is partially unknown
- Type of "children" is "Sequence[Command[Unknown, ..., Any]]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/steam.py/steam/ext/commands/cog.py:135:54 - warning: Unnecessary "# type: ignore" comment (reportUnnecessaryTypeIgnoreComment)
- 8475 errors, 97 warnings, 0 notes
+ 8471 errors, 96 warnings, 0 notes
Expression (https://github.com/cognitedata/Expression)
- Type of "one" is "Result[Unknown, Unknown]" (reportUnknownMemberType)
+ Type of "one" is "Result[object, Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/Expression/tests/test_result.py:480:34 - error: Type of "x" is unknown (reportUnknownVariableType)
- Type of "_" is "Result[Unknown, Unknown]" (reportUnknownVariableType)
+ Type of "_" is "Result[object, Unknown]" (reportUnknownVariableType)
- Type of "_" is "Result[Unknown, Unknown]" (reportUnknownVariableType)
+ Type of "_" is "Result[object, Unknown]" (reportUnknownVariableType)
- 349 errors, 11 warnings, 0 notes
+ 348 errors, 11 warnings, 0 notes
openlibrary (https://github.com/internetarchive/openlibrary)
- /tmp/mypy_primer/projects/openlibrary/openlibrary/catalog/marc/tests/test_parse.py:119:28 - error: Argument of type "Iterable[Unknown]" cannot be assigned to parameter "obj" of type "Sized" in function "len"
+ /tmp/mypy_primer/projects/openlibrary/openlibrary/catalog/marc/tests/test_parse.py:119:28 - error: Argument of type "Iterable[object]" cannot be assigned to parameter "obj" of type "Sized" in function "len"
- "Iterable[Unknown]" is incompatible with protocol "Sized"
+ "Iterable[object]" is incompatible with protocol "Sized"
- /tmp/mypy_primer/projects/openlibrary/openlibrary/catalog/marc/tests/test_parse.py:148:28 - error: Argument of type "Iterable[Unknown]" cannot be assigned to parameter "obj" of type "Sized" in function "len"
+ /tmp/mypy_primer/projects/openlibrary/openlibrary/catalog/marc/tests/test_parse.py:148:28 - error: Argument of type "Iterable[object]" cannot be assigned to parameter "obj" of type "Sized" in function "len"
- "Iterable[Unknown]" is incompatible with protocol "Sized"
+ "Iterable[object]" is incompatible with protocol "Sized"
- Argument type is "set[Unknown]" (reportUnknownArgumentType)
+ Argument type is "set[Unknown] | set[object]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/openlibrary/openlibrary/solr/updater/abstract.py:53:68 - warning: Argument type is partially unknown
- Argument corresponds to parameter "o" in function "__init__"
- Argument type is "Any | Iterable[Unknown]" (reportUnknownArgumentType)
- 1919 errors, 33663 warnings, 0 notes
+ 1919 errors, 33662 warnings, 0 notes
ibis (https://github.com/ibis-project/ibis)
- /tmp/mypy_primer/projects/ibis/ibis/util.py:650:13 - warning: Type of "hashable_obj" is partially unknown
- Type of "hashable_obj" is "tuple[Unknown, ...]*" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/ibis/ibis/util.py:650:34 - warning: Argument type is partially unknown
- Argument corresponds to parameter "iterable" in function "__new__"
- Argument type is "Sequence[Unknown]*" (reportUnknownArgumentType)
- Type of "hashable_obj" is "tuple[tuple[Unknown, Unknown], ...]" (reportUnknownVariableType)
+ Type of "hashable_obj" is "tuple[tuple[Unknown, object], ...]" (reportUnknownVariableType)
- Argument type is "ItemsView[Unknown, Unknown]" (reportUnknownArgumentType)
+ Argument type is "ItemsView[Unknown, object]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/ibis/ibis/util.py:654:13 - warning: Type of "hashable_obj" is partially unknown
- Type of "hashable_obj" is "frozenset[Unknown]*" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/ibis/ibis/util.py:654:38 - warning: Argument type is partially unknown
- Argument corresponds to parameter "iterable" in function "__new__"
- Argument type is "AbstractSet[Unknown]*" (reportUnknownArgumentType)
- Argument type is "tuple[type[Sequence[Unknown]]* | type[Mapping[Unknown, Unknown]]* | type[AbstractSet[Unknown]]* | type[object]*, tuple[Unknown, ...]* | tuple[tuple[Unknown, Unknown], ...] | frozenset[Unknown]* | int*]" (reportUnknownArgumentType)
+ Argument type is "tuple[type[Sequence[object]]* | type[Mapping[Unknown, object]]* | type[AbstractSet[object]]* | type[object]*, tuple[object, ...]* | tuple[tuple[Unknown, object], ...] | frozenset[object]* | int*]" (reportUnknownArgumentType)
- Argument type is "Sequence[Unknown]* | Mapping[Unknown, Unknown]* | AbstractSet[Unknown]* | object*" (reportUnknownArgumentType)
+ Argument type is "Sequence[object]* | Mapping[Unknown, object]* | AbstractSet[object]* | object*" (reportUnknownArgumentType)
- Type of "path" is "str | Path | Unknown" (reportUnknownVariableType)
+ Type of "path" is "str | Path | object | Unknown" (reportUnknownVariableType)
- Type of "items" is "(() -> dict_items[str, str | Path]) | Unknown | (() -> ItemsView[str, str | Path]) | (() -> ItemsView[Unknown, Unknown])" (reportUnknownMemberType)
+ Type of "items" is "(() -> dict_items[str, str | Path]) | Unknown | (() -> ItemsView[str, str | Path]) | (() -> ItemsView[Unknown, object])" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/__init__.py:443:9 - warning: Return type, "tuple[type[Value[Unknown, Unknown]], ...]", is partially unknown (reportUnknownParameterType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/__init__.py:444:16 - warning: Return type, "tuple[type[Value[Unknown, Unknown]], ...]", is partially unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/__init__.py:444:22 - warning: Argument type is partially unknown
- Argument corresponds to parameter "iterable" in function "__new__"
- Argument type is "Generator[type[Value[Unknown, Unknown]], None, None]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/__init__.py:455:9 - warning: Type of "op_classes" is partially unknown
- Type of "op_classes" is "tuple[type[Value[Unknown, Unknown]], ...]" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/__init__.py:455:22 - warning: Type of "_get_operations" is partially unknown
- Type of "_get_operations" is "_lru_cache_wrapper[tuple[type[Value[Unknown, Unknown]], ...]]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:379:13 - warning: Type of "repl" is partially unknown
- Type of "repl" is "Unknown | None" (reportUnknownVariableType)
- Type of "get" is "Overload[(key: Unknown, /) -> (Unknown | None), (key: Unknown, /, default: Unknown | _T@get) -> (Unknown | _T@get)]" (reportUnknownMemberType)
+ Type of "get" is "Overload[(key: Unknown, /) -> (object | None), (key: Unknown, /, default: object | _T@get) -> (object | _T@get)]" (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:381:29 - error: Cannot access attribute "value" for class "object"
+ Attribute "value" is unknown (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:891:8 - warning: Type of "dtype" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:891:17 - error: Cannot access attribute "unit" for class "DataType"
+ Attribute "unit" is unknown (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:894:18 - warning: Type of "dtype" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:894:27 - error: Cannot access attribute "unit" for class "DataType"
+ Attribute "unit" is unknown (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:1391:12 - warning: Type of "step" is partially unknown
- Type of "step" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:1410:12 - warning: Type of "step" is partially unknown
- Type of "step" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:1411:12 - warning: Type of "step" is partially unknown
- Type of "step" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:1411:12 - warning: Type of "dtype" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:1411:26 - error: Cannot access attribute "unit" for class "DataType"
+ Attribute "unit" is unknown (reportAttributeAccessIssue)
- Type of "mapping" is "Mapping[Unknown, Unknown]" (reportUnknownVariableType)
+ Type of "mapping" is "Mapping[Unknown, object]" (reportUnknownVariableType)
- Type of "replacements" is "Mapping[Unknown, Unknown]" (reportUnknownMemberType)
+ Type of "replacements" is "Mapping[Unknown, object]" (reportUnknownMemberType)
- Type of "value" is "Unknown | None" (reportUnknownVariableType)
+ Type of "value" is "Unknown | object | None" (reportUnknownVariableType)
- Type of "get" is "Overload[(key: Unknown, /) -> (Unknown | None), (key: Unknown, /, default: Unknown | _T@get) -> (Unknown | _T@get)] | Overload[(key: Unknown, /) -> (Unknown | None), (key: Unknown, default: Unknown, /) -> Unknown, (key: Unknown, default: _T@get, /) -> (Unknown | _T@get)]" (reportUnknownMemberType)
+ Type of "get" is "Overload[(key: Unknown, /) -> (object | None), (key: Unknown, /, default: object | _T@get) -> (object | _T@get)] | Overload[(key: Unknown, /) -> (Unknown | None), (key: Unknown, default: Unknown, /) -> Unknown, (key: Unknown, default: _T@get, /) -> (Unknown | _T@get)]" (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/ibis/ibis/backends/sql/rewrites.py:168:38 - error: Argument of type "tuple[Field, Unknown | object]" cannot be assigned to parameter "arg" of type "VarTuple[Value[Unknown, Any]]" in function "__init__"
+ Type "Unknown | object" is not assignable to type "Value[Unknown, Any]"
+ "object" is not assignable to "Value[Unknown, Any]" (reportArgumentType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/rewrites.py:481:27 - warning: Type of "nth" is partially unknown
- Type of "nth" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/rewrites.py:481:50 - warning: Type of "nth" is partially unknown
- Type of "nth" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/rewrites.py:481:50 - warning: Type of "dtype" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/rewrites.py:481:50 - warning: Argument type is unknown
- Argument corresponds to parameter "dtype" in function "__init__" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/base.py:1000:61 - warning: Type of "length" is partially unknown
- Type of "length" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/clickhouse.py:707:22 - warning: Type of "step" is partially unknown
- Type of "step" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/duckdb.py:188:21 - warning: Type of "start" is partially unknown
- Type of "start" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/duckdb.py:196:24 - warning: Type of "stop" is partially unknown
- Type of "stop" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/flink.py:342:9 - warning: Type of "idx" is partially unknown
- Type of "idx" is "Literal[Unknown]" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/flink.py:342:15 - warning: Type of "index" is partially unknown
- Type of "index" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/flink.py:344:12 - warning: Type of "dtype" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/flink.py:344:12 - warning: Type of "is_integer" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/flink.py:347:20 - warning: Type of "dtype" is unknown (reportUnknownMemberType)
... (truncated 137 lines) ...
starlette (https://github.com/encode/starlette)
- /tmp/mypy_primer/projects/starlette/starlette/_utils.py:79:63 - warning: Type of "exceptions" is partially unknown
- Type of "exceptions" is "tuple[Unknown | BaseExceptionGroup[Unknown], ...]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/starlette/starlette/_utils.py:79:63 - warning: Argument type is partially unknown
- Argument corresponds to parameter "obj" in function "len"
- Argument type is "tuple[Unknown | BaseExceptionGroup[Unknown], ...]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/starlette/starlette/_utils.py:80:17 - warning: Type of "exc" is partially unknown
- Type of "exc" is "Unknown | BaseExceptionGroup[Unknown]" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/starlette/starlette/_utils.py:80:23 - warning: Type of "exceptions" is partially unknown
- Type of "exceptions" is "tuple[Unknown | BaseExceptionGroup[Unknown]]" (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/starlette/starlette/testclient.py:336:39 - error: Argument of type "None" cannot be assigned to parameter "arg" of type "Never" in function "send"
+ Type "None" is not assignable to type "Never" (reportArgumentType)
- /tmp/mypy_primer/projects/starlette/starlette/testclient.py:336:21 - warning: Type of "chunk" is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/starlette/starlette/testclient.py:336:29 - warning: Type of "send" is partially unknown
- Type of "send" is "(arg: Unknown, /) -> Unknown" (reportUnknownMemberType)
- 206 errors, 4234 warnings, 0 notes
+ 207 errors, 4228 warnings, 0 notes
sympy (https://github.com/sympy/sympy)
- /tmp/mypy_primer/projects/sympy/sympy/combinatorics/permutations.py:1662:20 - error: Argument of type "Iterable[Unknown]" cannot be assigned to parameter "obj" of type "Sized" in function "len"
+ /tmp/mypy_primer/projects/sympy/sympy/combinatorics/permutations.py:1662:20 - error: Argument of type "Iterable[object]" cannot be assigned to parameter "obj" of type "Sized" in function "len"
- "Iterable[Unknown]" is incompatible with protocol "Sized"
+ "Iterable[object]" is incompatible with protocol "Sized"
- /tmp/mypy_primer/projects/sympy/sympy/combinatorics/permutations.py:1664:60 - warning: Argument type is partially unknown
- Argument corresponds to parameter "args" in function "format"
- Argument type is "Iterable[Unknown]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/sympy/sympy/combinatorics/permutations.py:1665:21 - error: "__getitem__" method not defined on type "Iterable[Unknown]" (reportIndexIssue)
+ /tmp/mypy_primer/projects/sympy/sympy/combinatorics/permutations.py:1665:21 - error: "__getitem__" method not defined on type "Iterable[object]" (reportIndexIssue)
- /tmp/mypy_primer/projects/sympy/sympy/core/basic.py:411:18 - warning: Unnecessary isinstance call; "Never" is always an instance of "frozenset[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/sympy/sympy/core/basic.py:411:18 - warning: Unnecessary isinstance call; "Never" is always an instance of "frozenset[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/sympy/sympy/core/basic.py:412:34 - warning: Unnecessary isinstance call; "Never" is always an instance of "frozenset[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/sympy/sympy/core/basic.py:412:34 - warning: Unnecessary isinstance call; "Never" is always an instance of "frozenset[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/sympy/sympy/core/basic.py:413:28 - warning: Argument type is unknown
- Argument corresponds to parameter "args" in function "__new__" (reportUnknownArgumentType)
- Type of "sequence" is "ItemsView[Unknown, Unknown] | Unknown" (reportUnknownVariableType)
+ Type of "sequence" is "ItemsView[Unknown, object] | Unknown" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/sympy/sympy/core/basic.py:1106:51 - warning: Argument type is unknown
- Argument corresponds to parameter "new" in function "sympify_new" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/sympy/sympy/core/basic.py:1106:64 - warning: Type of "s2" is unknown (reportUnknownVariableType)
... (truncated 1813 lines) ...```
the primer identified this issue with constrained typevars:
from typing import Literal
class Foo[T: (int, str)]:
...
def asdf(value: object):
if isinstance(value, Foo):
reveal_type(value) # `Foo[object]`, should be `Foo[int] | Foo[str]`
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:224:5 - warning: Return type is unknown (reportUnknownParameterType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:224:5 - warning: Return type, "object | Unknown", is partially unknown (reportUnknownParameterType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:238:20 - warning: Return type is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:253:5 - warning: Return type is unknown (reportUnknownParameterType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:253:5 - warning: Return type, "object | Unknown", is partially unknown (reportUnknownParameterType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:267:12 - warning: Return type is unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:267:12 - warning: Return type, "object | Unknown", is partially unknown (reportUnknownVariableType)
- /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 unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2219:37 - error: Operator "<=" not supported for types "object" and "int" (reportOperatorIssue)
- /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 unknown (reportUnknownMemberType)
- /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:2221:18 - error: Operator ">=" not supported for types "object" and "int" (reportOperatorIssue)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2224:17 - warning: Type of "start" is unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2224:17 - warning: Type of "start" is partially unknown
+ Type of "start" is "Unknown | Any" (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2226:36 - error: Operator ">=" not supported for types "object" and "int" (reportOperatorIssue)
- /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 unknown
- 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 unknown (reportUnknownMemberType)
- /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 unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2228:18 - error: Operator "<=" not supported for types "object" and "int" (reportOperatorIssue)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2231:17 - warning: Type of "stop" is unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2231:17 - warning: Type of "stop" is partially unknown
+ Type of "stop" is "Unknown | Any" (reportUnknownVariableType)
- /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 unknown
- Argument corresponds to parameter "i" in function "_get_by_index" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2773:9 - warning: Type of "_target" is partially unknown
- Type of "_target" is "Sequence[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2775:9 - warning: Return type is unknown (reportUnknownParameterType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2775:9 - error: Method "__getitem__" overrides class "Sequence" in an incompatible manner
+ Return type mismatch: base method returns type "Sequence[Unknown]", override returns type "object"
+ "object" is not assignable to "Sequence[Unknown]" (reportIncompatibleMethodOverride)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2776:16 - warning: Type of "_target" is partially unknown
- Type of "_target" is "Sequence[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2776:16 - warning: Return type is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2779:20 - warning: Type of "_target" is partially unknown
- Type of "_target" is "Sequence[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2779:20 - warning: Argument type is partially unknown
- Argument corresponds to parameter "obj" in function "len"
- Argument type is "Sequence[Unknown]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2782:62 - warning: Type of "_target" is partially unknown
- Type of "_target" is "Sequence[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2782:62 - warning: Argument type is partially unknown
- Argument corresponds to parameter "obj" in function "repr"
- Argument type is "Sequence[Unknown]" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:4251:12 - error: "object" is not iterable
+ "__iter__" method not defined (reportGeneralTypeIssues)
- 24 errors, 2742 warnings, 0 notes
+ 30 errors, 2721 warnings, 0 notes
Expression (https://github.com/cognitedata/Expression)
- Type of "one" is "Result[Unknown, Unknown]" (reportUnknownMemberType)
+ Type of "one" is "Result[object, Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/Expression/tests/test_result.py:480:34 - error: Type of "x" is unknown (reportUnknownVariableType)
- Type of "_" is "Result[Unknown, Unknown]" (reportUnknownVariableType)
+ Type of "_" is "Result[object, Unknown]" (reportUnknownVariableType)
- Type of "_" is "Result[Unknown, Unknown]" (reportUnknownVariableType)
+ Type of "_" is "Result[object, Unknown]" (reportUnknownVariableType)
- 349 errors, 11 warnings, 0 notes
+ 348 errors, 11 warnings, 0 notes
yarl (https://github.com/aio-libs/yarl)
- /tmp/mypy_primer/projects/yarl/yarl/_query.py:104:8 - warning: Unnecessary isinstance call; "dict[str, QueryVariable] | Mapping[str, QueryVariable]" is always an instance of "Mapping[Unknown, Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/yarl/yarl/_query.py:104:8 - warning: Unnecessary isinstance call; "dict[str, QueryVariable] | Mapping[str, QueryVariable]" is always an instance of "Mapping[Unknown, object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/yarl/yarl/_url.py:1232:14 - warning: Unnecessary isinstance call; "Never" is always an instance of "Sequence[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/yarl/yarl/_url.py:1232:14 - warning: Unnecessary isinstance call; "Never" is always an instance of "Sequence[object]" (reportUnnecessaryIsInstance)
pytest (https://github.com/pytest-dev/pytest)
+ /tmp/mypy_primer/projects/pytest/src/_pytest/pytester.py:1298:23 - error: Class overlaps "PathLike" unsafely and could produce a match at runtime
+ Attributes of "PathLike" have the same names as the protocol (reportGeneralTypeIssues)
- /tmp/mypy_primer/projects/pytest/src/_pytest/python.py:978:34 - warning: Type of "pattern" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/python.py:978:34 - warning: Argument type is unknown
- Argument corresponds to parameter "val" in function "ascii_escaped" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/reports.py:205:50 - warning: Argument type is partially unknown
- Argument corresponds to parameter "obj" in function "len"
- Argument type is "Sequence[Unknown]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/reports.py:206:13 - warning: Type of "word" is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/reports.py:206:19 - warning: Type of "markup" is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/reports.py:208:24 - warning: Return type, "tuple[str, Mapping[Unknown, Unknown]]", is partially unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/pytest/src/_pytest/reports.py:208:24 - warning: Return type, "tuple[str, Mapping[Unknown, object]]", is partially unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/pytest/src/_pytest/reports.py:208:30 - error: Type "tuple[str, Mapping[Unknown, object]]" is not assignable to return type "tuple[str, Mapping[str, bool]]"
+ "Mapping[Unknown, object]" is not assignable to "Mapping[str, bool]"
+ Type parameter "_VT_co@Mapping" is covariant, but "object" is not a subtype of "bool"
+ "object" is not assignable to "bool" (reportReturnType)
- Argument type is "Mapping[Unknown, Unknown]" (reportUnknownArgumentType)
+ Argument type is "Mapping[Unknown, object]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/_code/code.py:741:21 - warning: Argument type is partially unknown
- Argument corresponds to parameter "exc_group" in function "_group_contains"
- Argument type is "BaseExceptionGroup[Unknown] | BaseExceptionGroup[BaseException]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/_code/code.py:750:51 - warning: Argument type is partially unknown
- Argument corresponds to parameter "exc" in function "_stringify_exception"
- Argument type is "BaseExceptionGroup[Unknown] | BaseExceptionGroup[BaseException] | BaseException" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/_code/code.py:789:37 - warning: Type of "value" is partially unknown
- Type of "value" is "BaseExceptionGroup[Unknown]*" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/_code/code.py:789:37 - warning: Argument type is partially unknown
- Argument corresponds to parameter "exc_group" in function "_group_contains"
- Argument type is "BaseExceptionGroup[Unknown]*" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/pytest/src/_pytest/config/__init__.py:323:21 - error: Class overlaps "PathLike" unsafely and could produce a match at runtime
+ Attributes of "PathLike" have the same names as the protocol (reportGeneralTypeIssues)
- /tmp/mypy_primer/projects/pytest/src/_pytest/config/__init__.py:1673:40 - warning: Argument type is partially unknown
- Argument corresponds to parameter "args" in function "__init__"
- Argument type is "PathLike[Unknown]" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/pytest/src/_pytest/config/__init__.py:1673:40 - error: Argument of type "PathLike[str] | PathLike[bytes]" cannot be assigned to parameter "args" of type "StrPath" in function "__new__"
+ Type "PathLike[str] | PathLike[bytes]" is not assignable to type "StrPath"
+ Type "PathLike[bytes]" is not assignable to type "StrPath"
+ "PathLike[bytes]" is not assignable to "str"
+ "PathLike[bytes]" is not assignable to "PathLike[str]"
+ Type parameter "AnyStr_co@PathLike" is covariant, but "bytes" is not a subtype of "str"
+ "bytes" is not assignable to "str" (reportArgumentType)
+ /tmp/mypy_primer/projects/pytest/src/_pytest/config/__init__.py:1673:40 - error: Argument of type "PathLike[str] | PathLike[bytes]" cannot be assigned to parameter "args" of type "StrPath" in function "__init__"
+ Type "PathLike[str] | PathLike[bytes]" is not assignable to type "StrPath"
+ Type "PathLike[bytes]" is not assignable to type "StrPath"
+ "PathLike[bytes]" is not assignable to "str"
+ "PathLike[bytes]" is not assignable to "PathLike[str]"
+ Type parameter "AnyStr_co@PathLike" is covariant, but "bytes" is not a subtype of "str"
+ "bytes" is not assignable to "str" (reportArgumentType)
- 1162 errors, 17372 warnings, 0 notes
+ 1167 errors, 17362 warnings, 0 notes
starlette (https://github.com/encode/starlette)
- /tmp/mypy_primer/projects/starlette/starlette/_utils.py:79:63 - warning: Type of "exceptions" is partially unknown
- Type of "exceptions" is "tuple[Unknown | BaseExceptionGroup[Unknown], ...]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/starlette/starlette/_utils.py:79:63 - warning: Argument type is partially unknown
- Argument corresponds to parameter "obj" in function "len"
- Argument type is "tuple[Unknown | BaseExceptionGroup[Unknown], ...]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/starlette/starlette/_utils.py:80:17 - warning: Type of "exc" is partially unknown
- Type of "exc" is "Unknown | BaseExceptionGroup[Unknown]" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/starlette/starlette/_utils.py:80:23 - warning: Type of "exceptions" is partially unknown
- Type of "exceptions" is "tuple[Unknown | BaseExceptionGroup[Unknown]]" (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/starlette/starlette/testclient.py:336:39 - error: Argument of type "None" cannot be assigned to parameter "arg" of type "Never" in function "send"
+ Type "None" is not assignable to type "Never" (reportArgumentType)
- /tmp/mypy_primer/projects/starlette/starlette/testclient.py:336:21 - warning: Type of "chunk" is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/starlette/starlette/testclient.py:336:29 - warning: Type of "send" is partially unknown
- Type of "send" is "(arg: Unknown, /) -> Unknown" (reportUnknownMemberType)
- 206 errors, 4252 warnings, 0 notes
+ 207 errors, 4246 warnings, 0 notes
steam.py (https://github.com/Gobot1234/steam.py)
- /tmp/mypy_primer/projects/steam.py/steam/badge.py:57:82 - error: Type of "app" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/steam.py/steam/trade.py:550:34 - error: Type of "sending" is partially unknown
- Type of "sending" is "Sequence[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/steam.py/steam/trade.py:550:70 - error: Type of "receiving" is partially unknown
- Type of "receiving" is "Sequence[Unknown]" (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/steam.py/steam/ext/commands/bot.py:227:23 - error: Class overlaps "PathLike" unsafely and could produce a match at runtime
+ Attributes of "PathLike" have the same names as the protocol (reportGeneralTypeIssues)
- /tmp/mypy_primer/projects/steam.py/steam/ext/commands/cog.py:131:38 - error: Type of "children" is partially unknown
- Type of "children" is "Sequence[Command[Unknown, ..., Any]]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/steam.py/steam/ext/commands/cog.py:135:54 - warning: Unnecessary "# type: ignore" comment (reportUnnecessaryTypeIgnoreComment)
- 8475 errors, 97 warnings, 0 notes
+ 8472 errors, 96 warnings, 0 notes
mkosi (https://github.com/systemd/mkosi)
- /tmp/mypy_primer/projects/mkosi/mkosi/config.py:4904:20 - warning: Return type is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/mkosi/mkosi/config.py:4904:30 - warning: Argument type is partially unknown
- Argument corresponds to parameter "path" in function "fspath"
- Argument type is "PathLike[Unknown]" (reportUnknownArgumentType)
- 24 errors, 1598 warnings, 0 notes
+ 24 errors, 1596 warnings, 0 notes
openlibrary (https://github.com/internetarchive/openlibrary)
- /tmp/mypy_primer/projects/openlibrary/openlibrary/catalog/marc/tests/test_parse.py:119:28 - error: Argument of type "Iterable[Unknown]" cannot be assigned to parameter "obj" of type "Sized" in function "len"
+ /tmp/mypy_primer/projects/openlibrary/openlibrary/catalog/marc/tests/test_parse.py:119:28 - error: Argument of type "Iterable[object]" cannot be assigned to parameter "obj" of type "Sized" in function "len"
- "Iterable[Unknown]" is incompatible with protocol "Sized"
+ "Iterable[object]" is incompatible with protocol "Sized"
- /tmp/mypy_primer/projects/openlibrary/openlibrary/catalog/marc/tests/test_parse.py:148:28 - error: Argument of type "Iterable[Unknown]" cannot be assigned to parameter "obj" of type "Sized" in function "len"
+ /tmp/mypy_primer/projects/openlibrary/openlibrary/catalog/marc/tests/test_parse.py:148:28 - error: Argument of type "Iterable[object]" cannot be assigned to parameter "obj" of type "Sized" in function "len"
- "Iterable[Unknown]" is incompatible with protocol "Sized"
+ "Iterable[object]" is incompatible with protocol "Sized"
- Argument type is "set[Unknown]" (reportUnknownArgumentType)
+ Argument type is "set[Unknown] | set[object]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/openlibrary/openlibrary/solr/updater/abstract.py:53:68 - warning: Argument type is partially unknown
- Argument corresponds to parameter "o" in function "__init__"
- Argument type is "Any | Iterable[Unknown]" (reportUnknownArgumentType)
- 1917 errors, 33658 warnings, 0 notes
+ 1917 errors, 33657 warnings, 0 notes
ibis (https://github.com/ibis-project/ibis)
- /tmp/mypy_primer/projects/ibis/ibis/util.py:650:13 - warning: Type of "hashable_obj" is partially unknown
- Type of "hashable_obj" is "tuple[Unknown, ...]*" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/ibis/ibis/util.py:650:34 - warning: Argument type is partially unknown
- Argument corresponds to parameter "iterable" in function "__new__"
- Argument type is "Sequence[Unknown]*" (reportUnknownArgumentType)
- Type of "hashable_obj" is "tuple[tuple[Unknown, Unknown], ...]" (reportUnknownVariableType)
+ Type of "hashable_obj" is "tuple[tuple[Unknown, object], ...]" (reportUnknownVariableType)
- Argument type is "ItemsView[Unknown, Unknown]" (reportUnknownArgumentType)
+ Argument type is "ItemsView[Unknown, object]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/ibis/ibis/util.py:654:13 - warning: Type of "hashable_obj" is partially unknown
- Type of "hashable_obj" is "frozenset[Unknown]*" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/ibis/ibis/util.py:654:38 - warning: Argument type is partially unknown
- Argument corresponds to parameter "iterable" in function "__new__"
- Argument type is "AbstractSet[Unknown]*" (reportUnknownArgumentType)
- Argument type is "tuple[type[Sequence[Unknown]]* | type[Mapping[Unknown, Unknown]]* | type[AbstractSet[Unknown]]* | type[object]*, tuple[Unknown, ...]* | tuple[tuple[Unknown, Unknown], ...] | frozenset[Unknown]* | int*]" (reportUnknownArgumentType)
+ Argument type is "tuple[type[Sequence[object]]* | type[Mapping[Unknown, object]]* | type[AbstractSet[object]]* | type[object]*, tuple[object, ...]* | tuple[tuple[Unknown, object], ...] | frozenset[object]* | int*]" (reportUnknownArgumentType)
- Argument type is "Sequence[Unknown]* | Mapping[Unknown, Unknown]* | AbstractSet[Unknown]* | object*" (reportUnknownArgumentType)
+ Argument type is "Sequence[object]* | Mapping[Unknown, object]* | AbstractSet[object]* | object*" (reportUnknownArgumentType)
- Type of "path" is "str | Path | Unknown" (reportUnknownVariableType)
+ Type of "path" is "str | Path | object | Unknown" (reportUnknownVariableType)
- Type of "items" is "(() -> dict_items[str, str | Path]) | Unknown | (() -> ItemsView[str, str | Path]) | (() -> ItemsView[Unknown, Unknown])" (reportUnknownMemberType)
+ Type of "items" is "(() -> dict_items[str, str | Path]) | Unknown | (() -> ItemsView[str, str | Path]) | (() -> ItemsView[Unknown, object])" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/__init__.py:443:9 - warning: Return type, "tuple[type[Value[Unknown, Unknown]], ...]", is partially unknown (reportUnknownParameterType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/__init__.py:444:16 - warning: Return type, "tuple[type[Value[Unknown, Unknown]], ...]", is partially unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/__init__.py:444:22 - warning: Argument type is partially unknown
- Argument corresponds to parameter "iterable" in function "__new__"
- Argument type is "Generator[type[Value[Unknown, Unknown]], None, None]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/__init__.py:455:9 - warning: Type of "op_classes" is partially unknown
- Type of "op_classes" is "tuple[type[Value[Unknown, Unknown]], ...]" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/__init__.py:455:22 - warning: Type of "_get_operations" is partially unknown
- Type of "_get_operations" is "_lru_cache_wrapper[tuple[type[Value[Unknown, Unknown]], ...]]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:379:13 - warning: Type of "repl" is partially unknown
- Type of "repl" is "Unknown | None" (reportUnknownVariableType)
- Type of "get" is "Overload[(key: Unknown, /) -> (Unknown | None), (key: Unknown, /, default: Unknown | _T@get) -> (Unknown | _T@get)]" (reportUnknownMemberType)
+ Type of "get" is "Overload[(key: Unknown, /) -> (object | None), (key: Unknown, /, default: object | _T@get) -> (object | _T@get)]" (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:381:29 - error: Cannot access attribute "value" for class "object"
+ Attribute "value" is unknown (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:891:8 - warning: Type of "dtype" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:891:17 - error: Cannot access attribute "unit" for class "DataType"
+ Attribute "unit" is unknown (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:894:18 - warning: Type of "dtype" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:894:27 - error: Cannot access attribute "unit" for class "DataType"
+ Attribute "unit" is unknown (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:1391:12 - warning: Type of "step" is partially unknown
- Type of "step" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:1410:12 - warning: Type of "step" is partially unknown
- Type of "step" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:1411:12 - warning: Type of "step" is partially unknown
- Type of "step" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:1411:12 - warning: Type of "dtype" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:1411:26 - error: Cannot access attribute "unit" for class "DataType"
+ Attribute "unit" is unknown (reportAttributeAccessIssue)
- Type of "mapping" is "Mapping[Unknown, Unknown]" (reportUnknownVariableType)
+ Type of "mapping" is "Mapping[Unknown, object]" (reportUnknownVariableType)
- Type of "replacements" is "Mapping[Unknown, Unknown]" (reportUnknownMemberType)
+ Type of "replacements" is "Mapping[Unknown, object]" (reportUnknownMemberType)
- Type of "value" is "Unknown | None" (reportUnknownVariableType)
+ Type of "value" is "Unknown | object | None" (reportUnknownVariableType)
- Type of "get" is "Overload[(key: Unknown, /) -> (Unknown | None), (key: Unknown, /, default: Unknown | _T@get) -> (Unknown | _T@get)] | Overload[(key: Unknown, /) -> (Unknown | None), (key: Unknown, default: Unknown, /) -> Unknown, (key: Unknown, default: _T@get, /) -> (Unknown | _T@get)]" (reportUnknownMemberType)
+ Type of "get" is "Overload[(key: Unknown, /) -> (object | None), (key: Unknown, /, default: object | _T@get) -> (object | _T@get)] | Overload[(key: Unknown, /) -> (Unknown | None), (key: Unknown, default: Unknown, /) -> Unknown, (key: Unknown, default: _T@get, /) -> (Unknown | _T@get)]" (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/ibis/ibis/backends/sql/rewrites.py:168:38 - error: Argument of type "tuple[Field, Unknown | object]" cannot be assigned to parameter "arg" of type "VarTuple[Value[Unknown, Any]]" in function "__init__"
+ Type "Unknown | object" is not assignable to type "Value[Unknown, Any]"
+ "object" is not assignable to "Value[Unknown, Any]" (reportArgumentType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/rewrites.py:481:27 - warning: Type of "nth" is partially unknown
- Type of "nth" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/rewrites.py:481:50 - warning: Type of "nth" is partially unknown
- Type of "nth" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/rewrites.py:481:50 - warning: Type of "dtype" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/rewrites.py:481:50 - warning: Argument type is unknown
- Argument corresponds to parameter "dtype" in function "__init__" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/base.py:1000:61 - warning: Type of "length" is partially unknown
- Type of "length" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/clickhouse.py:707:22 - warning: Type of "step" is partially unknown
- Type of "step" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/duckdb.py:188:21 - warning: Type of "start" is partially unknown
- Type of "start" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/duckdb.py:196:24 - warning: Type of "stop" is partially unknown
- Type of "stop" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/flink.py:342:9 - warning: Type of "idx" is partially unknown
- Type of "idx" is "Literal[Unknown]" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/flink.py:342:15 - warning: Type of "index" is partially unknown
- Type of "index" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/flink.py:344:12 - warning: Type of "dtype" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/flink.py:344:12 - warning: Type of "is_integer" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/flink.py:347:20 - warning: Type of "dtype" is unknown (reportUnknownMemberType)
... (truncated 137 lines) ...
sympy (https://github.com/sympy/sympy)
- /tmp/mypy_primer/projects/sympy/sympy/combinatorics/permutations.py:1662:20 - error: Argument of type "Iterable[Unknown]" cannot be assigned to parameter "obj" of type "Sized" in function "len"
+ /tmp/mypy_primer/projects/sympy/sympy/combinatorics/permutations.py:1662:20 - error: Argument of type "Iterable[object]" cannot be assigned to parameter "obj" of type "Sized" in function "len"
- "Iterable[Unknown]" is incompatible with protocol "Sized"
+ "Iterable[object]" is incompatible with protocol "Sized"
- /tmp/mypy_primer/projects/sympy/sympy/combinatorics/permutations.py:1664:60 - warning: Argument type is partially unknown
- Argument corresponds to parameter "args" in function "format"
- Argument type is "Iterable[Unknown]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/sympy/sympy/combinatorics/permutations.py:1665:21 - error: "__getitem__" method not defined on type "Iterable[Unknown]" (reportIndexIssue)
+ /tmp/mypy_primer/projects/sympy/sympy/combinatorics/permutations.py:1665:21 - error: "__getitem__" method not defined on type "Iterable[object]" (reportIndexIssue)
- /tmp/mypy_primer/projects/sympy/sympy/core/basic.py:412:18 - warning: Unnecessary isinstance call; "Never" is always an instance of "frozenset[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/sympy/sympy/core/basic.py:412:18 - warning: Unnecessary isinstance call; "Never" is always an instance of "frozenset[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/sympy/sympy/core/basic.py:413:34 - warning: Unnecessary isinstance call; "Never" is always an instance of "frozenset[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/sympy/sympy/core/basic.py:413:34 - warning: Unnecessary isinstance call; "Never" is always an instance of "frozenset[object]" (reportUnnecessaryIsInstance)
... (truncated 2020 lines) ...```
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:224:5 - warning: Return type is unknown (reportUnknownParameterType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:224:5 - warning: Return type, "object | Unknown", is partially unknown (reportUnknownParameterType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:238:20 - warning: Return type is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:253:5 - warning: Return type is unknown (reportUnknownParameterType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:253:5 - warning: Return type, "object | Unknown", is partially unknown (reportUnknownParameterType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:267:12 - warning: Return type is unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:267:12 - warning: Return type, "object | Unknown", is partially unknown (reportUnknownVariableType)
- /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 unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2219:37 - error: Operator "<=" not supported for types "object" and "int" (reportOperatorIssue)
- /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 unknown (reportUnknownMemberType)
- /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:2221:18 - error: Operator ">=" not supported for types "object" and "int" (reportOperatorIssue)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2224:17 - warning: Type of "start" is unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2224:17 - warning: Type of "start" is partially unknown
+ Type of "start" is "Unknown | Any" (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2226:36 - error: Operator ">=" not supported for types "object" and "int" (reportOperatorIssue)
- /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 unknown
- 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 unknown (reportUnknownMemberType)
- /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 unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2228:18 - error: Operator "<=" not supported for types "object" and "int" (reportOperatorIssue)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2231:17 - warning: Type of "stop" is unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2231:17 - warning: Type of "stop" is partially unknown
+ Type of "stop" is "Unknown | Any" (reportUnknownVariableType)
- /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 unknown
- Argument corresponds to parameter "i" in function "_get_by_index" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2773:9 - warning: Type of "_target" is partially unknown
- Type of "_target" is "Sequence[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2775:9 - warning: Return type is unknown (reportUnknownParameterType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2775:9 - error: Method "__getitem__" overrides class "Sequence" in an incompatible manner
+ Return type mismatch: base method returns type "Sequence[Unknown]", override returns type "object"
+ "object" is not assignable to "Sequence[Unknown]" (reportIncompatibleMethodOverride)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2776:16 - warning: Type of "_target" is partially unknown
- Type of "_target" is "Sequence[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2776:16 - warning: Return type is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2779:20 - warning: Type of "_target" is partially unknown
- Type of "_target" is "Sequence[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2779:20 - warning: Argument type is partially unknown
- Argument corresponds to parameter "obj" in function "len"
- Argument type is "Sequence[Unknown]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2782:62 - warning: Type of "_target" is partially unknown
- Type of "_target" is "Sequence[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2782:62 - warning: Argument type is partially unknown
- Argument corresponds to parameter "obj" in function "repr"
- Argument type is "Sequence[Unknown]" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:4251:12 - error: "object" is not iterable
+ "__iter__" method not defined (reportGeneralTypeIssues)
- 24 errors, 2742 warnings, 0 notes
+ 30 errors, 2721 warnings, 0 notes
pytest (https://github.com/pytest-dev/pytest)
+ /tmp/mypy_primer/projects/pytest/src/_pytest/pytester.py:1298:23 - error: Class overlaps "PathLike" unsafely and could produce a match at runtime
+ Attributes of "PathLike" have the same names as the protocol (reportGeneralTypeIssues)
- /tmp/mypy_primer/projects/pytest/src/_pytest/python.py:978:34 - warning: Type of "pattern" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/python.py:978:34 - warning: Argument type is unknown
- Argument corresponds to parameter "val" in function "ascii_escaped" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/reports.py:205:50 - warning: Argument type is partially unknown
- Argument corresponds to parameter "obj" in function "len"
- Argument type is "Sequence[Unknown]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/reports.py:206:13 - warning: Type of "word" is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/reports.py:206:19 - warning: Type of "markup" is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/reports.py:208:24 - warning: Return type, "tuple[str, Mapping[Unknown, Unknown]]", is partially unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/pytest/src/_pytest/reports.py:208:24 - warning: Return type, "tuple[str, Mapping[Unknown, object]]", is partially unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/pytest/src/_pytest/reports.py:208:30 - error: Type "tuple[str, Mapping[Unknown, object]]" is not assignable to return type "tuple[str, Mapping[str, bool]]"
+ "Mapping[Unknown, object]" is not assignable to "Mapping[str, bool]"
+ Type parameter "_VT_co@Mapping" is covariant, but "object" is not a subtype of "bool"
+ "object" is not assignable to "bool" (reportReturnType)
- Argument type is "Mapping[Unknown, Unknown]" (reportUnknownArgumentType)
+ Argument type is "Mapping[Unknown, object]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/_code/code.py:741:21 - warning: Argument type is partially unknown
- Argument corresponds to parameter "exc_group" in function "_group_contains"
- Argument type is "BaseExceptionGroup[Unknown] | BaseExceptionGroup[BaseException]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/_code/code.py:750:51 - warning: Argument type is partially unknown
- Argument corresponds to parameter "exc" in function "_stringify_exception"
- Argument type is "BaseExceptionGroup[Unknown] | BaseExceptionGroup[BaseException] | BaseException" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/_code/code.py:789:37 - warning: Type of "value" is partially unknown
- Type of "value" is "BaseExceptionGroup[Unknown]*" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/_code/code.py:789:37 - warning: Argument type is partially unknown
- Argument corresponds to parameter "exc_group" in function "_group_contains"
- Argument type is "BaseExceptionGroup[Unknown]*" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/pytest/src/_pytest/config/__init__.py:323:21 - error: Class overlaps "PathLike" unsafely and could produce a match at runtime
+ Attributes of "PathLike" have the same names as the protocol (reportGeneralTypeIssues)
- /tmp/mypy_primer/projects/pytest/src/_pytest/config/__init__.py:1673:40 - warning: Argument type is partially unknown
- Argument corresponds to parameter "args" in function "__init__"
- Argument type is "PathLike[Unknown]" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/pytest/src/_pytest/config/__init__.py:1673:40 - error: Argument of type "PathLike[str] | PathLike[bytes]" cannot be assigned to parameter "args" of type "StrPath" in function "__new__"
+ Type "PathLike[str] | PathLike[bytes]" is not assignable to type "StrPath"
+ Type "PathLike[bytes]" is not assignable to type "StrPath"
+ "PathLike[bytes]" is not assignable to "str"
+ "PathLike[bytes]" is not assignable to "PathLike[str]"
+ Type parameter "AnyStr_co@PathLike" is covariant, but "bytes" is not a subtype of "str"
+ "bytes" is not assignable to "str" (reportArgumentType)
+ /tmp/mypy_primer/projects/pytest/src/_pytest/config/__init__.py:1673:40 - error: Argument of type "PathLike[str] | PathLike[bytes]" cannot be assigned to parameter "args" of type "StrPath" in function "__init__"
+ Type "PathLike[str] | PathLike[bytes]" is not assignable to type "StrPath"
+ Type "PathLike[bytes]" is not assignable to type "StrPath"
+ "PathLike[bytes]" is not assignable to "str"
+ "PathLike[bytes]" is not assignable to "PathLike[str]"
+ Type parameter "AnyStr_co@PathLike" is covariant, but "bytes" is not a subtype of "str"
+ "bytes" is not assignable to "str" (reportArgumentType)
- 1162 errors, 17372 warnings, 0 notes
+ 1167 errors, 17362 warnings, 0 notes
openlibrary (https://github.com/internetarchive/openlibrary)
- /tmp/mypy_primer/projects/openlibrary/openlibrary/catalog/marc/tests/test_parse.py:119:28 - error: Argument of type "Iterable[Unknown]" cannot be assigned to parameter "obj" of type "Sized" in function "len"
+ /tmp/mypy_primer/projects/openlibrary/openlibrary/catalog/marc/tests/test_parse.py:119:28 - error: Argument of type "Iterable[object]" cannot be assigned to parameter "obj" of type "Sized" in function "len"
- "Iterable[Unknown]" is incompatible with protocol "Sized"
+ "Iterable[object]" is incompatible with protocol "Sized"
- /tmp/mypy_primer/projects/openlibrary/openlibrary/catalog/marc/tests/test_parse.py:148:28 - error: Argument of type "Iterable[Unknown]" cannot be assigned to parameter "obj" of type "Sized" in function "len"
+ /tmp/mypy_primer/projects/openlibrary/openlibrary/catalog/marc/tests/test_parse.py:148:28 - error: Argument of type "Iterable[object]" cannot be assigned to parameter "obj" of type "Sized" in function "len"
- "Iterable[Unknown]" is incompatible with protocol "Sized"
+ "Iterable[object]" is incompatible with protocol "Sized"
- Argument type is "set[Unknown]" (reportUnknownArgumentType)
+ Argument type is "set[Unknown] | set[object]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/openlibrary/openlibrary/solr/updater/abstract.py:53:68 - warning: Argument type is partially unknown
- Argument corresponds to parameter "o" in function "__init__"
- Argument type is "Any | Iterable[Unknown]" (reportUnknownArgumentType)
- 1917 errors, 33669 warnings, 0 notes
+ 1917 errors, 33668 warnings, 0 notes
starlette (https://github.com/encode/starlette)
- /tmp/mypy_primer/projects/starlette/starlette/_utils.py:79:63 - warning: Type of "exceptions" is partially unknown
- Type of "exceptions" is "tuple[Unknown | BaseExceptionGroup[Unknown], ...]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/starlette/starlette/_utils.py:79:63 - warning: Argument type is partially unknown
- Argument corresponds to parameter "obj" in function "len"
- Argument type is "tuple[Unknown | BaseExceptionGroup[Unknown], ...]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/starlette/starlette/_utils.py:80:17 - warning: Type of "exc" is partially unknown
- Type of "exc" is "Unknown | BaseExceptionGroup[Unknown]" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/starlette/starlette/_utils.py:80:23 - warning: Type of "exceptions" is partially unknown
- Type of "exceptions" is "tuple[Unknown | BaseExceptionGroup[Unknown]]" (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/starlette/starlette/testclient.py:336:39 - error: Argument of type "None" cannot be assigned to parameter "arg" of type "Never" in function "send"
+ Type "None" is not assignable to type "Never" (reportArgumentType)
- /tmp/mypy_primer/projects/starlette/starlette/testclient.py:336:21 - warning: Type of "chunk" is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/starlette/starlette/testclient.py:336:29 - warning: Type of "send" is partially unknown
- Type of "send" is "(arg: Unknown, /) -> Unknown" (reportUnknownMemberType)
- 206 errors, 4252 warnings, 0 notes
+ 207 errors, 4246 warnings, 0 notes
mkosi (https://github.com/systemd/mkosi)
- /tmp/mypy_primer/projects/mkosi/mkosi/config.py:4909:20 - warning: Return type is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/mkosi/mkosi/config.py:4909:30 - warning: Argument type is partially unknown
- Argument corresponds to parameter "path" in function "fspath"
- Argument type is "PathLike[Unknown]" (reportUnknownArgumentType)
- 24 errors, 1600 warnings, 0 notes
+ 24 errors, 1598 warnings, 0 notes
yarl (https://github.com/aio-libs/yarl)
- /tmp/mypy_primer/projects/yarl/yarl/_query.py:104:8 - warning: Unnecessary isinstance call; "dict[str, QueryVariable] | Mapping[str, QueryVariable]" is always an instance of "Mapping[Unknown, Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/yarl/yarl/_query.py:104:8 - warning: Unnecessary isinstance call; "dict[str, QueryVariable] | Mapping[str, QueryVariable]" is always an instance of "Mapping[Unknown, object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/yarl/yarl/_url.py:1232:14 - warning: Unnecessary isinstance call; "Never" is always an instance of "Sequence[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/yarl/yarl/_url.py:1232:14 - warning: Unnecessary isinstance call; "Never" is always an instance of "Sequence[object]" (reportUnnecessaryIsInstance)
ibis (https://github.com/ibis-project/ibis)
- /tmp/mypy_primer/projects/ibis/ibis/util.py:650:13 - warning: Type of "hashable_obj" is partially unknown
- Type of "hashable_obj" is "tuple[Unknown, ...]*" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/ibis/ibis/util.py:650:34 - warning: Argument type is partially unknown
- Argument corresponds to parameter "iterable" in function "__new__"
- Argument type is "Sequence[Unknown]*" (reportUnknownArgumentType)
- Type of "hashable_obj" is "tuple[tuple[Unknown, Unknown], ...]" (reportUnknownVariableType)
+ Type of "hashable_obj" is "tuple[tuple[Unknown, object], ...]" (reportUnknownVariableType)
- Argument type is "ItemsView[Unknown, Unknown]" (reportUnknownArgumentType)
+ Argument type is "ItemsView[Unknown, object]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/ibis/ibis/util.py:654:13 - warning: Type of "hashable_obj" is partially unknown
- Type of "hashable_obj" is "frozenset[Unknown]*" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/ibis/ibis/util.py:654:38 - warning: Argument type is partially unknown
- Argument corresponds to parameter "iterable" in function "__new__"
- Argument type is "AbstractSet[Unknown]*" (reportUnknownArgumentType)
- Argument type is "tuple[type[Sequence[Unknown]]* | type[Mapping[Unknown, Unknown]]* | type[AbstractSet[Unknown]]* | type[object]*, tuple[Unknown, ...]* | tuple[tuple[Unknown, Unknown], ...] | frozenset[Unknown]* | int*]" (reportUnknownArgumentType)
+ Argument type is "tuple[type[Sequence[object]]* | type[Mapping[Unknown, object]]* | type[AbstractSet[object]]* | type[object]*, tuple[object, ...]* | tuple[tuple[Unknown, object], ...] | frozenset[object]* | int*]" (reportUnknownArgumentType)
- Argument type is "Sequence[Unknown]* | Mapping[Unknown, Unknown]* | AbstractSet[Unknown]* | object*" (reportUnknownArgumentType)
+ Argument type is "Sequence[object]* | Mapping[Unknown, object]* | AbstractSet[object]* | object*" (reportUnknownArgumentType)
- Type of "path" is "str | Path | Unknown" (reportUnknownVariableType)
+ Type of "path" is "str | Path | object | Unknown" (reportUnknownVariableType)
- Type of "items" is "(() -> dict_items[str, str | Path]) | Unknown | (() -> ItemsView[str, str | Path]) | (() -> ItemsView[Unknown, Unknown])" (reportUnknownMemberType)
+ Type of "items" is "(() -> dict_items[str, str | Path]) | Unknown | (() -> ItemsView[str, str | Path]) | (() -> ItemsView[Unknown, object])" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/__init__.py:443:9 - warning: Return type, "tuple[type[Value[Unknown, Unknown]], ...]", is partially unknown (reportUnknownParameterType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/__init__.py:444:16 - warning: Return type, "tuple[type[Value[Unknown, Unknown]], ...]", is partially unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/__init__.py:444:22 - warning: Argument type is partially unknown
- Argument corresponds to parameter "iterable" in function "__new__"
- Argument type is "Generator[type[Value[Unknown, Unknown]], None, None]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/__init__.py:455:9 - warning: Type of "op_classes" is partially unknown
- Type of "op_classes" is "tuple[type[Value[Unknown, Unknown]], ...]" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/__init__.py:455:22 - warning: Type of "_get_operations" is partially unknown
- Type of "_get_operations" is "_lru_cache_wrapper[tuple[type[Value[Unknown, Unknown]], ...]]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:379:13 - warning: Type of "repl" is partially unknown
- Type of "repl" is "Unknown | None" (reportUnknownVariableType)
- Type of "get" is "Overload[(key: Unknown, /) -> (Unknown | None), (key: Unknown, /, default: Unknown | _T@get) -> (Unknown | _T@get)]" (reportUnknownMemberType)
+ Type of "get" is "Overload[(key: Unknown, /) -> (object | None), (key: Unknown, /, default: object | _T@get) -> (object | _T@get)]" (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:381:29 - error: Cannot access attribute "value" for class "object"
+ Attribute "value" is unknown (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:891:8 - warning: Type of "dtype" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:891:17 - error: Cannot access attribute "unit" for class "DataType"
+ Attribute "unit" is unknown (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:894:18 - warning: Type of "dtype" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:894:27 - error: Cannot access attribute "unit" for class "DataType"
+ Attribute "unit" is unknown (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:1391:12 - warning: Type of "step" is partially unknown
- Type of "step" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:1410:12 - warning: Type of "step" is partially unknown
- Type of "step" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:1411:12 - warning: Type of "step" is partially unknown
- Type of "step" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:1411:12 - warning: Type of "dtype" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:1411:26 - error: Cannot access attribute "unit" for class "DataType"
+ Attribute "unit" is unknown (reportAttributeAccessIssue)
- Type of "mapping" is "Mapping[Unknown, Unknown]" (reportUnknownVariableType)
+ Type of "mapping" is "Mapping[Unknown, object]" (reportUnknownVariableType)
- Type of "replacements" is "Mapping[Unknown, Unknown]" (reportUnknownMemberType)
+ Type of "replacements" is "Mapping[Unknown, object]" (reportUnknownMemberType)
- Type of "value" is "Unknown | None" (reportUnknownVariableType)
+ Type of "value" is "Unknown | object | None" (reportUnknownVariableType)
- Type of "get" is "Overload[(key: Unknown, /) -> (Unknown | None), (key: Unknown, /, default: Unknown | _T@get) -> (Unknown | _T@get)] | Overload[(key: Unknown, /) -> (Unknown | None), (key: Unknown, default: Unknown, /) -> Unknown, (key: Unknown, default: _T@get, /) -> (Unknown | _T@get)]" (reportUnknownMemberType)
+ Type of "get" is "Overload[(key: Unknown, /) -> (object | None), (key: Unknown, /, default: object | _T@get) -> (object | _T@get)] | Overload[(key: Unknown, /) -> (Unknown | None), (key: Unknown, default: Unknown, /) -> Unknown, (key: Unknown, default: _T@get, /) -> (Unknown | _T@get)]" (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/ibis/ibis/backends/sql/rewrites.py:168:38 - error: Argument of type "tuple[Field, Unknown | object]" cannot be assigned to parameter "arg" of type "VarTuple[Value[Unknown, Any]]" in function "__init__"
+ Type "Unknown | object" is not assignable to type "Value[Unknown, Any]"
+ "object" is not assignable to "Value[Unknown, Any]" (reportArgumentType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/rewrites.py:481:27 - warning: Type of "nth" is partially unknown
- Type of "nth" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/rewrites.py:481:50 - warning: Type of "nth" is partially unknown
- Type of "nth" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/rewrites.py:481:50 - warning: Type of "dtype" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/rewrites.py:481:50 - warning: Argument type is unknown
- Argument corresponds to parameter "dtype" in function "__init__" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/base.py:1000:61 - warning: Type of "length" is partially unknown
- Type of "length" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/clickhouse.py:707:22 - warning: Type of "step" is partially unknown
- Type of "step" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/duckdb.py:188:21 - warning: Type of "start" is partially unknown
- Type of "start" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/duckdb.py:196:24 - warning: Type of "stop" is partially unknown
- Type of "stop" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/flink.py:342:9 - warning: Type of "idx" is partially unknown
- Type of "idx" is "Literal[Unknown]" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/flink.py:342:15 - warning: Type of "index" is partially unknown
- Type of "index" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/flink.py:344:12 - warning: Type of "dtype" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/flink.py:344:12 - warning: Type of "is_integer" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/flink.py:347:20 - warning: Type of "dtype" is unknown (reportUnknownMemberType)
... (truncated 137 lines) ...
sympy (https://github.com/sympy/sympy)
- /tmp/mypy_primer/projects/sympy/sympy/combinatorics/permutations.py:1662:20 - error: Argument of type "Iterable[Unknown]" cannot be assigned to parameter "obj" of type "Sized" in function "len"
+ /tmp/mypy_primer/projects/sympy/sympy/combinatorics/permutations.py:1662:20 - error: Argument of type "Iterable[object]" cannot be assigned to parameter "obj" of type "Sized" in function "len"
- "Iterable[Unknown]" is incompatible with protocol "Sized"
+ "Iterable[object]" is incompatible with protocol "Sized"
- /tmp/mypy_primer/projects/sympy/sympy/combinatorics/permutations.py:1664:60 - warning: Argument type is partially unknown
- Argument corresponds to parameter "args" in function "format"
- Argument type is "Iterable[Unknown]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/sympy/sympy/combinatorics/permutations.py:1665:21 - error: "__getitem__" method not defined on type "Iterable[Unknown]" (reportIndexIssue)
+ /tmp/mypy_primer/projects/sympy/sympy/combinatorics/permutations.py:1665:21 - error: "__getitem__" method not defined on type "Iterable[object]" (reportIndexIssue)
- /tmp/mypy_primer/projects/sympy/sympy/core/basic.py:412:18 - warning: Unnecessary isinstance call; "Never" is always an instance of "frozenset[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/sympy/sympy/core/basic.py:412:18 - warning: Unnecessary isinstance call; "Never" is always an instance of "frozenset[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/sympy/sympy/core/basic.py:413:34 - warning: Unnecessary isinstance call; "Never" is always an instance of "frozenset[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/sympy/sympy/core/basic.py:413:34 - warning: Unnecessary isinstance call; "Never" is always an instance of "frozenset[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/sympy/sympy/core/basic.py:414:28 - warning: Argument type is unknown
- Type of "sequence" is "ItemsView[Unknown, Unknown] | dict_items[Basic, Basic]" (reportUnknownVariableType)
+ Type of "sequence" is "ItemsView[Unknown, object] | dict_items[Basic, Basic]" (reportUnknownVariableType)
- Type of "s2" is "Unknown | Basic" (reportUnknownVariableType)
+ Type of "s2" is "Unknown | object | Basic" (reportUnknownVariableType)
- Type of "sequence" is "ItemsView[Unknown, Unknown] | dict_items[Basic, Basic]" (reportUnknownVariableType)
+ Type of "sequence" is "ItemsView[Unknown, object] | dict_items[Basic, Basic]" (reportUnknownVariableType)
- Type of "new" is "Unknown | Basic" (reportUnknownVariableType)
+ Type of "new" is "object | Basic | Unknown" (reportUnknownVariableType)
- Argument type is "ItemsView[Unknown, Unknown] | dict_items[Basic, Basic] | Unknown | list[tuple[Unknown, Unknown]]" (reportUnknownArgumentType)
+ Argument type is "ItemsView[Unknown, object] | dict_items[Basic, Basic] | Unknown | list[tuple[Unknown, Unknown]]" (reportUnknownArgumentType)
- Type of "__str__" is "((self: list[Unknown]) -> str) | ((self: tuple[Unknown, ...]) -> str) | ((self: set[Unknown]) -> str) | ((self: frozenset[Unknown]) -> str)" (reportUnknownMemberType)
+ Type of "__str__" is "((self: list[Unknown]) -> str) | ((self: tuple[Unknown, ...]) -> str) | ((self: set[Unknown]) -> str) | ((self: frozenset[object]) -> str)" (reportUnknownMemberType)
- Argument type is "list[Unknown] | tuple[Unknown, ...] | set[Unknown] | frozenset[Unknown]" (reportUnknownArgumentType)
+ Argument type is "list[Unknown] | tuple[Unknown, ...] | set[Unknown] | frozenset[object]" (reportUnknownArgumentType)
... (truncated 1932 lines) ...```
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:224:5 - warning: Return type is unknown (reportUnknownParameterType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:224:5 - warning: Return type, "object | Unknown", is partially unknown (reportUnknownParameterType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:238:20 - warning: Return type is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:253:5 - warning: Return type is unknown (reportUnknownParameterType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:253:5 - warning: Return type, "object | Unknown", is partially unknown (reportUnknownParameterType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:267:12 - warning: Return type is unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:267:12 - warning: Return type, "object | Unknown", is partially unknown (reportUnknownVariableType)
- /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 unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2219:37 - error: Operator "<=" not supported for types "object" and "int" (reportOperatorIssue)
- /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 unknown (reportUnknownMemberType)
- /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:2221:18 - error: Operator ">=" not supported for types "object" and "int" (reportOperatorIssue)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2224:17 - warning: Type of "start" is unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2224:17 - warning: Type of "start" is partially unknown
+ Type of "start" is "Unknown | Any" (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2226:36 - error: Operator ">=" not supported for types "object" and "int" (reportOperatorIssue)
- /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 unknown
- 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 unknown (reportUnknownMemberType)
- /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 unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2228:18 - error: Operator "<=" not supported for types "object" and "int" (reportOperatorIssue)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2231:17 - warning: Type of "stop" is unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2231:17 - warning: Type of "stop" is partially unknown
+ Type of "stop" is "Unknown | Any" (reportUnknownVariableType)
- /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 unknown
- Argument corresponds to parameter "i" in function "_get_by_index" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2773:9 - warning: Type of "_target" is partially unknown
- Type of "_target" is "Sequence[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2775:9 - warning: Return type is unknown (reportUnknownParameterType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2775:9 - error: Method "__getitem__" overrides class "Sequence" in an incompatible manner
+ Return type mismatch: base method returns type "Sequence[Unknown]", override returns type "object"
+ "object" is not assignable to "Sequence[Unknown]" (reportIncompatibleMethodOverride)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2776:16 - warning: Type of "_target" is partially unknown
- Type of "_target" is "Sequence[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2776:16 - warning: Return type is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2779:20 - warning: Type of "_target" is partially unknown
- Type of "_target" is "Sequence[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2779:20 - warning: Argument type is partially unknown
- Argument corresponds to parameter "obj" in function "len"
- Argument type is "Sequence[Unknown]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2782:62 - warning: Type of "_target" is partially unknown
- Type of "_target" is "Sequence[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2782:62 - warning: Argument type is partially unknown
- Argument corresponds to parameter "obj" in function "repr"
- Argument type is "Sequence[Unknown]" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:4251:12 - error: "object" is not iterable
+ "__iter__" method not defined (reportGeneralTypeIssues)
- 24 errors, 2742 warnings, 0 notes
+ 30 errors, 2721 warnings, 0 notes
yarl (https://github.com/aio-libs/yarl)
- /tmp/mypy_primer/projects/yarl/yarl/_query.py:104:8 - warning: Unnecessary isinstance call; "dict[str, QueryVariable] | Mapping[str, QueryVariable]" is always an instance of "Mapping[Unknown, Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/yarl/yarl/_query.py:104:8 - warning: Unnecessary isinstance call; "dict[str, QueryVariable] | Mapping[str, QueryVariable]" is always an instance of "Mapping[Unknown, object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/yarl/yarl/_url.py:1232:14 - warning: Unnecessary isinstance call; "Never" is always an instance of "Sequence[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/yarl/yarl/_url.py:1232:14 - warning: Unnecessary isinstance call; "Never" is always an instance of "Sequence[object]" (reportUnnecessaryIsInstance)
mkosi (https://github.com/systemd/mkosi)
- /tmp/mypy_primer/projects/mkosi/mkosi/config.py:4909:20 - warning: Return type is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/mkosi/mkosi/config.py:4909:30 - warning: Argument type is partially unknown
- Argument corresponds to parameter "path" in function "fspath"
- Argument type is "PathLike[Unknown]" (reportUnknownArgumentType)
- 24 errors, 1600 warnings, 0 notes
+ 24 errors, 1598 warnings, 0 notes
ibis (https://github.com/ibis-project/ibis)
- /tmp/mypy_primer/projects/ibis/ibis/util.py:650:13 - warning: Type of "hashable_obj" is partially unknown
- Type of "hashable_obj" is "tuple[Unknown, ...]*" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/ibis/ibis/util.py:650:34 - warning: Argument type is partially unknown
- Argument corresponds to parameter "iterable" in function "__new__"
- Argument type is "Sequence[Unknown]*" (reportUnknownArgumentType)
- Type of "hashable_obj" is "tuple[tuple[Unknown, Unknown], ...]" (reportUnknownVariableType)
+ Type of "hashable_obj" is "tuple[tuple[Unknown, object], ...]" (reportUnknownVariableType)
- Argument type is "ItemsView[Unknown, Unknown]" (reportUnknownArgumentType)
+ Argument type is "ItemsView[Unknown, object]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/ibis/ibis/util.py:654:13 - warning: Type of "hashable_obj" is partially unknown
- Type of "hashable_obj" is "frozenset[Unknown]*" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/ibis/ibis/util.py:654:38 - warning: Argument type is partially unknown
- Argument corresponds to parameter "iterable" in function "__new__"
- Argument type is "AbstractSet[Unknown]*" (reportUnknownArgumentType)
- Argument type is "tuple[type[Sequence[Unknown]]* | type[Mapping[Unknown, Unknown]]* | type[AbstractSet[Unknown]]* | type[object]*, tuple[Unknown, ...]* | tuple[tuple[Unknown, Unknown], ...] | frozenset[Unknown]* | int*]" (reportUnknownArgumentType)
+ Argument type is "tuple[type[Sequence[object]]* | type[Mapping[Unknown, object]]* | type[AbstractSet[object]]* | type[object]*, tuple[object, ...]* | tuple[tuple[Unknown, object], ...] | frozenset[object]* | int*]" (reportUnknownArgumentType)
- Argument type is "Sequence[Unknown]* | Mapping[Unknown, Unknown]* | AbstractSet[Unknown]* | object*" (reportUnknownArgumentType)
+ Argument type is "Sequence[object]* | Mapping[Unknown, object]* | AbstractSet[object]* | object*" (reportUnknownArgumentType)
- Type of "path" is "str | Path | Unknown" (reportUnknownVariableType)
+ Type of "path" is "str | Path | object | Unknown" (reportUnknownVariableType)
- Type of "items" is "(() -> dict_items[str, str | Path]) | Unknown | (() -> ItemsView[str, str | Path]) | (() -> ItemsView[Unknown, Unknown])" (reportUnknownMemberType)
+ Type of "items" is "(() -> dict_items[str, str | Path]) | Unknown | (() -> ItemsView[str, str | Path]) | (() -> ItemsView[Unknown, object])" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/__init__.py:443:9 - warning: Return type, "tuple[type[Value[Unknown, Unknown]], ...]", is partially unknown (reportUnknownParameterType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/__init__.py:444:16 - warning: Return type, "tuple[type[Value[Unknown, Unknown]], ...]", is partially unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/__init__.py:444:22 - warning: Argument type is partially unknown
- Argument corresponds to parameter "iterable" in function "__new__"
- Argument type is "Generator[type[Value[Unknown, Unknown]], None, None]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/__init__.py:455:9 - warning: Type of "op_classes" is partially unknown
- Type of "op_classes" is "tuple[type[Value[Unknown, Unknown]], ...]" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/__init__.py:455:22 - warning: Type of "_get_operations" is partially unknown
- Type of "_get_operations" is "_lru_cache_wrapper[tuple[type[Value[Unknown, Unknown]], ...]]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:379:13 - warning: Type of "repl" is partially unknown
- Type of "repl" is "Unknown | None" (reportUnknownVariableType)
- Type of "get" is "Overload[(key: Unknown, /) -> (Unknown | None), (key: Unknown, /, default: Unknown | _T@get) -> (Unknown | _T@get)]" (reportUnknownMemberType)
+ Type of "get" is "Overload[(key: Unknown, /) -> (object | None), (key: Unknown, /, default: object | _T@get) -> (object | _T@get)]" (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:381:29 - error: Cannot access attribute "value" for class "object"
+ Attribute "value" is unknown (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:891:8 - warning: Type of "dtype" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:891:17 - error: Cannot access attribute "unit" for class "DataType"
+ Attribute "unit" is unknown (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:894:18 - warning: Type of "dtype" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:894:27 - error: Cannot access attribute "unit" for class "DataType"
+ Attribute "unit" is unknown (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:1391:12 - warning: Type of "step" is partially unknown
- Type of "step" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:1410:12 - warning: Type of "step" is partially unknown
- Type of "step" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:1411:12 - warning: Type of "step" is partially unknown
- Type of "step" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:1411:12 - warning: Type of "dtype" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:1411:26 - error: Cannot access attribute "unit" for class "DataType"
+ Attribute "unit" is unknown (reportAttributeAccessIssue)
- Type of "mapping" is "Mapping[Unknown, Unknown]" (reportUnknownVariableType)
+ Type of "mapping" is "Mapping[Unknown, object]" (reportUnknownVariableType)
- Type of "replacements" is "Mapping[Unknown, Unknown]" (reportUnknownMemberType)
+ Type of "replacements" is "Mapping[Unknown, object]" (reportUnknownMemberType)
- Type of "value" is "Unknown | None" (reportUnknownVariableType)
+ Type of "value" is "Unknown | object | None" (reportUnknownVariableType)
- Type of "get" is "Overload[(key: Unknown, /) -> (Unknown | None), (key: Unknown, /, default: Unknown | _T@get) -> (Unknown | _T@get)] | Overload[(key: Unknown, /) -> (Unknown | None), (key: Unknown, default: Unknown, /) -> Unknown, (key: Unknown, default: _T@get, /) -> (Unknown | _T@get)]" (reportUnknownMemberType)
+ Type of "get" is "Overload[(key: Unknown, /) -> (object | None), (key: Unknown, /, default: object | _T@get) -> (object | _T@get)] | Overload[(key: Unknown, /) -> (Unknown | None), (key: Unknown, default: Unknown, /) -> Unknown, (key: Unknown, default: _T@get, /) -> (Unknown | _T@get)]" (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/ibis/ibis/backends/sql/rewrites.py:168:38 - error: Argument of type "tuple[Field, Unknown | object]" cannot be assigned to parameter "arg" of type "VarTuple[Value[Unknown, Any]]" in function "__init__"
+ Type "Unknown | object" is not assignable to type "Value[Unknown, Any]"
+ "object" is not assignable to "Value[Unknown, Any]" (reportArgumentType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/rewrites.py:481:27 - warning: Type of "nth" is partially unknown
- Type of "nth" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/rewrites.py:481:50 - warning: Type of "nth" is partially unknown
- Type of "nth" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/rewrites.py:481:50 - warning: Type of "dtype" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/rewrites.py:481:50 - warning: Argument type is unknown
- Argument corresponds to parameter "dtype" in function "__init__" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/base.py:1000:61 - warning: Type of "length" is partially unknown
- Type of "length" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/clickhouse.py:707:22 - warning: Type of "step" is partially unknown
- Type of "step" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/duckdb.py:188:21 - warning: Type of "start" is partially unknown
- Type of "start" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/duckdb.py:196:24 - warning: Type of "stop" is partially unknown
- Type of "stop" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/flink.py:342:9 - warning: Type of "idx" is partially unknown
- Type of "idx" is "Literal[Unknown]" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/flink.py:342:15 - warning: Type of "index" is partially unknown
- Type of "index" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/flink.py:344:12 - warning: Type of "dtype" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/flink.py:344:12 - warning: Type of "is_integer" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/flink.py:347:20 - warning: Type of "dtype" is unknown (reportUnknownMemberType)
... (truncated 137 lines) ...
pytest (https://github.com/pytest-dev/pytest)
+ /tmp/mypy_primer/projects/pytest/src/_pytest/pytester.py:1298:23 - error: Class overlaps "PathLike" unsafely and could produce a match at runtime
+ Attributes of "PathLike" have the same names as the protocol (reportGeneralTypeIssues)
- /tmp/mypy_primer/projects/pytest/src/_pytest/python.py:978:34 - warning: Type of "pattern" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/python.py:978:34 - warning: Argument type is unknown
- Argument corresponds to parameter "val" in function "ascii_escaped" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/reports.py:205:50 - warning: Argument type is partially unknown
- Argument corresponds to parameter "obj" in function "len"
- Argument type is "Sequence[Unknown]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/reports.py:206:13 - warning: Type of "word" is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/reports.py:206:19 - warning: Type of "markup" is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/reports.py:208:24 - warning: Return type, "tuple[str, Mapping[Unknown, Unknown]]", is partially unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/pytest/src/_pytest/reports.py:208:24 - warning: Return type, "tuple[str, Mapping[Unknown, object]]", is partially unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/pytest/src/_pytest/reports.py:208:30 - error: Type "tuple[str, Mapping[Unknown, object]]" is not assignable to return type "tuple[str, Mapping[str, bool]]"
+ "Mapping[Unknown, object]" is not assignable to "Mapping[str, bool]"
+ Type parameter "_VT_co@Mapping" is covariant, but "object" is not a subtype of "bool"
+ "object" is not assignable to "bool" (reportReturnType)
- Argument type is "Mapping[Unknown, Unknown]" (reportUnknownArgumentType)
+ Argument type is "Mapping[Unknown, object]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/_code/code.py:741:21 - warning: Argument type is partially unknown
- Argument corresponds to parameter "exc_group" in function "_group_contains"
- Argument type is "BaseExceptionGroup[Unknown] | BaseExceptionGroup[BaseException]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/_code/code.py:750:51 - warning: Argument type is partially unknown
- Argument corresponds to parameter "exc" in function "_stringify_exception"
- Argument type is "BaseExceptionGroup[Unknown] | BaseExceptionGroup[BaseException] | BaseException" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/_code/code.py:789:37 - warning: Type of "value" is partially unknown
- Type of "value" is "BaseExceptionGroup[Unknown]*" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/_code/code.py:789:37 - warning: Argument type is partially unknown
- Argument corresponds to parameter "exc_group" in function "_group_contains"
- Argument type is "BaseExceptionGroup[Unknown]*" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/pytest/src/_pytest/config/__init__.py:323:21 - error: Class overlaps "PathLike" unsafely and could produce a match at runtime
+ Attributes of "PathLike" have the same names as the protocol (reportGeneralTypeIssues)
- /tmp/mypy_primer/projects/pytest/src/_pytest/config/__init__.py:1673:40 - warning: Argument type is partially unknown
- Argument corresponds to parameter "args" in function "__init__"
- Argument type is "PathLike[Unknown]" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/pytest/src/_pytest/config/__init__.py:1673:40 - error: Argument of type "PathLike[str] | PathLike[bytes]" cannot be assigned to parameter "args" of type "StrPath" in function "__new__"
+ Type "PathLike[str] | PathLike[bytes]" is not assignable to type "StrPath"
+ Type "PathLike[bytes]" is not assignable to type "StrPath"
+ "PathLike[bytes]" is not assignable to "str"
+ "PathLike[bytes]" is not assignable to "PathLike[str]"
+ Type parameter "AnyStr_co@PathLike" is covariant, but "bytes" is not a subtype of "str"
+ "bytes" is not assignable to "str" (reportArgumentType)
+ /tmp/mypy_primer/projects/pytest/src/_pytest/config/__init__.py:1673:40 - error: Argument of type "PathLike[str] | PathLike[bytes]" cannot be assigned to parameter "args" of type "StrPath" in function "__init__"
+ Type "PathLike[str] | PathLike[bytes]" is not assignable to type "StrPath"
+ Type "PathLike[bytes]" is not assignable to type "StrPath"
+ "PathLike[bytes]" is not assignable to "str"
+ "PathLike[bytes]" is not assignable to "PathLike[str]"
+ Type parameter "AnyStr_co@PathLike" is covariant, but "bytes" is not a subtype of "str"
+ "bytes" is not assignable to "str" (reportArgumentType)
- 1162 errors, 17372 warnings, 0 notes
+ 1167 errors, 17362 warnings, 0 notes
openlibrary (https://github.com/internetarchive/openlibrary)
- /tmp/mypy_primer/projects/openlibrary/openlibrary/catalog/marc/tests/test_parse.py:119:28 - error: Argument of type "Iterable[Unknown]" cannot be assigned to parameter "obj" of type "Sized" in function "len"
+ /tmp/mypy_primer/projects/openlibrary/openlibrary/catalog/marc/tests/test_parse.py:119:28 - error: Argument of type "Iterable[object]" cannot be assigned to parameter "obj" of type "Sized" in function "len"
- "Iterable[Unknown]" is incompatible with protocol "Sized"
+ "Iterable[object]" is incompatible with protocol "Sized"
- /tmp/mypy_primer/projects/openlibrary/openlibrary/catalog/marc/tests/test_parse.py:148:28 - error: Argument of type "Iterable[Unknown]" cannot be assigned to parameter "obj" of type "Sized" in function "len"
+ /tmp/mypy_primer/projects/openlibrary/openlibrary/catalog/marc/tests/test_parse.py:148:28 - error: Argument of type "Iterable[object]" cannot be assigned to parameter "obj" of type "Sized" in function "len"
- "Iterable[Unknown]" is incompatible with protocol "Sized"
+ "Iterable[object]" is incompatible with protocol "Sized"
- Argument type is "set[Unknown]" (reportUnknownArgumentType)
+ Argument type is "set[Unknown] | set[object]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/openlibrary/openlibrary/solr/updater/abstract.py:53:68 - warning: Argument type is partially unknown
- Argument corresponds to parameter "o" in function "__init__"
- Argument type is "Any | Iterable[Unknown]" (reportUnknownArgumentType)
- 1917 errors, 33669 warnings, 0 notes
+ 1917 errors, 33668 warnings, 0 notes
starlette (https://github.com/encode/starlette)
- /tmp/mypy_primer/projects/starlette/starlette/_utils.py:79:63 - warning: Type of "exceptions" is partially unknown
- Type of "exceptions" is "tuple[Unknown | BaseExceptionGroup[Unknown], ...]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/starlette/starlette/_utils.py:79:63 - warning: Argument type is partially unknown
- Argument corresponds to parameter "obj" in function "len"
- Argument type is "tuple[Unknown | BaseExceptionGroup[Unknown], ...]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/starlette/starlette/_utils.py:80:17 - warning: Type of "exc" is partially unknown
- Type of "exc" is "Unknown | BaseExceptionGroup[Unknown]" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/starlette/starlette/_utils.py:80:23 - warning: Type of "exceptions" is partially unknown
- Type of "exceptions" is "tuple[Unknown | BaseExceptionGroup[Unknown]]" (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/starlette/starlette/testclient.py:336:39 - error: Argument of type "None" cannot be assigned to parameter "arg" of type "Never" in function "send"
+ Type "None" is not assignable to type "Never" (reportArgumentType)
- /tmp/mypy_primer/projects/starlette/starlette/testclient.py:336:21 - warning: Type of "chunk" is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/starlette/starlette/testclient.py:336:29 - warning: Type of "send" is partially unknown
- Type of "send" is "(arg: Unknown, /) -> Unknown" (reportUnknownMemberType)
- 206 errors, 4252 warnings, 0 notes
+ 207 errors, 4246 warnings, 0 notes
sympy (https://github.com/sympy/sympy)
- /tmp/mypy_primer/projects/sympy/sympy/combinatorics/permutations.py:1662:20 - error: Argument of type "Iterable[Unknown]" cannot be assigned to parameter "obj" of type "Sized" in function "len"
+ /tmp/mypy_primer/projects/sympy/sympy/combinatorics/permutations.py:1662:20 - error: Argument of type "Iterable[object]" cannot be assigned to parameter "obj" of type "Sized" in function "len"
- "Iterable[Unknown]" is incompatible with protocol "Sized"
+ "Iterable[object]" is incompatible with protocol "Sized"
- /tmp/mypy_primer/projects/sympy/sympy/combinatorics/permutations.py:1664:60 - warning: Argument type is partially unknown
- Argument corresponds to parameter "args" in function "format"
- Argument type is "Iterable[Unknown]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/sympy/sympy/combinatorics/permutations.py:1665:21 - error: "__getitem__" method not defined on type "Iterable[Unknown]" (reportIndexIssue)
+ /tmp/mypy_primer/projects/sympy/sympy/combinatorics/permutations.py:1665:21 - error: "__getitem__" method not defined on type "Iterable[object]" (reportIndexIssue)
- /tmp/mypy_primer/projects/sympy/sympy/core/basic.py:412:18 - warning: Unnecessary isinstance call; "Never" is always an instance of "frozenset[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/sympy/sympy/core/basic.py:412:18 - warning: Unnecessary isinstance call; "Never" is always an instance of "frozenset[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/sympy/sympy/core/basic.py:413:34 - warning: Unnecessary isinstance call; "Never" is always an instance of "frozenset[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/sympy/sympy/core/basic.py:413:34 - warning: Unnecessary isinstance call; "Never" is always an instance of "frozenset[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/sympy/sympy/core/basic.py:414:28 - warning: Argument type is unknown
- Type of "sequence" is "ItemsView[Unknown, Unknown] | dict_items[Basic, Basic]" (reportUnknownVariableType)
+ Type of "sequence" is "ItemsView[Unknown, object] | dict_items[Basic, Basic]" (reportUnknownVariableType)
- Type of "s2" is "Unknown | Basic" (reportUnknownVariableType)
+ Type of "s2" is "Unknown | object | Basic" (reportUnknownVariableType)
- Type of "sequence" is "ItemsView[Unknown, Unknown] | dict_items[Basic, Basic]" (reportUnknownVariableType)
+ Type of "sequence" is "ItemsView[Unknown, object] | dict_items[Basic, Basic]" (reportUnknownVariableType)
- Type of "new" is "Unknown | Basic" (reportUnknownVariableType)
+ Type of "new" is "object | Basic | Unknown" (reportUnknownVariableType)
- Argument type is "ItemsView[Unknown, Unknown] | dict_items[Basic, Basic] | Unknown | list[tuple[Unknown, Unknown]]" (reportUnknownArgumentType)
+ Argument type is "ItemsView[Unknown, object] | dict_items[Basic, Basic] | Unknown | list[tuple[Unknown, Unknown]]" (reportUnknownArgumentType)
- Type of "__str__" is "((self: list[Unknown]) -> str) | ((self: tuple[Unknown, ...]) -> str) | ((self: set[Unknown]) -> str) | ((self: frozenset[Unknown]) -> str)" (reportUnknownMemberType)
+ Type of "__str__" is "((self: list[Unknown]) -> str) | ((self: tuple[Unknown, ...]) -> str) | ((self: set[Unknown]) -> str) | ((self: frozenset[object]) -> str)" (reportUnknownMemberType)
- Argument type is "list[Unknown] | tuple[Unknown, ...] | set[Unknown] | frozenset[Unknown]" (reportUnknownArgumentType)
+ Argument type is "list[Unknown] | tuple[Unknown, ...] | set[Unknown] | frozenset[object]" (reportUnknownArgumentType)
... (truncated 1935 lines) ...```
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:224:5 - warning: Return type is unknown (reportUnknownParameterType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:224:5 - warning: Return type, "object | Unknown", is partially unknown (reportUnknownParameterType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:238:20 - warning: Return type is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:253:5 - warning: Return type is unknown (reportUnknownParameterType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:253:5 - warning: Return type, "object | Unknown", is partially unknown (reportUnknownParameterType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:267:12 - warning: Return type is unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:267:12 - warning: Return type, "object | Unknown", is partially unknown (reportUnknownVariableType)
- /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 unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2219:37 - error: Operator "<=" not supported for types "object" and "int" (reportOperatorIssue)
- /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 unknown (reportUnknownMemberType)
- /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:2221:18 - error: Operator ">=" not supported for types "object" and "int" (reportOperatorIssue)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2224:17 - warning: Type of "start" is unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2224:17 - warning: Type of "start" is partially unknown
+ Type of "start" is "Unknown | Any" (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2226:36 - error: Operator ">=" not supported for types "object" and "int" (reportOperatorIssue)
- /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 unknown
- 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 unknown (reportUnknownMemberType)
- /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 unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2228:18 - error: Operator "<=" not supported for types "object" and "int" (reportOperatorIssue)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2231:17 - warning: Type of "stop" is unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2231:17 - warning: Type of "stop" is partially unknown
+ Type of "stop" is "Unknown | Any" (reportUnknownVariableType)
- /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 unknown
- Argument corresponds to parameter "i" in function "_get_by_index" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2773:9 - warning: Type of "_target" is partially unknown
- Type of "_target" is "Sequence[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2775:9 - warning: Return type is unknown (reportUnknownParameterType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2775:9 - error: Method "__getitem__" overrides class "Sequence" in an incompatible manner
+ Return type mismatch: base method returns type "Sequence[Unknown]", override returns type "object"
+ "object" is not assignable to "Sequence[Unknown]" (reportIncompatibleMethodOverride)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2776:16 - warning: Type of "_target" is partially unknown
- Type of "_target" is "Sequence[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2776:16 - warning: Return type is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2779:20 - warning: Type of "_target" is partially unknown
- Type of "_target" is "Sequence[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2779:20 - warning: Argument type is partially unknown
- Argument corresponds to parameter "obj" in function "len"
- Argument type is "Sequence[Unknown]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2782:62 - warning: Type of "_target" is partially unknown
- Type of "_target" is "Sequence[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2782:62 - warning: Argument type is partially unknown
- Argument corresponds to parameter "obj" in function "repr"
- Argument type is "Sequence[Unknown]" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:4251:12 - error: "object" is not iterable
+ "__iter__" method not defined (reportGeneralTypeIssues)
- 24 errors, 2742 warnings, 0 notes
+ 30 errors, 2721 warnings, 0 notes
starlette (https://github.com/encode/starlette)
- Type of "exceptions" is "tuple[Unknown | BaseExceptionGroup[Unknown], ...]" (reportUnknownMemberType)
+ Type of "exceptions" is "tuple[Unknown | BaseExceptionGroup[Unknown], ...] | tuple[BaseException | BaseExceptionGroup[BaseException], ...]" (reportUnknownMemberType)
- Argument type is "tuple[Unknown | BaseExceptionGroup[Unknown], ...]" (reportUnknownArgumentType)
+ Argument type is "tuple[Unknown | BaseExceptionGroup[Unknown], ...] | tuple[BaseException | BaseExceptionGroup[BaseException], ...]" (reportUnknownArgumentType)
- Type of "exc" is "Unknown | BaseExceptionGroup[Unknown]" (reportUnknownVariableType)
+ Type of "exc" is "Unknown | BaseExceptionGroup[Unknown] | BaseException | BaseExceptionGroup[BaseException]" (reportUnknownVariableType)
- Type of "exceptions" is "tuple[Unknown | BaseExceptionGroup[Unknown]]" (reportUnknownMemberType)
+ Type of "exceptions" is "tuple[Unknown | BaseExceptionGroup[Unknown]] | tuple[BaseException | BaseExceptionGroup[BaseException]]" (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/starlette/starlette/testclient.py:336:39 - error: Argument of type "None" cannot be assigned to parameter "arg" of type "Never" in function "send"
+ Type "None" is not assignable to type "Never" (reportArgumentType)
- /tmp/mypy_primer/projects/starlette/starlette/testclient.py:336:21 - warning: Type of "chunk" is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/starlette/starlette/testclient.py:336:29 - warning: Type of "send" is partially unknown
- Type of "send" is "(arg: Unknown, /) -> Unknown" (reportUnknownMemberType)
- 206 errors, 4252 warnings, 0 notes
+ 207 errors, 4250 warnings, 0 notes
mkosi (https://github.com/systemd/mkosi)
- /tmp/mypy_primer/projects/mkosi/mkosi/config.py:4924:20 - warning: Return type is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/mkosi/mkosi/config.py:4924:30 - warning: Argument type is partially unknown
- Argument corresponds to parameter "path" in function "fspath"
- Argument type is "PathLike[Unknown]" (reportUnknownArgumentType)
- 25 errors, 1559 warnings, 0 notes
+ 25 errors, 1557 warnings, 0 notes
pytest (https://github.com/pytest-dev/pytest)
- /tmp/mypy_primer/projects/pytest/src/_pytest/python.py:978:34 - warning: Type of "pattern" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/python.py:978:34 - warning: Argument type is unknown
- Argument corresponds to parameter "val" in function "ascii_escaped" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/reports.py:205:50 - warning: Argument type is partially unknown
- Argument corresponds to parameter "obj" in function "len"
- Argument type is "Sequence[Unknown]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/reports.py:206:13 - warning: Type of "word" is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/reports.py:206:19 - warning: Type of "markup" is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/reports.py:208:24 - warning: Return type, "tuple[str, Mapping[Unknown, Unknown]]", is partially unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/pytest/src/_pytest/reports.py:208:24 - warning: Return type, "tuple[str, Mapping[Unknown, object]]", is partially unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/pytest/src/_pytest/reports.py:208:30 - error: Type "tuple[str, Mapping[Unknown, object]]" is not assignable to return type "tuple[str, Mapping[str, bool]]"
+ "Mapping[Unknown, object]" is not assignable to "Mapping[str, bool]"
+ Type parameter "_VT_co@Mapping" is covariant, but "object" is not a subtype of "bool"
+ "object" is not assignable to "bool" (reportReturnType)
- Argument type is "Mapping[Unknown, Unknown]" (reportUnknownArgumentType)
+ Argument type is "Mapping[Unknown, object]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/_code/code.py:789:37 - warning: Type of "value" is partially unknown
- Type of "value" is "BaseExceptionGroup[Unknown]*" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/_code/code.py:789:37 - warning: Argument type is partially unknown
- Argument corresponds to parameter "exc_group" in function "_group_contains"
- Argument type is "BaseExceptionGroup[Unknown]*" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/config/__init__.py:1673:40 - warning: Argument type is partially unknown
- Argument corresponds to parameter "args" in function "__init__"
- Argument type is "PathLike[Unknown]" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/pytest/src/_pytest/config/__init__.py:1673:40 - error: Argument of type "PathLike[str] | PathLike[bytes]" cannot be assigned to parameter "args" of type "StrPath" in function "__new__"
+ Type "PathLike[str] | PathLike[bytes]" is not assignable to type "StrPath"
+ Type "PathLike[bytes]" is not assignable to type "StrPath"
+ "PathLike[bytes]" is not assignable to "str"
+ "PathLike[bytes]" is not assignable to "PathLike[str]"
+ Type parameter "AnyStr_co@PathLike" is covariant, but "bytes" is not a subtype of "str"
+ "bytes" is not assignable to "str" (reportArgumentType)
+ /tmp/mypy_primer/projects/pytest/src/_pytest/config/__init__.py:1673:40 - error: Argument of type "PathLike[str] | PathLike[bytes]" cannot be assigned to parameter "args" of type "StrPath" in function "__init__"
+ Type "PathLike[str] | PathLike[bytes]" is not assignable to type "StrPath"
+ Type "PathLike[bytes]" is not assignable to type "StrPath"
+ "PathLike[bytes]" is not assignable to "str"
+ "PathLike[bytes]" is not assignable to "PathLike[str]"
+ Type parameter "AnyStr_co@PathLike" is covariant, but "bytes" is not a subtype of "str"
+ "bytes" is not assignable to "str" (reportArgumentType)
- 1162 errors, 17372 warnings, 0 notes
+ 1165 errors, 17364 warnings, 0 notes
yarl (https://github.com/aio-libs/yarl)
- /tmp/mypy_primer/projects/yarl/yarl/_url.py:1232:14 - warning: Unnecessary isinstance call; "Never" is always an instance of "Sequence[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/yarl/yarl/_url.py:1232:14 - warning: Unnecessary isinstance call; "Never" is always an instance of "Sequence[object]" (reportUnnecessaryIsInstance)
openlibrary (https://github.com/internetarchive/openlibrary)
- /tmp/mypy_primer/projects/openlibrary/openlibrary/catalog/marc/tests/test_parse.py:119:28 - error: Argument of type "Iterable[Unknown]" cannot be assigned to parameter "obj" of type "Sized" in function "len"
+ /tmp/mypy_primer/projects/openlibrary/openlibrary/catalog/marc/tests/test_parse.py:119:28 - error: Argument of type "Iterable[object]" cannot be assigned to parameter "obj" of type "Sized" in function "len"
- "Iterable[Unknown]" is incompatible with protocol "Sized"
+ "Iterable[object]" is incompatible with protocol "Sized"
- /tmp/mypy_primer/projects/openlibrary/openlibrary/catalog/marc/tests/test_parse.py:148:28 - error: Argument of type "Iterable[Unknown]" cannot be assigned to parameter "obj" of type "Sized" in function "len"
+ /tmp/mypy_primer/projects/openlibrary/openlibrary/catalog/marc/tests/test_parse.py:148:28 - error: Argument of type "Iterable[object]" cannot be assigned to parameter "obj" of type "Sized" in function "len"
- "Iterable[Unknown]" is incompatible with protocol "Sized"
+ "Iterable[object]" is incompatible with protocol "Sized"
- Argument type is "set[Unknown]" (reportUnknownArgumentType)
+ Argument type is "set[Unknown] | set[object]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/openlibrary/openlibrary/solr/updater/abstract.py:53:68 - warning: Argument type is partially unknown
- Argument corresponds to parameter "o" in function "__init__"
- Argument type is "Any | Iterable[Unknown]" (reportUnknownArgumentType)
- 1917 errors, 33669 warnings, 0 notes
+ 1917 errors, 33668 warnings, 0 notes
ibis (https://github.com/ibis-project/ibis)
- /tmp/mypy_primer/projects/ibis/ibis/util.py:650:13 - warning: Type of "hashable_obj" is partially unknown
- Type of "hashable_obj" is "tuple[Unknown, ...]*" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/ibis/ibis/util.py:650:34 - warning: Argument type is partially unknown
- Argument corresponds to parameter "iterable" in function "__new__"
- Argument type is "Sequence[Unknown]*" (reportUnknownArgumentType)
- Type of "hashable_obj" is "tuple[tuple[Unknown, Unknown], ...]" (reportUnknownVariableType)
+ Type of "hashable_obj" is "tuple[tuple[Unknown, object], ...]" (reportUnknownVariableType)
- Argument type is "ItemsView[Unknown, Unknown]" (reportUnknownArgumentType)
+ Argument type is "ItemsView[Unknown, object]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/ibis/ibis/util.py:654:13 - warning: Type of "hashable_obj" is partially unknown
- Type of "hashable_obj" is "frozenset[Unknown]*" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/ibis/ibis/util.py:654:38 - warning: Argument type is partially unknown
- Argument corresponds to parameter "iterable" in function "__new__"
- Argument type is "AbstractSet[Unknown]*" (reportUnknownArgumentType)
- Argument type is "tuple[type[Sequence[Unknown]]* | type[Mapping[Unknown, Unknown]]* | type[AbstractSet[Unknown]]* | type[object]*, tuple[Unknown, ...]* | tuple[tuple[Unknown, Unknown], ...] | frozenset[Unknown]* | int*]" (reportUnknownArgumentType)
+ Argument type is "tuple[type[Sequence[object]]* | type[Mapping[Unknown, object]]* | type[AbstractSet[object]]* | type[object]*, tuple[object, ...]* | tuple[tuple[Unknown, object], ...] | frozenset[object]* | int*]" (reportUnknownArgumentType)
- Argument type is "Sequence[Unknown]* | Mapping[Unknown, Unknown]* | AbstractSet[Unknown]* | object*" (reportUnknownArgumentType)
+ Argument type is "Sequence[object]* | Mapping[Unknown, object]* | AbstractSet[object]* | object*" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/__init__.py:443:9 - warning: Return type, "tuple[type[Value[Unknown, Unknown]], ...]", is partially unknown (reportUnknownParameterType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/__init__.py:444:16 - warning: Return type, "tuple[type[Value[Unknown, Unknown]], ...]", is partially unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/__init__.py:444:22 - warning: Argument type is partially unknown
- Argument corresponds to parameter "iterable" in function "__new__"
- Argument type is "Generator[type[Value[Unknown, Unknown]], None, None]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/__init__.py:455:9 - warning: Type of "op_classes" is partially unknown
- Type of "op_classes" is "tuple[type[Value[Unknown, Unknown]], ...]" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/__init__.py:455:22 - warning: Type of "_get_operations" is partially unknown
- Type of "_get_operations" is "_lru_cache_wrapper[tuple[type[Value[Unknown, Unknown]], ...]]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:379:13 - warning: Type of "repl" is partially unknown
- Type of "repl" is "Unknown | None" (reportUnknownVariableType)
- Type of "get" is "Overload[(key: Unknown, /) -> (Unknown | None), (key: Unknown, /, default: Unknown | _T@get) -> (Unknown | _T@get)]" (reportUnknownMemberType)
+ Type of "get" is "Overload[(key: Unknown, /) -> (object | None), (key: Unknown, /, default: object | _T@get) -> (object | _T@get)]" (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:381:29 - error: Cannot access attribute "value" for class "object"
+ Attribute "value" is unknown (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:891:8 - warning: Type of "dtype" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:891:17 - error: Cannot access attribute "unit" for class "DataType"
+ Attribute "unit" is unknown (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:894:18 - warning: Type of "dtype" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:894:27 - error: Cannot access attribute "unit" for class "DataType"
+ Attribute "unit" is unknown (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:1391:12 - warning: Type of "step" is partially unknown
- Type of "step" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:1410:12 - warning: Type of "step" is partially unknown
- Type of "step" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:1411:12 - warning: Type of "step" is partially unknown
- Type of "step" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:1411:12 - warning: Type of "dtype" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:1411:26 - error: Cannot access attribute "unit" for class "DataType"
+ Attribute "unit" is unknown (reportAttributeAccessIssue)
- Type of "mapping" is "Mapping[Unknown, Unknown]" (reportUnknownVariableType)
+ Type of "mapping" is "Mapping[Unknown, object]" (reportUnknownVariableType)
- Type of "replacements" is "Mapping[Unknown, Unknown]" (reportUnknownMemberType)
+ Type of "replacements" is "Mapping[Unknown, object]" (reportUnknownMemberType)
- Type of "value" is "Unknown | None" (reportUnknownVariableType)
+ Type of "value" is "Unknown | object | None" (reportUnknownVariableType)
- Type of "get" is "Overload[(key: Unknown, /) -> (Unknown | None), (key: Unknown, /, default: Unknown | _T@get) -> (Unknown | _T@get)] | Overload[(key: Unknown, /) -> (Unknown | None), (key: Unknown, default: Unknown, /) -> Unknown, (key: Unknown, default: _T@get, /) -> (Unknown | _T@get)]" (reportUnknownMemberType)
+ Type of "get" is "Overload[(key: Unknown, /) -> (object | None), (key: Unknown, /, default: object | _T@get) -> (object | _T@get)] | Overload[(key: Unknown, /) -> (Unknown | None), (key: Unknown, default: Unknown, /) -> Unknown, (key: Unknown, default: _T@get, /) -> (Unknown | _T@get)]" (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/ibis/ibis/backends/sql/rewrites.py:168:38 - error: Argument of type "tuple[Field, Unknown | object]" cannot be assigned to parameter "arg" of type "VarTuple[Value[Unknown, Any]]" in function "__init__"
+ Type "Unknown | object" is not assignable to type "Value[Unknown, Any]"
+ "object" is not assignable to "Value[Unknown, Any]" (reportArgumentType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/rewrites.py:481:27 - warning: Type of "nth" is partially unknown
- Type of "nth" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/rewrites.py:481:50 - warning: Type of "nth" is partially unknown
- Type of "nth" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/rewrites.py:481:50 - warning: Type of "dtype" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/rewrites.py:481:50 - warning: Argument type is unknown
- Argument corresponds to parameter "dtype" in function "__init__" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/base.py:1000:61 - warning: Type of "length" is partially unknown
- Type of "length" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/clickhouse.py:707:22 - warning: Type of "step" is partially unknown
- Type of "step" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/duckdb.py:188:21 - warning: Type of "start" is partially unknown
- Type of "start" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/duckdb.py:196:24 - warning: Type of "stop" is partially unknown
- Type of "stop" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/flink.py:342:9 - warning: Type of "idx" is partially unknown
- Type of "idx" is "Literal[Unknown]" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/flink.py:342:15 - warning: Type of "index" is partially unknown
- Type of "index" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/flink.py:344:12 - warning: Type of "dtype" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/flink.py:344:12 - warning: Type of "is_integer" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/flink.py:347:20 - warning: Type of "dtype" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/flink.py:347:20 - warning: Type of "is_string" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/flink.py:347:43 - warning: Type of "dtype" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/impala.py:240:13 - warning: Type of "format_str" is partially unknown
- Type of "format_str" is "Literal[Unknown]" (reportUnknownMemberType)
... (truncated 133 lines) ...
sympy (https://github.com/sympy/sympy)
- /tmp/mypy_primer/projects/sympy/sympy/combinatorics/permutations.py:1662:20 - error: Argument of type "Iterable[Unknown]" cannot be assigned to parameter "obj" of type "Sized" in function "len"
+ /tmp/mypy_primer/projects/sympy/sympy/combinatorics/permutations.py:1662:20 - error: Argument of type "Iterable[object]" cannot be assigned to parameter "obj" of type "Sized" in function "len"
- "Iterable[Unknown]" is incompatible with protocol "Sized"
+ "Iterable[object]" is incompatible with protocol "Sized"
- /tmp/mypy_primer/projects/sympy/sympy/combinatorics/permutations.py:1664:60 - warning: Argument type is partially unknown
- Argument corresponds to parameter "args" in function "format"
- Argument type is "Iterable[Unknown]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/sympy/sympy/combinatorics/permutations.py:1665:21 - error: "__getitem__" method not defined on type "Iterable[Unknown]" (reportIndexIssue)
+ /tmp/mypy_primer/projects/sympy/sympy/combinatorics/permutations.py:1665:21 - error: "__getitem__" method not defined on type "Iterable[object]" (reportIndexIssue)
- /tmp/mypy_primer/projects/sympy/sympy/core/basic.py:412:18 - warning: Unnecessary isinstance call; "Never" is always an instance of "frozenset[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/sympy/sympy/core/basic.py:412:18 - warning: Unnecessary isinstance call; "Never" is always an instance of "frozenset[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/sympy/sympy/core/basic.py:413:34 - warning: Unnecessary isinstance call; "Never" is always an instance of "frozenset[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/sympy/sympy/core/basic.py:413:34 - warning: Unnecessary isinstance call; "Never" is always an instance of "frozenset[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/sympy/sympy/core/basic.py:414:28 - warning: Argument type is unknown
- Type of "sequence" is "ItemsView[Unknown, Unknown] | dict_items[Basic, Basic]" (reportUnknownVariableType)
+ Type of "sequence" is "ItemsView[Unknown, object] | dict_items[Basic, Basic]" (reportUnknownVariableType)
- Type of "s2" is "Unknown | Basic" (reportUnknownVariableType)
+ Type of "s2" is "Unknown | object | Basic" (reportUnknownVariableType)
- Type of "sequence" is "ItemsView[Unknown, Unknown] | dict_items[Basic, Basic]" (reportUnknownVariableType)
+ Type of "sequence" is "ItemsView[Unknown, object] | dict_items[Basic, Basic]" (reportUnknownVariableType)
- Type of "new" is "Unknown | Basic" (reportUnknownVariableType)
+ Type of "new" is "object | Basic | Unknown" (reportUnknownVariableType)
- Argument type is "ItemsView[Unknown, Unknown] | dict_items[Basic, Basic] | Unknown | list[tuple[Unknown, Unknown]]" (reportUnknownArgumentType)
+ Argument type is "ItemsView[Unknown, object] | dict_items[Basic, Basic] | Unknown | list[tuple[Unknown, Unknown]]" (reportUnknownArgumentType)
- Type of "__str__" is "((self: list[Unknown]) -> str) | ((self: tuple[Unknown, ...]) -> str) | ((self: set[Unknown]) -> str) | ((self: frozenset[Unknown]) -> str)" (reportUnknownMemberType)
+ Type of "__str__" is "((self: list[Unknown]) -> str) | ((self: tuple[Unknown, ...]) -> str) | ((self: set[Unknown]) -> str) | ((self: frozenset[object]) -> str)" (reportUnknownMemberType)
- Argument type is "list[Unknown] | tuple[Unknown, ...] | set[Unknown] | frozenset[Unknown]" (reportUnknownArgumentType)
+ Argument type is "list[Unknown] | tuple[Unknown, ...] | set[Unknown] | frozenset[object]" (reportUnknownArgumentType)
- Type of "__repr__" is "((self: list[Unknown]) -> str) | ((self: tuple[Unknown, ...]) -> str) | ((self: set[Unknown]) -> str) | ((self: frozenset[Unknown]) -> str)" (reportUnknownMemberType)
+ Type of "__repr__" is "((self: list[Unknown]) -> str) | ((self: tuple[Unknown, ...]) -> str) | ((self: set[Unknown]) -> str) | ((self: frozenset[object]) -> str)" (reportUnknownMemberType)
- Argument type is "list[Unknown] | tuple[Unknown, ...] | set[Unknown] | frozenset[Unknown]" (reportUnknownArgumentType)
+ Argument type is "list[Unknown] | tuple[Unknown, ...] | set[Unknown] | frozenset[object]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/sympy/sympy/interactive/printing.py:149:39 - warning: Argument type is unknown
+ /tmp/mypy_primer/projects/sympy/sympy/interactive/printing.py:149:46 - warning: Type of "i" is partially unknown
+ Type of "i" is "Unknown | object" (reportUnknownVariableType)
- Argument corresponds to parameter "o" in function "_can_print" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/sympy/sympy/interactive/printing.py:149:46 - warning: Type of "i" is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/sympy/sympy/matrices/common.py:2293:62 - warning: Argument type is partially unknown
- Argument corresponds to parameter "iterable" in function "__init__"
- Argument type is "Permutation | Iterable[Unknown]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/sympy/sympy/matrices/common.py:2297:24 - error: "__getitem__" method not defined on type "Iterable[Unknown]" (reportIndexIssue)
... (truncated 1704 lines) ...```
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:224:5 - warning: Return type is unknown (reportUnknownParameterType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:224:5 - warning: Return type, "object | Unknown", is partially unknown (reportUnknownParameterType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:238:20 - warning: Return type is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:253:5 - warning: Return type is unknown (reportUnknownParameterType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:253:5 - warning: Return type, "object | Unknown", is partially unknown (reportUnknownParameterType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:267:12 - warning: Return type is unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:267:12 - warning: Return type, "object | Unknown", is partially unknown (reportUnknownVariableType)
- /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 unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2219:37 - error: Operator "<=" not supported for types "object" and "int" (reportOperatorIssue)
- /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 unknown (reportUnknownMemberType)
- /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:2221:18 - error: Operator ">=" not supported for types "object" and "int" (reportOperatorIssue)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2224:17 - warning: Type of "start" is unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2224:17 - warning: Type of "start" is partially unknown
+ Type of "start" is "Unknown | Any" (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2226:36 - error: Operator ">=" not supported for types "object" and "int" (reportOperatorIssue)
- /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 unknown
- 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 unknown (reportUnknownMemberType)
- /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 unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2228:18 - error: Operator "<=" not supported for types "object" and "int" (reportOperatorIssue)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2231:17 - warning: Type of "stop" is unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2231:17 - warning: Type of "stop" is partially unknown
+ Type of "stop" is "Unknown | Any" (reportUnknownVariableType)
- /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 unknown
- Argument corresponds to parameter "i" in function "_get_by_index" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2773:9 - warning: Type of "_target" is partially unknown
- Type of "_target" is "Sequence[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2775:9 - warning: Return type is unknown (reportUnknownParameterType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2775:9 - error: Method "__getitem__" overrides class "Sequence" in an incompatible manner
+ Return type mismatch: base method returns type "Sequence[Unknown]", override returns type "object"
+ "object" is not assignable to "Sequence[Unknown]" (reportIncompatibleMethodOverride)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2776:16 - warning: Type of "_target" is partially unknown
- Type of "_target" is "Sequence[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2776:16 - warning: Return type is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2779:20 - warning: Type of "_target" is partially unknown
- Type of "_target" is "Sequence[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2779:20 - warning: Argument type is partially unknown
- Argument corresponds to parameter "obj" in function "len"
- Argument type is "Sequence[Unknown]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2782:62 - warning: Type of "_target" is partially unknown
- Type of "_target" is "Sequence[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2782:62 - warning: Argument type is partially unknown
- Argument corresponds to parameter "obj" in function "repr"
- Argument type is "Sequence[Unknown]" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:4251:12 - error: "object" is not iterable
+ "__iter__" method not defined (reportGeneralTypeIssues)
- 24 errors, 2742 warnings, 0 notes
+ 30 errors, 2721 warnings, 0 notes
mkosi (https://github.com/systemd/mkosi)
- /tmp/mypy_primer/projects/mkosi/mkosi/config.py:4924:20 - warning: Return type is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/mkosi/mkosi/config.py:4924:30 - warning: Argument type is partially unknown
- Argument corresponds to parameter "path" in function "fspath"
- Argument type is "PathLike[Unknown]" (reportUnknownArgumentType)
- 25 errors, 1559 warnings, 0 notes
+ 25 errors, 1557 warnings, 0 notes
starlette (https://github.com/encode/starlette)
- Type of "exceptions" is "tuple[Unknown | BaseExceptionGroup[Unknown], ...]" (reportUnknownMemberType)
+ Type of "exceptions" is "tuple[Unknown | BaseExceptionGroup[Unknown], ...] | tuple[BaseException | BaseExceptionGroup[BaseException], ...]" (reportUnknownMemberType)
- Argument type is "tuple[Unknown | BaseExceptionGroup[Unknown], ...]" (reportUnknownArgumentType)
+ Argument type is "tuple[Unknown | BaseExceptionGroup[Unknown], ...] | tuple[BaseException | BaseExceptionGroup[BaseException], ...]" (reportUnknownArgumentType)
- Type of "exc" is "Unknown | BaseExceptionGroup[Unknown]" (reportUnknownVariableType)
+ Type of "exc" is "Unknown | BaseExceptionGroup[Unknown] | BaseException | BaseExceptionGroup[BaseException]" (reportUnknownVariableType)
- Type of "exceptions" is "tuple[Unknown | BaseExceptionGroup[Unknown]]" (reportUnknownMemberType)
+ Type of "exceptions" is "tuple[Unknown | BaseExceptionGroup[Unknown]] | tuple[BaseException | BaseExceptionGroup[BaseException]]" (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/starlette/starlette/testclient.py:336:39 - error: Argument of type "None" cannot be assigned to parameter "arg" of type "Never" in function "send"
+ Type "None" is not assignable to type "Never" (reportArgumentType)
- /tmp/mypy_primer/projects/starlette/starlette/testclient.py:336:21 - warning: Type of "chunk" is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/starlette/starlette/testclient.py:336:29 - warning: Type of "send" is partially unknown
- Type of "send" is "(arg: Unknown, /) -> Unknown" (reportUnknownMemberType)
- 206 errors, 4252 warnings, 0 notes
+ 207 errors, 4250 warnings, 0 notes
openlibrary (https://github.com/internetarchive/openlibrary)
- /tmp/mypy_primer/projects/openlibrary/openlibrary/catalog/marc/tests/test_parse.py:119:28 - error: Argument of type "Iterable[Unknown]" cannot be assigned to parameter "obj" of type "Sized" in function "len"
+ /tmp/mypy_primer/projects/openlibrary/openlibrary/catalog/marc/tests/test_parse.py:119:28 - error: Argument of type "Iterable[object]" cannot be assigned to parameter "obj" of type "Sized" in function "len"
- "Iterable[Unknown]" is incompatible with protocol "Sized"
+ "Iterable[object]" is incompatible with protocol "Sized"
- /tmp/mypy_primer/projects/openlibrary/openlibrary/catalog/marc/tests/test_parse.py:148:28 - error: Argument of type "Iterable[Unknown]" cannot be assigned to parameter "obj" of type "Sized" in function "len"
+ /tmp/mypy_primer/projects/openlibrary/openlibrary/catalog/marc/tests/test_parse.py:148:28 - error: Argument of type "Iterable[object]" cannot be assigned to parameter "obj" of type "Sized" in function "len"
- "Iterable[Unknown]" is incompatible with protocol "Sized"
+ "Iterable[object]" is incompatible with protocol "Sized"
- Argument type is "set[Unknown]" (reportUnknownArgumentType)
+ Argument type is "set[Unknown] | set[object]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/openlibrary/openlibrary/solr/updater/abstract.py:53:68 - warning: Argument type is partially unknown
- Argument corresponds to parameter "o" in function "__init__"
- Argument type is "Any | Iterable[Unknown]" (reportUnknownArgumentType)
- 1917 errors, 33669 warnings, 0 notes
+ 1917 errors, 33668 warnings, 0 notes
yarl (https://github.com/aio-libs/yarl)
- /tmp/mypy_primer/projects/yarl/yarl/_url.py:1232:14 - warning: Unnecessary isinstance call; "Never" is always an instance of "Sequence[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/yarl/yarl/_url.py:1232:14 - warning: Unnecessary isinstance call; "Never" is always an instance of "Sequence[object]" (reportUnnecessaryIsInstance)
pytest (https://github.com/pytest-dev/pytest)
- /tmp/mypy_primer/projects/pytest/src/_pytest/python.py:978:34 - warning: Type of "pattern" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/python.py:978:34 - warning: Argument type is unknown
- Argument corresponds to parameter "val" in function "ascii_escaped" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/reports.py:205:50 - warning: Argument type is partially unknown
- Argument corresponds to parameter "obj" in function "len"
- Argument type is "Sequence[Unknown]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/reports.py:206:13 - warning: Type of "word" is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/reports.py:206:19 - warning: Type of "markup" is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/reports.py:208:24 - warning: Return type, "tuple[str, Mapping[Unknown, Unknown]]", is partially unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/pytest/src/_pytest/reports.py:208:24 - warning: Return type, "tuple[str, Mapping[Unknown, object]]", is partially unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/pytest/src/_pytest/reports.py:208:30 - error: Type "tuple[str, Mapping[Unknown, object]]" is not assignable to return type "tuple[str, Mapping[str, bool]]"
+ "Mapping[Unknown, object]" is not assignable to "Mapping[str, bool]"
+ Type parameter "_VT_co@Mapping" is covariant, but "object" is not a subtype of "bool"
+ "object" is not assignable to "bool" (reportReturnType)
- Argument type is "Mapping[Unknown, Unknown]" (reportUnknownArgumentType)
+ Argument type is "Mapping[Unknown, object]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/_code/code.py:789:37 - warning: Type of "value" is partially unknown
- Type of "value" is "BaseExceptionGroup[Unknown]*" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/_code/code.py:789:37 - warning: Argument type is partially unknown
- Argument corresponds to parameter "exc_group" in function "_group_contains"
- Argument type is "BaseExceptionGroup[Unknown]*" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/config/__init__.py:1673:40 - warning: Argument type is partially unknown
- Argument corresponds to parameter "args" in function "__init__"
- Argument type is "PathLike[Unknown]" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/pytest/src/_pytest/config/__init__.py:1673:40 - error: Argument of type "PathLike[str] | PathLike[bytes]" cannot be assigned to parameter "args" of type "StrPath" in function "__new__"
+ Type "PathLike[str] | PathLike[bytes]" is not assignable to type "StrPath"
+ Type "PathLike[bytes]" is not assignable to type "StrPath"
+ "PathLike[bytes]" is not assignable to "str"
+ "PathLike[bytes]" is not assignable to "PathLike[str]"
+ Type parameter "AnyStr_co@PathLike" is covariant, but "bytes" is not a subtype of "str"
+ "bytes" is not assignable to "str" (reportArgumentType)
+ /tmp/mypy_primer/projects/pytest/src/_pytest/config/__init__.py:1673:40 - error: Argument of type "PathLike[str] | PathLike[bytes]" cannot be assigned to parameter "args" of type "StrPath" in function "__init__"
+ Type "PathLike[str] | PathLike[bytes]" is not assignable to type "StrPath"
+ Type "PathLike[bytes]" is not assignable to type "StrPath"
+ "PathLike[bytes]" is not assignable to "str"
+ "PathLike[bytes]" is not assignable to "PathLike[str]"
+ Type parameter "AnyStr_co@PathLike" is covariant, but "bytes" is not a subtype of "str"
+ "bytes" is not assignable to "str" (reportArgumentType)
- 1162 errors, 17372 warnings, 0 notes
+ 1165 errors, 17364 warnings, 0 notes
ibis (https://github.com/ibis-project/ibis)
- /tmp/mypy_primer/projects/ibis/ibis/util.py:650:13 - warning: Type of "hashable_obj" is partially unknown
- Type of "hashable_obj" is "tuple[Unknown, ...]*" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/ibis/ibis/util.py:650:34 - warning: Argument type is partially unknown
- Argument corresponds to parameter "iterable" in function "__new__"
- Argument type is "Sequence[Unknown]*" (reportUnknownArgumentType)
- Type of "hashable_obj" is "tuple[tuple[Unknown, Unknown], ...]" (reportUnknownVariableType)
+ Type of "hashable_obj" is "tuple[tuple[Unknown, object], ...]" (reportUnknownVariableType)
- Argument type is "ItemsView[Unknown, Unknown]" (reportUnknownArgumentType)
+ Argument type is "ItemsView[Unknown, object]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/ibis/ibis/util.py:654:13 - warning: Type of "hashable_obj" is partially unknown
- Type of "hashable_obj" is "frozenset[Unknown]*" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/ibis/ibis/util.py:654:38 - warning: Argument type is partially unknown
- Argument corresponds to parameter "iterable" in function "__new__"
- Argument type is "AbstractSet[Unknown]*" (reportUnknownArgumentType)
- Argument type is "tuple[type[Sequence[Unknown]]* | type[Mapping[Unknown, Unknown]]* | type[AbstractSet[Unknown]]* | type[object]*, tuple[Unknown, ...]* | tuple[tuple[Unknown, Unknown], ...] | frozenset[Unknown]* | int*]" (reportUnknownArgumentType)
+ Argument type is "tuple[type[Sequence[object]]* | type[Mapping[Unknown, object]]* | type[AbstractSet[object]]* | type[object]*, tuple[object, ...]* | tuple[tuple[Unknown, object], ...] | frozenset[object]* | int*]" (reportUnknownArgumentType)
- Argument type is "Sequence[Unknown]* | Mapping[Unknown, Unknown]* | AbstractSet[Unknown]* | object*" (reportUnknownArgumentType)
+ Argument type is "Sequence[object]* | Mapping[Unknown, object]* | AbstractSet[object]* | object*" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/__init__.py:443:9 - warning: Return type, "tuple[type[Value[Unknown, Unknown]], ...]", is partially unknown (reportUnknownParameterType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/__init__.py:444:16 - warning: Return type, "tuple[type[Value[Unknown, Unknown]], ...]", is partially unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/__init__.py:444:22 - warning: Argument type is partially unknown
- Argument corresponds to parameter "iterable" in function "__new__"
- Argument type is "Generator[type[Value[Unknown, Unknown]], None, None]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/__init__.py:455:9 - warning: Type of "op_classes" is partially unknown
- Type of "op_classes" is "tuple[type[Value[Unknown, Unknown]], ...]" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/__init__.py:455:22 - warning: Type of "_get_operations" is partially unknown
- Type of "_get_operations" is "_lru_cache_wrapper[tuple[type[Value[Unknown, Unknown]], ...]]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:379:13 - warning: Type of "repl" is partially unknown
- Type of "repl" is "Unknown | None" (reportUnknownVariableType)
- Type of "get" is "Overload[(key: Unknown, /) -> (Unknown | None), (key: Unknown, /, default: Unknown | _T@get) -> (Unknown | _T@get)]" (reportUnknownMemberType)
+ Type of "get" is "Overload[(key: Unknown, /) -> (object | None), (key: Unknown, /, default: object | _T@get) -> (object | _T@get)]" (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:381:29 - error: Cannot access attribute "value" for class "object"
+ Attribute "value" is unknown (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:891:8 - warning: Type of "dtype" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:891:17 - error: Cannot access attribute "unit" for class "DataType"
+ Attribute "unit" is unknown (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:894:18 - warning: Type of "dtype" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:894:27 - error: Cannot access attribute "unit" for class "DataType"
+ Attribute "unit" is unknown (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:1391:12 - warning: Type of "step" is partially unknown
- Type of "step" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:1410:12 - warning: Type of "step" is partially unknown
- Type of "step" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:1411:12 - warning: Type of "step" is partially unknown
- Type of "step" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:1411:12 - warning: Type of "dtype" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:1411:26 - error: Cannot access attribute "unit" for class "DataType"
+ Attribute "unit" is unknown (reportAttributeAccessIssue)
- Type of "mapping" is "Mapping[Unknown, Unknown]" (reportUnknownVariableType)
+ Type of "mapping" is "Mapping[Unknown, object]" (reportUnknownVariableType)
- Type of "replacements" is "Mapping[Unknown, Unknown]" (reportUnknownMemberType)
+ Type of "replacements" is "Mapping[Unknown, object]" (reportUnknownMemberType)
- Type of "value" is "Unknown | None" (reportUnknownVariableType)
+ Type of "value" is "Unknown | object | None" (reportUnknownVariableType)
- Type of "get" is "Overload[(key: Unknown, /) -> (Unknown | None), (key: Unknown, /, default: Unknown | _T@get) -> (Unknown | _T@get)] | Overload[(key: Unknown, /) -> (Unknown | None), (key: Unknown, default: Unknown, /) -> Unknown, (key: Unknown, default: _T@get, /) -> (Unknown | _T@get)]" (reportUnknownMemberType)
+ Type of "get" is "Overload[(key: Unknown, /) -> (object | None), (key: Unknown, /, default: object | _T@get) -> (object | _T@get)] | Overload[(key: Unknown, /) -> (Unknown | None), (key: Unknown, default: Unknown, /) -> Unknown, (key: Unknown, default: _T@get, /) -> (Unknown | _T@get)]" (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/ibis/ibis/backends/sql/rewrites.py:168:38 - error: Argument of type "tuple[Field, Unknown | object]" cannot be assigned to parameter "arg" of type "VarTuple[Value[Unknown, Any]]" in function "__init__"
+ Type "Unknown | object" is not assignable to type "Value[Unknown, Any]"
+ "object" is not assignable to "Value[Unknown, Any]" (reportArgumentType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/rewrites.py:481:27 - warning: Type of "nth" is partially unknown
- Type of "nth" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/rewrites.py:481:50 - warning: Type of "nth" is partially unknown
- Type of "nth" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/rewrites.py:481:50 - warning: Type of "dtype" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/rewrites.py:481:50 - warning: Argument type is unknown
- Argument corresponds to parameter "dtype" in function "__init__" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/base.py:1000:61 - warning: Type of "length" is partially unknown
- Type of "length" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/clickhouse.py:707:22 - warning: Type of "step" is partially unknown
- Type of "step" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/duckdb.py:188:21 - warning: Type of "start" is partially unknown
- Type of "start" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/duckdb.py:196:24 - warning: Type of "stop" is partially unknown
- Type of "stop" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/flink.py:342:9 - warning: Type of "idx" is partially unknown
- Type of "idx" is "Literal[Unknown]" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/flink.py:342:15 - warning: Type of "index" is partially unknown
- Type of "index" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/flink.py:344:12 - warning: Type of "dtype" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/flink.py:344:12 - warning: Type of "is_integer" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/flink.py:347:20 - warning: Type of "dtype" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/flink.py:347:20 - warning: Type of "is_string" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/flink.py:347:43 - warning: Type of "dtype" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/impala.py:240:13 - warning: Type of "format_str" is partially unknown
- Type of "format_str" is "Literal[Unknown]" (reportUnknownMemberType)
... (truncated 133 lines) ...
sympy (https://github.com/sympy/sympy)
- /tmp/mypy_primer/projects/sympy/sympy/combinatorics/permutations.py:1662:20 - error: Argument of type "Iterable[Unknown]" cannot be assigned to parameter "obj" of type "Sized" in function "len"
+ /tmp/mypy_primer/projects/sympy/sympy/combinatorics/permutations.py:1662:20 - error: Argument of type "Iterable[object]" cannot be assigned to parameter "obj" of type "Sized" in function "len"
- "Iterable[Unknown]" is incompatible with protocol "Sized"
+ "Iterable[object]" is incompatible with protocol "Sized"
- /tmp/mypy_primer/projects/sympy/sympy/combinatorics/permutations.py:1664:60 - warning: Argument type is partially unknown
- Argument corresponds to parameter "args" in function "format"
- Argument type is "Iterable[Unknown]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/sympy/sympy/combinatorics/permutations.py:1665:21 - error: "__getitem__" method not defined on type "Iterable[Unknown]" (reportIndexIssue)
+ /tmp/mypy_primer/projects/sympy/sympy/combinatorics/permutations.py:1665:21 - error: "__getitem__" method not defined on type "Iterable[object]" (reportIndexIssue)
- /tmp/mypy_primer/projects/sympy/sympy/core/basic.py:412:18 - warning: Unnecessary isinstance call; "Never" is always an instance of "frozenset[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/sympy/sympy/core/basic.py:412:18 - warning: Unnecessary isinstance call; "Never" is always an instance of "frozenset[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/sympy/sympy/core/basic.py:413:34 - warning: Unnecessary isinstance call; "Never" is always an instance of "frozenset[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/sympy/sympy/core/basic.py:413:34 - warning: Unnecessary isinstance call; "Never" is always an instance of "frozenset[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/sympy/sympy/core/basic.py:414:28 - warning: Argument type is unknown
- Argument corresponds to parameter "args" in function "__new__" (reportUnknownArgumentType)
- Type of "sequence" is "ItemsView[Unknown, Unknown] | dict_items[Basic, Basic]" (reportUnknownVariableType)
+ Type of "sequence" is "ItemsView[Unknown, object] | dict_items[Basic, Basic]" (reportUnknownVariableType)
- Type of "s2" is "Unknown | Basic" (reportUnknownVariableType)
+ Type of "s2" is "Unknown | object | Basic" (reportUnknownVariableType)
- Type of "sequence" is "ItemsView[Unknown, Unknown] | dict_items[Basic, Basic]" (reportUnknownVariableType)
+ Type of "sequence" is "ItemsView[Unknown, object] | dict_items[Basic, Basic]" (reportUnknownVariableType)
- Type of "new" is "Unknown | Basic" (reportUnknownVariableType)
+ Type of "new" is "object | Basic | Unknown" (reportUnknownVariableType)
- Argument type is "ItemsView[Unknown, Unknown] | dict_items[Basic, Basic] | Unknown | list[tuple[Unknown, Unknown]]" (reportUnknownArgumentType)
+ Argument type is "ItemsView[Unknown, object] | dict_items[Basic, Basic] | Unknown | list[tuple[Unknown, Unknown]]" (reportUnknownArgumentType)
- Type of "__str__" is "((self: list[Unknown]) -> str) | ((self: tuple[Unknown, ...]) -> str) | ((self: set[Unknown]) -> str) | ((self: frozenset[Unknown]) -> str)" (reportUnknownMemberType)
+ Type of "__str__" is "((self: list[Unknown]) -> str) | ((self: tuple[Unknown, ...]) -> str) | ((self: set[Unknown]) -> str) | ((self: frozenset[object]) -> str)" (reportUnknownMemberType)
- Argument type is "list[Unknown] | tuple[Unknown, ...] | set[Unknown] | frozenset[Unknown]" (reportUnknownArgumentType)
+ Argument type is "list[Unknown] | tuple[Unknown, ...] | set[Unknown] | frozenset[object]" (reportUnknownArgumentType)
- Type of "__repr__" is "((self: list[Unknown]) -> str) | ((self: tuple[Unknown, ...]) -> str) | ((self: set[Unknown]) -> str) | ((self: frozenset[Unknown]) -> str)" (reportUnknownMemberType)
+ Type of "__repr__" is "((self: list[Unknown]) -> str) | ((self: tuple[Unknown, ...]) -> str) | ((self: set[Unknown]) -> str) | ((self: frozenset[object]) -> str)" (reportUnknownMemberType)
- Argument type is "list[Unknown] | tuple[Unknown, ...] | set[Unknown] | frozenset[Unknown]" (reportUnknownArgumentType)
+ Argument type is "list[Unknown] | tuple[Unknown, ...] | set[Unknown] | frozenset[object]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/sympy/sympy/interactive/printing.py:149:39 - warning: Argument type is unknown
+ /tmp/mypy_primer/projects/sympy/sympy/interactive/printing.py:149:46 - warning: Type of "i" is partially unknown
+ Type of "i" is "Unknown | object" (reportUnknownVariableType)
- Argument corresponds to parameter "o" in function "_can_print" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/sympy/sympy/interactive/printing.py:149:46 - warning: Type of "i" is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/sympy/sympy/matrices/common.py:2293:62 - warning: Argument type is partially unknown
- Argument corresponds to parameter "iterable" in function "__init__"
- Argument type is "Permutation | Iterable[Unknown]" (reportUnknownArgumentType)
... (truncated 1705 lines) ...```
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:224:5 - warning: Return type is unknown (reportUnknownParameterType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:224:5 - warning: Return type, "object | Unknown", is partially unknown (reportUnknownParameterType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:238:20 - warning: Return type is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:253:5 - warning: Return type is unknown (reportUnknownParameterType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:253:5 - warning: Return type, "object | Unknown", is partially unknown (reportUnknownParameterType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:267:12 - warning: Return type is unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:267:12 - warning: Return type, "object | Unknown", is partially unknown (reportUnknownVariableType)
- /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 unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2219:37 - error: Operator "<=" not supported for types "object" and "int" (reportOperatorIssue)
- /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 unknown (reportUnknownMemberType)
- /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:2221:18 - error: Operator ">=" not supported for types "object" and "int" (reportOperatorIssue)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2224:17 - warning: Type of "start" is unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2224:17 - warning: Type of "start" is partially unknown
+ Type of "start" is "Unknown | Any" (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2226:36 - error: Operator ">=" not supported for types "object" and "int" (reportOperatorIssue)
- /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 unknown
- 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 unknown (reportUnknownMemberType)
- /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 unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2228:18 - error: Operator "<=" not supported for types "object" and "int" (reportOperatorIssue)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2231:17 - warning: Type of "stop" is unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2231:17 - warning: Type of "stop" is partially unknown
+ Type of "stop" is "Unknown | Any" (reportUnknownVariableType)
- /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 unknown
- Argument corresponds to parameter "i" in function "_get_by_index" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2773:9 - warning: Type of "_target" is partially unknown
- Type of "_target" is "Sequence[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2775:9 - warning: Return type is unknown (reportUnknownParameterType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2775:9 - error: Method "__getitem__" overrides class "Sequence" in an incompatible manner
+ Return type mismatch: base method returns type "Sequence[Unknown]", override returns type "object"
+ "object" is not assignable to "Sequence[Unknown]" (reportIncompatibleMethodOverride)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2776:16 - warning: Type of "_target" is partially unknown
- Type of "_target" is "Sequence[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2776:16 - warning: Return type is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2779:20 - warning: Type of "_target" is partially unknown
- Type of "_target" is "Sequence[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2779:20 - warning: Argument type is partially unknown
- Argument corresponds to parameter "obj" in function "len"
- Argument type is "Sequence[Unknown]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2782:62 - warning: Type of "_target" is partially unknown
- Type of "_target" is "Sequence[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:2782:62 - warning: Argument type is partially unknown
- Argument corresponds to parameter "obj" in function "repr"
- Argument type is "Sequence[Unknown]" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/more-itertools/more_itertools/more.py:4251:12 - error: "object" is not iterable
+ "__iter__" method not defined (reportGeneralTypeIssues)
- 24 errors, 2742 warnings, 0 notes
+ 30 errors, 2721 warnings, 0 notes
starlette (https://github.com/encode/starlette)
- Type of "exceptions" is "tuple[Unknown | BaseExceptionGroup[Unknown], ...]" (reportUnknownMemberType)
+ Type of "exceptions" is "tuple[Unknown | BaseExceptionGroup[Unknown], ...] | tuple[BaseException | BaseExceptionGroup[BaseException], ...]" (reportUnknownMemberType)
- Argument type is "tuple[Unknown | BaseExceptionGroup[Unknown], ...]" (reportUnknownArgumentType)
+ Argument type is "tuple[Unknown | BaseExceptionGroup[Unknown], ...] | tuple[BaseException | BaseExceptionGroup[BaseException], ...]" (reportUnknownArgumentType)
- Type of "exc" is "Unknown | BaseExceptionGroup[Unknown]" (reportUnknownVariableType)
+ Type of "exc" is "Unknown | BaseExceptionGroup[Unknown] | BaseException | BaseExceptionGroup[BaseException]" (reportUnknownVariableType)
- Type of "exceptions" is "tuple[Unknown | BaseExceptionGroup[Unknown]]" (reportUnknownMemberType)
+ Type of "exceptions" is "tuple[Unknown | BaseExceptionGroup[Unknown]] | tuple[BaseException | BaseExceptionGroup[BaseException]]" (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/starlette/starlette/testclient.py:336:39 - error: Argument of type "None" cannot be assigned to parameter "arg" of type "Never" in function "send"
+ Type "None" is not assignable to type "Never" (reportArgumentType)
- /tmp/mypy_primer/projects/starlette/starlette/testclient.py:336:21 - warning: Type of "chunk" is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/starlette/starlette/testclient.py:336:29 - warning: Type of "send" is partially unknown
- Type of "send" is "(arg: Unknown, /) -> Unknown" (reportUnknownMemberType)
- 206 errors, 4252 warnings, 0 notes
+ 207 errors, 4250 warnings, 0 notes
pytest (https://github.com/pytest-dev/pytest)
- /tmp/mypy_primer/projects/pytest/src/_pytest/python.py:978:34 - warning: Type of "pattern" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/python.py:978:34 - warning: Argument type is unknown
- Argument corresponds to parameter "val" in function "ascii_escaped" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/reports.py:205:50 - warning: Argument type is partially unknown
- Argument corresponds to parameter "obj" in function "len"
- Argument type is "Sequence[Unknown]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/reports.py:206:13 - warning: Type of "word" is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/reports.py:206:19 - warning: Type of "markup" is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/reports.py:208:24 - warning: Return type, "tuple[str, Mapping[Unknown, Unknown]]", is partially unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/pytest/src/_pytest/reports.py:208:24 - warning: Return type, "tuple[str, Mapping[Unknown, object]]", is partially unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/pytest/src/_pytest/reports.py:208:30 - error: Type "tuple[str, Mapping[Unknown, object]]" is not assignable to return type "tuple[str, Mapping[str, bool]]"
+ "Mapping[Unknown, object]" is not assignable to "Mapping[str, bool]"
+ Type parameter "_VT_co@Mapping" is covariant, but "object" is not a subtype of "bool"
+ "object" is not assignable to "bool" (reportReturnType)
- Argument type is "Mapping[Unknown, Unknown]" (reportUnknownArgumentType)
+ Argument type is "Mapping[Unknown, object]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/_code/code.py:789:37 - warning: Type of "value" is partially unknown
- Type of "value" is "BaseExceptionGroup[Unknown]*" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/_code/code.py:789:37 - warning: Argument type is partially unknown
- Argument corresponds to parameter "exc_group" in function "_group_contains"
- Argument type is "BaseExceptionGroup[Unknown]*" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/pytest/src/_pytest/config/__init__.py:1673:40 - warning: Argument type is partially unknown
- Argument corresponds to parameter "args" in function "__init__"
- Argument type is "PathLike[Unknown]" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/pytest/src/_pytest/config/__init__.py:1673:40 - error: Argument of type "PathLike[str] | PathLike[bytes]" cannot be assigned to parameter "args" of type "StrPath" in function "__new__"
+ Type "PathLike[str] | PathLike[bytes]" is not assignable to type "StrPath"
+ Type "PathLike[bytes]" is not assignable to type "StrPath"
+ "PathLike[bytes]" is not assignable to "str"
+ "PathLike[bytes]" is not assignable to "PathLike[str]"
+ Type parameter "AnyStr_co@PathLike" is covariant, but "bytes" is not a subtype of "str"
+ "bytes" is not assignable to "str" (reportArgumentType)
+ /tmp/mypy_primer/projects/pytest/src/_pytest/config/__init__.py:1673:40 - error: Argument of type "PathLike[str] | PathLike[bytes]" cannot be assigned to parameter "args" of type "StrPath" in function "__init__"
+ Type "PathLike[str] | PathLike[bytes]" is not assignable to type "StrPath"
+ Type "PathLike[bytes]" is not assignable to type "StrPath"
+ "PathLike[bytes]" is not assignable to "str"
+ "PathLike[bytes]" is not assignable to "PathLike[str]"
+ Type parameter "AnyStr_co@PathLike" is covariant, but "bytes" is not a subtype of "str"
+ "bytes" is not assignable to "str" (reportArgumentType)
- 1162 errors, 17372 warnings, 0 notes
+ 1165 errors, 17364 warnings, 0 notes
mkosi (https://github.com/systemd/mkosi)
- /tmp/mypy_primer/projects/mkosi/mkosi/config.py:4924:20 - warning: Return type is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/mkosi/mkosi/config.py:4924:30 - warning: Argument type is partially unknown
- Argument corresponds to parameter "path" in function "fspath"
- Argument type is "PathLike[Unknown]" (reportUnknownArgumentType)
- 25 errors, 1559 warnings, 0 notes
+ 25 errors, 1557 warnings, 0 notes
openlibrary (https://github.com/internetarchive/openlibrary)
- /tmp/mypy_primer/projects/openlibrary/openlibrary/catalog/marc/tests/test_parse.py:119:28 - error: Argument of type "Iterable[Unknown]" cannot be assigned to parameter "obj" of type "Sized" in function "len"
+ /tmp/mypy_primer/projects/openlibrary/openlibrary/catalog/marc/tests/test_parse.py:119:28 - error: Argument of type "Iterable[object]" cannot be assigned to parameter "obj" of type "Sized" in function "len"
- "Iterable[Unknown]" is incompatible with protocol "Sized"
+ "Iterable[object]" is incompatible with protocol "Sized"
- /tmp/mypy_primer/projects/openlibrary/openlibrary/catalog/marc/tests/test_parse.py:148:28 - error: Argument of type "Iterable[Unknown]" cannot be assigned to parameter "obj" of type "Sized" in function "len"
+ /tmp/mypy_primer/projects/openlibrary/openlibrary/catalog/marc/tests/test_parse.py:148:28 - error: Argument of type "Iterable[object]" cannot be assigned to parameter "obj" of type "Sized" in function "len"
- "Iterable[Unknown]" is incompatible with protocol "Sized"
+ "Iterable[object]" is incompatible with protocol "Sized"
- Argument type is "set[Unknown]" (reportUnknownArgumentType)
+ Argument type is "set[Unknown] | set[object]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/openlibrary/openlibrary/solr/updater/abstract.py:53:68 - warning: Argument type is partially unknown
- Argument corresponds to parameter "o" in function "__init__"
- Argument type is "Any | Iterable[Unknown]" (reportUnknownArgumentType)
- 1920 errors, 33718 warnings, 0 notes
+ 1920 errors, 33717 warnings, 0 notes
yarl (https://github.com/aio-libs/yarl)
- /tmp/mypy_primer/projects/yarl/yarl/_url.py:1232:14 - warning: Unnecessary isinstance call; "Never" is always an instance of "Sequence[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/yarl/yarl/_url.py:1232:14 - warning: Unnecessary isinstance call; "Never" is always an instance of "Sequence[object]" (reportUnnecessaryIsInstance)
ibis (https://github.com/ibis-project/ibis)
- /tmp/mypy_primer/projects/ibis/ibis/util.py:650:13 - warning: Type of "hashable_obj" is partially unknown
- Type of "hashable_obj" is "tuple[Unknown, ...]*" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/ibis/ibis/util.py:650:34 - warning: Argument type is partially unknown
- Argument corresponds to parameter "iterable" in function "__new__"
- Argument type is "Sequence[Unknown]*" (reportUnknownArgumentType)
- Type of "hashable_obj" is "tuple[tuple[Unknown, Unknown], ...]" (reportUnknownVariableType)
+ Type of "hashable_obj" is "tuple[tuple[Unknown, object], ...]" (reportUnknownVariableType)
- Argument type is "ItemsView[Unknown, Unknown]" (reportUnknownArgumentType)
+ Argument type is "ItemsView[Unknown, object]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/ibis/ibis/util.py:654:13 - warning: Type of "hashable_obj" is partially unknown
- Type of "hashable_obj" is "frozenset[Unknown]*" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/ibis/ibis/util.py:654:38 - warning: Argument type is partially unknown
- Argument corresponds to parameter "iterable" in function "__new__"
- Argument type is "AbstractSet[Unknown]*" (reportUnknownArgumentType)
- Argument type is "tuple[type[Sequence[Unknown]]* | type[Mapping[Unknown, Unknown]]* | type[AbstractSet[Unknown]]* | type[object]*, tuple[Unknown, ...]* | tuple[tuple[Unknown, Unknown], ...] | frozenset[Unknown]* | int*]" (reportUnknownArgumentType)
+ Argument type is "tuple[type[Sequence[object]]* | type[Mapping[Unknown, object]]* | type[AbstractSet[object]]* | type[object]*, tuple[object, ...]* | tuple[tuple[Unknown, object], ...] | frozenset[object]* | int*]" (reportUnknownArgumentType)
- Argument type is "Sequence[Unknown]* | Mapping[Unknown, Unknown]* | AbstractSet[Unknown]* | object*" (reportUnknownArgumentType)
+ Argument type is "Sequence[object]* | Mapping[Unknown, object]* | AbstractSet[object]* | object*" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/__init__.py:443:9 - warning: Return type, "tuple[type[Value[Unknown, Unknown]], ...]", is partially unknown (reportUnknownParameterType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/__init__.py:444:16 - warning: Return type, "tuple[type[Value[Unknown, Unknown]], ...]", is partially unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/__init__.py:444:22 - warning: Argument type is partially unknown
- Argument corresponds to parameter "iterable" in function "__new__"
- Argument type is "Generator[type[Value[Unknown, Unknown]], None, None]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/__init__.py:455:9 - warning: Type of "op_classes" is partially unknown
- Type of "op_classes" is "tuple[type[Value[Unknown, Unknown]], ...]" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/__init__.py:455:22 - warning: Type of "_get_operations" is partially unknown
- Type of "_get_operations" is "_lru_cache_wrapper[tuple[type[Value[Unknown, Unknown]], ...]]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:379:13 - warning: Type of "repl" is partially unknown
- Type of "repl" is "Unknown | None" (reportUnknownVariableType)
- Type of "get" is "Overload[(key: Unknown, /) -> (Unknown | None), (key: Unknown, /, default: Unknown | _T@get) -> (Unknown | _T@get)]" (reportUnknownMemberType)
+ Type of "get" is "Overload[(key: Unknown, /) -> (object | None), (key: Unknown, /, default: object | _T@get) -> (object | _T@get)]" (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:381:29 - error: Cannot access attribute "value" for class "object"
+ Attribute "value" is unknown (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:891:8 - warning: Type of "dtype" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:891:17 - error: Cannot access attribute "unit" for class "DataType"
+ Attribute "unit" is unknown (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:894:18 - warning: Type of "dtype" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:894:27 - error: Cannot access attribute "unit" for class "DataType"
+ Attribute "unit" is unknown (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:1391:12 - warning: Type of "step" is partially unknown
- Type of "step" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:1410:12 - warning: Type of "step" is partially unknown
- Type of "step" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:1411:12 - warning: Type of "step" is partially unknown
- Type of "step" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:1411:12 - warning: Type of "dtype" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/ibis/ibis/backends/polars/compiler.py:1411:26 - error: Cannot access attribute "unit" for class "DataType"
+ Attribute "unit" is unknown (reportAttributeAccessIssue)
- Type of "mapping" is "Mapping[Unknown, Unknown]" (reportUnknownVariableType)
+ Type of "mapping" is "Mapping[Unknown, object]" (reportUnknownVariableType)
- Type of "replacements" is "Mapping[Unknown, Unknown]" (reportUnknownMemberType)
+ Type of "replacements" is "Mapping[Unknown, object]" (reportUnknownMemberType)
- Type of "value" is "Unknown | None" (reportUnknownVariableType)
+ Type of "value" is "Unknown | object | None" (reportUnknownVariableType)
- Type of "get" is "Overload[(key: Unknown, /) -> (Unknown | None), (key: Unknown, /, default: Unknown | _T@get) -> (Unknown | _T@get)] | Overload[(key: Unknown, /) -> (Unknown | None), (key: Unknown, default: Unknown, /) -> Unknown, (key: Unknown, default: _T@get, /) -> (Unknown | _T@get)]" (reportUnknownMemberType)
+ Type of "get" is "Overload[(key: Unknown, /) -> (object | None), (key: Unknown, /, default: object | _T@get) -> (object | _T@get)] | Overload[(key: Unknown, /) -> (Unknown | None), (key: Unknown, default: Unknown, /) -> Unknown, (key: Unknown, default: _T@get, /) -> (Unknown | _T@get)]" (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/ibis/ibis/backends/sql/rewrites.py:168:38 - error: Argument of type "tuple[Field, Unknown | object]" cannot be assigned to parameter "arg" of type "VarTuple[Value[Unknown, Any]]" in function "__init__"
+ Type "Unknown | object" is not assignable to type "Value[Unknown, Any]"
+ "object" is not assignable to "Value[Unknown, Any]" (reportArgumentType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/rewrites.py:481:27 - warning: Type of "nth" is partially unknown
- Type of "nth" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/rewrites.py:481:50 - warning: Type of "nth" is partially unknown
- Type of "nth" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/rewrites.py:481:50 - warning: Type of "dtype" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/rewrites.py:481:50 - warning: Argument type is unknown
- Argument corresponds to parameter "dtype" in function "__init__" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/base.py:1000:61 - warning: Type of "length" is partially unknown
- Type of "length" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/clickhouse.py:707:22 - warning: Type of "step" is partially unknown
- Type of "step" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/duckdb.py:188:21 - warning: Type of "start" is partially unknown
- Type of "start" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/duckdb.py:196:24 - warning: Type of "stop" is partially unknown
- Type of "stop" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/flink.py:342:9 - warning: Type of "idx" is partially unknown
- Type of "idx" is "Literal[Unknown]" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/flink.py:342:15 - warning: Type of "index" is partially unknown
- Type of "index" is "Literal[Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/flink.py:344:12 - warning: Type of "dtype" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/flink.py:344:12 - warning: Type of "is_integer" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/flink.py:347:20 - warning: Type of "dtype" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/flink.py:347:20 - warning: Type of "is_string" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/flink.py:347:43 - warning: Type of "dtype" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/ibis/ibis/backends/sql/compilers/impala.py:240:13 - warning: Type of "format_str" is partially unknown
- Type of "format_str" is "Literal[Unknown]" (reportUnknownMemberType)
... (truncated 133 lines) ...
sympy (https://github.com/sympy/sympy)
- /tmp/mypy_primer/projects/sympy/sympy/combinatorics/permutations.py:1662:20 - error: Argument of type "Iterable[Unknown]" cannot be assigned to parameter "obj" of type "Sized" in function "len"
+ /tmp/mypy_primer/projects/sympy/sympy/combinatorics/permutations.py:1662:20 - error: Argument of type "Iterable[object]" cannot be assigned to parameter "obj" of type "Sized" in function "len"
- "Iterable[Unknown]" is incompatible with protocol "Sized"
+ "Iterable[object]" is incompatible with protocol "Sized"
- /tmp/mypy_primer/projects/sympy/sympy/combinatorics/permutations.py:1664:60 - warning: Argument type is partially unknown
- Argument corresponds to parameter "args" in function "format"
- Argument type is "Iterable[Unknown]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/sympy/sympy/combinatorics/permutations.py:1665:21 - error: "__getitem__" method not defined on type "Iterable[Unknown]" (reportIndexIssue)
+ /tmp/mypy_primer/projects/sympy/sympy/combinatorics/permutations.py:1665:21 - error: "__getitem__" method not defined on type "Iterable[object]" (reportIndexIssue)
- /tmp/mypy_primer/projects/sympy/sympy/core/basic.py:412:18 - warning: Unnecessary isinstance call; "Never" is always an instance of "frozenset[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/sympy/sympy/core/basic.py:412:18 - warning: Unnecessary isinstance call; "Never" is always an instance of "frozenset[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/sympy/sympy/core/basic.py:413:34 - warning: Unnecessary isinstance call; "Never" is always an instance of "frozenset[Unknown]" (reportUnnecessaryIsInstance)
+ /tmp/mypy_primer/projects/sympy/sympy/core/basic.py:413:34 - warning: Unnecessary isinstance call; "Never" is always an instance of "frozenset[object]" (reportUnnecessaryIsInstance)
- /tmp/mypy_primer/projects/sympy/sympy/core/basic.py:414:28 - warning: Argument type is unknown
- Argument corresponds to parameter "args" in function "__new__" (reportUnknownArgumentType)
- Type of "sequence" is "ItemsView[Unknown, Unknown] | dict_items[Basic, Basic]" (reportUnknownVariableType)
+ Type of "sequence" is "ItemsView[Unknown, object] | dict_items[Basic, Basic]" (reportUnknownVariableType)
- Type of "s2" is "Unknown | Basic" (reportUnknownVariableType)
+ Type of "s2" is "Unknown | object | Basic" (reportUnknownVariableType)
- Type of "sequence" is "ItemsView[Unknown, Unknown] | dict_items[Basic, Basic]" (reportUnknownVariableType)
+ Type of "sequence" is "ItemsView[Unknown, object] | dict_items[Basic, Basic]" (reportUnknownVariableType)
- Type of "new" is "Unknown | Basic" (reportUnknownVariableType)
+ Type of "new" is "object | Basic | Unknown" (reportUnknownVariableType)
- Argument type is "ItemsView[Unknown, Unknown] | dict_items[Basic, Basic] | Unknown | list[tuple[Unknown, Unknown]]" (reportUnknownArgumentType)
+ Argument type is "ItemsView[Unknown, object] | dict_items[Basic, Basic] | Unknown | list[tuple[Unknown, Unknown]]" (reportUnknownArgumentType)
- Type of "__str__" is "((self: list[Unknown]) -> str) | ((self: tuple[Unknown, ...]) -> str) | ((self: set[Unknown]) -> str) | ((self: frozenset[Unknown]) -> str)" (reportUnknownMemberType)
+ Type of "__str__" is "((self: list[Unknown]) -> str) | ((self: tuple[Unknown, ...]) -> str) | ((self: set[Unknown]) -> str) | ((self: frozenset[object]) -> str)" (reportUnknownMemberType)
- Argument type is "list[Unknown] | tuple[Unknown, ...] | set[Unknown] | frozenset[Unknown]" (reportUnknownArgumentType)
+ Argument type is "list[Unknown] | tuple[Unknown, ...] | set[Unknown] | frozenset[object]" (reportUnknownArgumentType)
- Type of "__repr__" is "((self: list[Unknown]) -> str) | ((self: tuple[Unknown, ...]) -> str) | ((self: set[Unknown]) -> str) | ((self: frozenset[Unknown]) -> str)" (reportUnknownMemberType)
+ Type of "__repr__" is "((self: list[Unknown]) -> str) | ((self: tuple[Unknown, ...]) -> str) | ((self: set[Unknown]) -> str) | ((self: frozenset[object]) -> str)" (reportUnknownMemberType)
- Argument type is "list[Unknown] | tuple[Unknown, ...] | set[Unknown] | frozenset[Unknown]" (reportUnknownArgumentType)
+ Argument type is "list[Unknown] | tuple[Unknown, ...] | set[Unknown] | frozenset[object]" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/sympy/sympy/interactive/printing.py:149:39 - warning: Argument type is unknown
+ /tmp/mypy_primer/projects/sympy/sympy/interactive/printing.py:149:46 - warning: Type of "i" is partially unknown
+ Type of "i" is "Unknown | object" (reportUnknownVariableType)
- Argument corresponds to parameter "o" in function "_can_print" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/sympy/sympy/interactive/printing.py:149:46 - warning: Type of "i" is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/sympy/sympy/matrices/common.py:2293:62 - warning: Argument type is partially unknown
- Argument corresponds to parameter "iterable" in function "__init__"
- Argument type is "Permutation | Iterable[Unknown]" (reportUnknownArgumentType)
... (truncated 1707 lines) ...```
this is fantastic