Skip to content

Conversation

@randolf-scholz
Copy link
Contributor

@randolf-scholz randolf-scholz commented Jun 27, 2025

Attempted fix for #19304, still needs debugging.

The major change, following the chain of thought in #19304 (comment), is to add is_supertype=True inside the solver call in infer_function_type_arguments_using_context

  • added test check-expressions.test::testBinaryOperatorContext which does not pass on master.
  • updated __add__ in list.pyi stub
  • removed now invalidated test check-expressions.test::testInWithInvalidArgs

Currently, the following checks fail locally:

test case reason
testSimpleGeneratorExpression msg changed
testGeneratorIncompatibleErrorMessage msg changed
testDictFromList msg changed
testRecursiveAliasBasicGenericInference new error, msg changed
testRecursiveAliasWithRecursiveInstance msg changed
testRecursiveAliasTopUnion new error
testBasicRecursiveGenericNamedTuple msg changed
testAwaitExplicitContext msg changed
testTupleMeetTupleVariable msg changed
testTupleCompatibleWithSequence different reveal_type
testInferenceWorksWithEmptyCollectionsUnion new error
testInferenceWithAbstractClassContext3 msg changed
testConditionalExpressionWithEmptyListAndUnionWithAny different reveal_type
testConditionalExpressionWithEmptyIteableAndUnionWithAny different reveal_type
testInferMultipleAnyUnionDifferentVariance new error

The critical ones that need to be fixed seem to be

  • testRecursiveAliasBasicGenericInference
  • testTupleCompatibleWithSequence
  • testInferenceWorksWithEmptyCollectionsUnion
  • testConditionalExpressionWithEmptyListAndUnionWithAny
  • testConditionalExpressionWithEmptyIteableAndUnionWithAny
  • testInferMultipleAnyUnionDifferentVariance

@randolf-scholz
Copy link
Contributor Author

Any feedback on whether this has any chance of succeeding at all an

@github-actions
Copy link
Contributor

Diff from mypy_primer, showing the effect of this PR on open source code:

paroxython (https://github.com/laowantong/paroxython)
+ paroxython/preprocess_source.py:449: error: Incompatible types in assignment (expression has type "defaultdict[Never, list[Never]]", variable has type "dict[LabelName, list[Span]]")  [assignment]
+ paroxython/preprocess_source.py:450: error: Incompatible types in assignment (expression has type "defaultdict[Never, list[Never]]", variable has type "dict[LabelName, list[int]]")  [assignment]
+ paroxython/derived_labels_db.py:180: error: Incompatible types in assignment (expression has type "defaultdict[Never, dict[Never, Never]]", variable has type "dict[LabelName, dict[Span, Any]]")  [assignment]
+ paroxython/recommend_programs.py:259: error: Incompatible types in assignment (expression has type "defaultdict[Never, list[Never]]", variable has type "dict[str, list[tuple[float, ProgramPath]]]")  [assignment]
+ paroxython/parse_program.py:293: error: Incompatible types in assignment (expression has type "defaultdict[Never, list[Never]]", variable has type "dict[LabelName, list[Span]]")  [assignment]
+ paroxython/map_taxonomy.py:170: error: Incompatible types in assignment (expression has type "defaultdict[Never, list[Never]]", variable has type "dict[LabelName, list[TaxonName]]")  [assignment]
+ paroxython/map_taxonomy.py:241: error: Incompatible types in assignment (expression has type "defaultdict[Never, Counter[Never]]", variable has type "dict[TaxonName, Counter[Span]]")  [assignment]
+ paroxython/make_db.py:255: error: Incompatible types in assignment (expression has type "defaultdict[Never, list[Never]]", variable has type "dict[LabelName, list[ProgramPath]]")  [assignment]
+ paroxython/make_db.py:285: error: Incompatible types in assignment (expression has type "defaultdict[Never, list[Never]]", variable has type "dict[TaxonName, list[ProgramPath]]")  [assignment]

anyio (https://github.com/agronholm/anyio)
+ src/anyio/lowlevel.py:139: error: Argument 2 to "RunvarToken" has incompatible type "object"; expected "T | Literal[_NoValueSet.NO_VALUE_SET]"  [arg-type]
+ src/anyio/streams/stapled.py:52: error: Cannot infer value of type parameter "KT" of <dict>  [misc]
+ src/anyio/streams/stapled.py:52: note: Try assigning the literal to a variable annotated as dict[<key>, <val>]
+ src/anyio/streams/stapled.py:88: error: Cannot infer value of type parameter "KT" of <dict>  [misc]
+ src/anyio/streams/stapled.py:88: note: Try assigning the literal to a variable annotated as dict[<key>, <val>]
+ src/anyio/streams/tls.py:263: error: Cannot infer value of type parameter "KT" of <dict>  [misc]
+ src/anyio/streams/tls.py:263: note: Try assigning the literal to a variable annotated as dict[<key>, <val>]
+ src/anyio/_backends/_asyncio.py:2588: error: Redundant cast to "tuple[Transport, StreamProtocol]"  [redundant-cast]

websockets (https://github.com/aaugustin/websockets)
+ src/websockets/http11.py:39: error: Argument 1 to "int" has incompatible type "object"; expected "str | Buffer | SupportsInt | SupportsIndex | SupportsTrunc"  [arg-type]
+ src/websockets/http11.py:43: error: Argument 1 to "int" has incompatible type "object"; expected "str | Buffer | SupportsInt | SupportsIndex | SupportsTrunc"  [arg-type]
+ src/websockets/http11.py:47: error: Argument 1 to "int" has incompatible type "object"; expected "str | Buffer | SupportsInt | SupportsIndex | SupportsTrunc"  [arg-type]
+ src/websockets/frames.py:150: error: Argument 1 to "int" has incompatible type "object"; expected "str | Buffer | SupportsInt | SupportsIndex | SupportsTrunc"  [arg-type]
+ src/websockets/client.py:353: error: Argument 1 to "float" has incompatible type "object"; expected "str | Buffer | SupportsFloat | SupportsIndex"  [arg-type]
+ src/websockets/client.py:354: error: Argument 1 to "float" has incompatible type "object"; expected "str | Buffer | SupportsFloat | SupportsIndex"  [arg-type]
+ src/websockets/client.py:355: error: Argument 1 to "float" has incompatible type "object"; expected "str | Buffer | SupportsFloat | SupportsIndex"  [arg-type]
+ src/websockets/client.py:356: error: Argument 1 to "float" has incompatible type "object"; expected "str | Buffer | SupportsFloat | SupportsIndex"  [arg-type]
+ src/websockets/asyncio/client.py:38: error: Argument 1 to "int" has incompatible type "object"; expected "str | Buffer | SupportsInt | SupportsIndex | SupportsTrunc"  [arg-type]
+ src/websockets/legacy/http.py:13: error: Argument 1 to "int" has incompatible type "object"; expected "str | Buffer | SupportsInt | SupportsIndex | SupportsTrunc"  [arg-type]
+ src/websockets/legacy/http.py:14: error: Argument 1 to "int" has incompatible type "object"; expected "str | Buffer | SupportsInt | SupportsIndex | SupportsTrunc"  [arg-type]
+ src/websockets/legacy/client.py:417: error: Argument 1 to "int" has incompatible type "object"; expected "str | Buffer | SupportsInt | SupportsIndex | SupportsTrunc"  [arg-type]
+ src/websockets/legacy/client.py:591: error: Argument 1 to "float" has incompatible type "object"; expected "str | Buffer | SupportsFloat | SupportsIndex"  [arg-type]
+ src/websockets/legacy/client.py:592: error: Argument 1 to "float" has incompatible type "object"; expected "str | Buffer | SupportsFloat | SupportsIndex"  [arg-type]
+ src/websockets/legacy/client.py:593: error: Argument 1 to "float" has incompatible type "object"; expected "str | Buffer | SupportsFloat | SupportsIndex"  [arg-type]
+ src/websockets/legacy/client.py:594: error: Argument 1 to "float" has incompatible type "object"; expected "str | Buffer | SupportsFloat | SupportsIndex"  [arg-type]

ignite (https://github.com/pytorch/ignite)
+ ignite/metrics/nlp/rouge.py:393: error: Incompatible types in assignment (expression has type "list[object]", variable has type "Sequence[str | int] | None")  [assignment]
+ ignite/metrics/nlp/rouge.py:395: error: Item "None" of "Sequence[str | int] | None" has no attribute "__iter__" (not iterable)  [union-attr]
+ ignite/handlers/time_profilers.py:263: error: Incompatible return value type (got "OrderedDict[str, object]", expected "dict[str, dict[str, Any]]")  [return-value]

aiortc (https://github.com/aiortc/aiortc)
+ src/aiortc/sdp.py:233: error: Argument 1 to "list" has incompatible type "map[object]"; expected "Iterable[int | str]"  [arg-type]

archinstall (https://github.com/archlinux/archinstall)
+ archinstall/lib/crypt.py:16: error: Incompatible types in assignment (expression has type "list[type[_CData]]", variable has type "Sequence[type[_SimpleCData[Any]] | type[_Pointer[Any]] | type[CFuncPtr] | type[_ctypes.Union] | type[Structure] | type[Array[Any]]]")  [assignment]

PyGithub (https://github.com/PyGithub/PyGithub)
+ github/RepositoryAdvisory.py:151: error: Argument 1 to "add_vulnerabilities" of "RepositoryAdvisory" has incompatible type "list[dict[str, Union[dict[str, Optional[str]], str, list[str], None]]]"; expected "Iterable[Union[SimpleAdvisoryVulnerability, AdvisoryVulnerability]]"  [arg-type]
+ github/RepositoryAdvisory.py:197: error: Argument 1 to "offer_credits" of "RepositoryAdvisory" has incompatible type "list[dict[str, Union[str, NamedUser]]]"; expected "Iterable[Union[SimpleCredit, AdvisoryCredit]]"  [arg-type]

setuptools (https://github.com/pypa/setuptools)
+ setuptools/tests/test_build_meta.py:26: error: Argument 1 to "int" has incompatible type "object"; expected "str | Buffer | SupportsInt | SupportsIndex | SupportsTrunc"  [arg-type]

aiohttp (https://github.com/aio-libs/aiohttp)
+ aiohttp/payload.py:728:63: error: Argument 2 to "get" of "MultiDictProxy" has incompatible type "str"; expected "None"  [arg-type]

colour (https://github.com/colour-science/colour)
+ colour/models/rgb/cylindrical.py:441: error: Argument 2 to "select" has incompatible type "list[object]"; expected "Sequence[Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str]]"  [arg-type]
+ colour/io/luts/lut.py:1900: error: Argument 1 to "hstack" has incompatible type "list[object]"; expected "Sequence[_SupportsArray[dtype[Never]] | _NestedSequence[_SupportsArray[dtype[Never]]]]"  [arg-type]
+ colour/io/luts/lut.py:2092: error: Argument 1 to "vstack" has incompatible type "list[object]"; expected "Sequence[_SupportsArray[dtype[Never]] | _NestedSequence[_SupportsArray[dtype[Never]]]]"  [arg-type]
+ colour/colorimetry/generation.py:490: error: Dict entry 0 has incompatible type "str": "Callable[[Arg(float, 'mu'), Arg(float, 'sigma'), DefaultArg(SpectralShape, 'shape'), KwArg(Any)], SpectralDistribution]"; expected "str": "Callable[[float, float, DefaultArg(SpectralShape, 'shape'), KwArg(Any)], SpectralDistribution]"  [dict-item]
+ colour/colorimetry/generation.py:490: error: Dict entry 1 has incompatible type "str": "Callable[[Arg(float, 'peak_wavelength'), Arg(float, 'fwhm'), DefaultArg(SpectralShape, 'shape'), KwArg(Any)], SpectralDistribution]"; expected "str": "Callable[[float, float, DefaultArg(SpectralShape, 'shape'), KwArg(Any)], SpectralDistribution]"  [dict-item]
+ colour/corresponding/prediction.py:296: error: Need type annotation for "xyY_cr" (hint: "xyY_cr: list[<type>] = ...")  [var-annotated]
+ colour/corresponding/prediction.py:296: error: Need type annotation for "xyY_ct" (hint: "xyY_ct: list[<type>] = ...")  [var-annotated]
+ colour/corresponding/prediction.py:300: error: Argument 1 to "hstack" has incompatible type "list[object]"; expected "Sequence[_SupportsArray[dtype[Never]] | _NestedSequence[_SupportsArray[dtype[Never]]]]"  [arg-type]
+ colour/corresponding/prediction.py:300: error: Argument 1 to "hstack" has incompatible type "list[object]"; expected "Sequence[_SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]]]"  [arg-type]
+ colour/corresponding/prediction.py:308: error: Argument 1 to "hstack" has incompatible type "list[object]"; expected "Sequence[_SupportsArray[dtype[Never]] | _NestedSequence[_SupportsArray[dtype[Never]]]]"  [arg-type]
+ colour/corresponding/prediction.py:308: error: Argument 1 to "hstack" has incompatible type "list[object]"; expected "Sequence[_SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]]]"  [arg-type]
+ colour/recovery/jakob2019.py:1004: error: Argument 1 to "hstack" has incompatible type "list[object]"; expected "Sequence[_SupportsArray[dtype[Never]] | _NestedSequence[_SupportsArray[dtype[Never]]]]"  [arg-type]
+ colour/recovery/jakob2019.py:1011: error: Argument 1 to "hstack" has incompatible type "list[object]"; expected "Sequence[_SupportsArray[dtype[Never]] | _NestedSequence[_SupportsArray[dtype[Never]]]]"  [arg-type]
+ colour/recovery/jakob2019.py:1018: error: Argument 1 to "hstack" has incompatible type "list[object]"; expected "Sequence[_SupportsArray[dtype[Never]] | _NestedSequence[_SupportsArray[dtype[Never]]]]"  [arg-type]
+ colour/plotting/section.py:243: error: Argument 1 to "hstack" has incompatible type "list[Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | str | _NestedSequence[complex | bytes | str] | None]"; expected "Sequence[_SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]]]"  [arg-type]
- colour/plotting/section.py:243: error: List item 0 has incompatible type "Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str] | str | None"; expected "_SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]]"  [list-item]
- colour/plotting/section.py:243: error: List item 1 has incompatible type "float"; expected "_SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]]"  [list-item]
+ colour/plotting/diagrams.py:594: error: Argument 1 to "hstack" has incompatible type "list[Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | str | _NestedSequence[complex | bytes | str] | None]"; expected "Sequence[_SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]]]"  [arg-type]
+ colour/plotting/diagrams.py:599: error: Argument 1 to "hstack" has incompatible type "list[Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | str | _NestedSequence[complex | bytes | str] | None]"; expected "Sequence[_SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]]]"  [arg-type]
- colour/plotting/diagrams.py:594: error: List item 0 has incompatible type "Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str] | str | None"; expected "_SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]]"  [list-item]
- colour/plotting/diagrams.py:594: error: List item 1 has incompatible type "float"; expected "_SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]]"  [list-item]
- colour/plotting/diagrams.py:599: error: List item 0 has incompatible type "Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str] | str | None"; expected "_SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]]"  [list-item]
- colour/plotting/diagrams.py:599: error: List item 1 has incompatible type "float"; expected "_SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]]"  [list-item]
+ colour/plotting/colorimetry.py:228: error: Argument 1 to "vstack" has incompatible type "list[object]"; expected "Sequence[_SupportsArray[dtype[Never]] | _NestedSequence[_SupportsArray[dtype[Never]]]]"  [arg-type]
+ colour/notation/tests/test_munsell.py:130: error: Argument 1 to "hstack" has incompatible type "list[object]"; expected "Sequence[_SupportsArray[dtype[Never]] | _NestedSequence[_SupportsArray[dtype[Never]]]]"  [arg-type]
+ colour/geometry/tests/test_vertices.py:257: error: Argument 1 to "assert_allclose" has incompatible type "ndarray[tuple[Any, ...], dtype[floating[_16Bit] | floating[_32Bit] | float64]]"; expected "_SupportsArray[dtype[numpy.bool[builtins.bool] | integer[Any] | timedelta64[timedelta | int | None]]] | _NestedSequence[_SupportsArray[dtype[numpy.bool[builtins.bool] | integer[Any] | timedelta64[timedelta | int | None]]]] | int | _NestedSequence[int]"  [arg-type]
+ colour/geometry/tests/test_vertices.py:257: error: Argument "planes" to "primitive_vertices_cube_mpl" has incompatible type "list[str]"; expected "Sequence[Literal['-x', '+x', '-y', '+y', '-z', '+z', 'xy', 'xz', 'yz', 'yx', 'zx', 'zy']] | None"  [arg-type]
+ colour/geometry/tests/test_vertices.py:263: error: Argument 1 to "assert_allclose" has incompatible type "ndarray[tuple[Any, ...], dtype[floating[_16Bit] | floating[_32Bit] | float64]]"; expected "_SupportsArray[dtype[numpy.bool[builtins.bool] | integer[Any] | timedelta64[timedelta | int | None]]] | _NestedSequence[_SupportsArray[dtype[numpy.bool[builtins.bool] | integer[Any] | timedelta64[timedelta | int | None]]]] | int | _NestedSequence[int]"  [arg-type]
+ colour/geometry/tests/test_vertices.py:263: error: Argument "planes" to "primitive_vertices_cube_mpl" has incompatible type "list[str]"; expected "Sequence[Literal['-x', '+x', '-y', '+y', '-z', '+z', 'xy', 'xz', 'yz', 'yx', 'zx', 'zy']] | None"  [arg-type]
+ colour/geometry/tests/test_vertices.py:269: error: Argument 1 to "assert_allclose" has incompatible type "ndarray[tuple[Any, ...], dtype[floating[_16Bit] | floating[_32Bit] | float64]]"; expected "_SupportsArray[dtype[numpy.bool[builtins.bool] | integer[Any] | timedelta64[timedelta | int | None]]] | _NestedSequence[_SupportsArray[dtype[numpy.bool[builtins.bool] | integer[Any] | timedelta64[timedelta | int | None]]]] | int | _NestedSequence[int]"  [arg-type]
+ colour/geometry/tests/test_vertices.py:269: error: Argument "planes" to "primitive_vertices_cube_mpl" has incompatible type "list[str]"; expected "Sequence[Literal['-x', '+x', '-y', '+y', '-z', '+z', 'xy', 'xz', 'yz', 'yx', 'zx', 'zy']] | None"  [arg-type]
+ colour/geometry/tests/test_vertices.py:275: error: Argument 1 to "assert_allclose" has incompatible type "ndarray[tuple[Any, ...], dtype[floating[_16Bit] | floating[_32Bit] | float64]]"; expected "_SupportsArray[dtype[numpy.bool[builtins.bool] | integer[Any] | timedelta64[timedelta | int | None]]] | _NestedSequence[_SupportsArray[dtype[numpy.bool[builtins.bool] | integer[Any] | timedelta64[timedelta | int | None]]]] | int | _NestedSequence[int]"  [arg-type]
+ colour/geometry/tests/test_vertices.py:275: error: Argument "planes" to "primitive_vertices_cube_mpl" has incompatible type "list[str]"; expected "Sequence[Literal['-x', '+x', '-y', '+y', '-z', '+z', 'xy', 'xz', 'yz', 'yx', 'zx', 'zy']] | None"  [arg-type]
+ colour/geometry/tests/test_vertices.py:281: error: Argument 1 to "assert_allclose" has incompatible type "ndarray[tuple[Any, ...], dtype[floating[_16Bit] | floating[_32Bit] | float64]]"; expected "_SupportsArray[dtype[numpy.bool[builtins.bool] | integer[Any] | timedelta64[timedelta | int | None]]] | _NestedSequence[_SupportsArray[dtype[numpy.bool[builtins.bool] | integer[Any] | timedelta64[timedelta | int | None]]]] | int | _NestedSequence[int]"  [arg-type]
+ colour/geometry/tests/test_vertices.py:281: error: Argument "planes" to "primitive_vertices_cube_mpl" has incompatible type "list[str]"; expected "Sequence[Literal['-x', '+x', '-y', '+y', '-z', '+z', 'xy', 'xz', 'yz', 'yx', 'zx', 'zy']] | None"  [arg-type]
+ colour/geometry/tests/test_vertices.py:287: error: Argument 1 to "assert_allclose" has incompatible type "ndarray[tuple[Any, ...], dtype[floating[_16Bit] | floating[_32Bit] | float64]]"; expected "_SupportsArray[dtype[numpy.bool[builtins.bool] | integer[Any] | timedelta64[timedelta | int | None]]] | _NestedSequence[_SupportsArray[dtype[numpy.bool[builtins.bool] | integer[Any] | timedelta64[timedelta | int | None]]]] | int | _NestedSequence[int]"  [arg-type]
+ colour/geometry/tests/test_vertices.py:287: error: Argument "planes" to "primitive_vertices_cube_mpl" has incompatible type "list[str]"; expected "Sequence[Literal['-x', '+x', '-y', '+y', '-z', '+z', 'xy', 'xz', 'yz', 'yx', 'zx', 'zy']] | None"  [arg-type]
+ colour/colorimetry/tests/test_spectrum.py:2022: error: Argument 1 to "sds_and_msds_to_sds" has incompatible type "list[AbstractContinuousFunction]"; expected "Sequence[SpectralDistribution | MultiSpectralDistributions] | SpectralDistribution | MultiSpectralDistributions | ValuesView[Any]"  [arg-type]
+ colour/colorimetry/tests/test_spectrum.py:2063: error: Argument 1 to "sds_and_msds_to_msds" has incompatible type "list[AbstractContinuousFunction]"; expected "Sequence[SpectralDistribution | MultiSpectralDistributions] | SpectralDistribution | MultiSpectralDistributions | ValuesView[Any]"  [arg-type]
+ colour/colorimetry/tests/test_spectrum.py:2067: error: Argument 1 to "assert_allclose" has incompatible type "ndarray[tuple[Any, ...], dtype[floating[_16Bit] | floating[_32Bit] | float64]]"; expected "_SupportsArray[dtype[numpy.bool[builtins.bool] | integer[Any] | timedelta64[timedelta | int | None]]] | _NestedSequence[_SupportsArray[dtype[numpy.bool[builtins.bool] | integer[Any] | timedelta64[timedelta | int | None]]]] | int | _NestedSequence[int]"  [arg-type]
+ colour/colorimetry/tests/test_spectrum.py:2067: error: Argument 1 to "sds_and_msds_to_msds" has incompatible type "list[AbstractContinuousFunction]"; expected "Sequence[SpectralDistribution | MultiSpectralDistributions] | SpectralDistribution | MultiSpectralDistributions | ValuesView[Any]"  [arg-type]
+ colour/colorimetry/tests/test_spectrum.py:2068: error: Argument 2 to "assert_allclose" has incompatible type "ndarray[tuple[Any, ...], dtype[floating[_16Bit] | floating[_32Bit] | float64]]"; expected "_SupportsArray[dtype[numpy.bool[builtins.bool] | integer[Any] | timedelta64[timedelta | int | None]]] | _NestedSequence[_SupportsArray[dtype[numpy.bool[builtins.bool] | integer[Any] | timedelta64[timedelta | int | None]]]] | int | _NestedSequence[int]"  [arg-type]
+ colour/colorimetry/tests/test_spectrum.py:2073: error: Argument 1 to "assert_allclose" has incompatible type "ndarray[tuple[Any, ...], dtype[floating[_16Bit] | floating[_32Bit] | float64]]"; expected "_SupportsArray[dtype[numpy.bool[builtins.bool] | integer[Any] | timedelta64[timedelta | int | None]]] | _NestedSequence[_SupportsArray[dtype[numpy.bool[builtins.bool] | integer[Any] | timedelta64[timedelta | int | None]]]] | int | _NestedSequence[int]"  [arg-type]
+ colour/colorimetry/tests/test_spectrum.py:2073: error: Argument 1 to "sds_and_msds_to_msds" has incompatible type "list[AbstractContinuousFunction]"; expected "Sequence[SpectralDistribution | MultiSpectralDistributions] | SpectralDistribution | MultiSpectralDistributions | ValuesView[Any]"  [arg-type]

pip (https://github.com/pypa/pip)
+ src/pip/_internal/vcs/subversion.py:103: error: Argument 1 to "__iadd__" of "list" has incompatible type "list[object]"; expected "Iterable[str | HiddenText]"  [arg-type]
+ src/pip/_internal/operations/install/wheel.py:130: error: Incompatible types in assignment (expression has type "defaultdict[Never, set[Never]]", variable has type "dict[str, set[str]]")  [assignment]
+ src/pip/_internal/index/sources.py:56: error: Incompatible types in assignment (expression has type "defaultdict[Never, list[Never]]", variable has type "dict[str, list[str]]")  [assignment]
+ src/pip/_internal/operations/freeze.py:60: error: Incompatible types in assignment (expression has type "defaultdict[Never, list[Never]]", variable has type "dict[str, list[str]]")  [assignment]

tornado (https://github.com/tornadoweb/tornado)
+ tornado/netutil.py:158: error: Incompatible types in assignment (expression has type "tuple[object, ...]", variable has type "Union[tuple[str, int], tuple[str, int, int, int], tuple[int, bytes]]")  [assignment]
+ tornado/test/auth_test.py:275: error: Argument 1 to "Application" has incompatible type "list[tuple[object, ...]]"; expected "Optional[Sequence[Union[Rule, list[Any], tuple[Union[str, Matcher], Any], tuple[Union[str, Matcher], Any, dict[str, Any]], tuple[Union[str, Matcher], Any, dict[str, Any], str]]]]"  [arg-type]
+ tornado/test/auth_test.py:585: error: Argument 1 to "Application" has incompatible type "list[tuple[Union[str, type[GoogleOAuth2UserinfoHandler], type[GoogleOAuth2TokenHandler], type[GoogleLoginHandler], dict[str, GoogleOAuth2Test], type[GoogleOAuth2AuthorizeHandler]], ...]]"; expected "Optional[Sequence[Union[Rule, list[Any], tuple[Union[str, Matcher], Any], tuple[Union[str, Matcher], Any, dict[str, Any]], tuple[Union[str, Matcher], Any, dict[str, Any], str]]]]"  [arg-type]
+ tornado/test/websocket_test.py:100: error: Argument 1 to "write_message" of "WebSocketHandler" has incompatible type "Collection[object]"; expected "Union[bytes, str, dict[str, Any]]"  [arg-type]
+ tornado/test/websocket_test.py:240: error: Argument 1 to "Application" has incompatible type "list[tuple[Union[str, type[NoDelayHandler], type[ErrorInAsyncOpenHandler], type[ErrorInOpenHandler], type[OpenCoroutineHandler], <14 more items>], ...]]"; expected "Optional[Sequence[Union[Rule, list[Any], tuple[Union[str, Matcher], Any], tuple[Union[str, Matcher], Any, dict[str, Any]], tuple[Union[str, Matcher], Any, dict[str, Any], str]]]]"  [arg-type]
+ tornado/test/web_test.py:1022: error: Argument 2 to "assertNotIn" of "TestCase" has incompatible type "object"; expected "Union[Iterable[Any], Container[Any]]"  [arg-type]
+ tornado/test/web_test.py:1023: error: Argument 2 to "assertNotIn" of "TestCase" has incompatible type "object"; expected "Union[Iterable[Any], Container[Any]]"  [arg-type]
+ tornado/test/routing_test.py:201: error: Argument 2 to "add_handlers" of "Application" has incompatible type "list[object]"; expected "Sequence[Union[Rule, list[Any], tuple[Union[str, Matcher], Any], tuple[Union[str, Matcher], Any, dict[str, Any]], tuple[Union[str, Matcher], Any, dict[str, Any], str]]]"  [arg-type]
+ tornado/test/httpserver_test.py:926: error: Argument 1 to "Application" has incompatible type "list[tuple[Union[str, type[RequestHandler], dict[str, Event]], ...]]"; expected "Optional[Sequence[Union[Rule, list[Any], tuple[Union[str, Matcher], Any], tuple[Union[str, Matcher], Any, dict[str, Any]], tuple[Union[str, Matcher], Any, dict[str, Any], str]]]]"  [arg-type]
+ tornado/test/httpclient_test.py:103: error: Argument 1 to "write" of "RequestHandler" has incompatible type "Union[str, Collection[Any]]"; expected "Union[str, bytes, dict[Any, Any]]"  [arg-type]
+ tornado/test/curl_httpclient_test.py:87: error: Argument 1 to "Application" has incompatible type "list[tuple[Union[type[CustomFailReasonHandler], str, type[DigestAuthHandler], dict[str, str], type[CustomReasonHandler]], ...]]"; expected "Optional[Sequence[Union[Rule, list[Any], tuple[Union[str, Matcher], Any], tuple[Union[str, Matcher], Any, dict[str, Any]], tuple[Union[str, Matcher], Any, dict[str, Any], str]]]]"  [arg-type]

kopf (https://github.com/nolar/kopf)
+ kopf/_cogs/structs/credentials.py:119: error: Incompatible types in assignment (expression has type "defaultdict[Never, list[Never]]", variable has type "dict[VaultKey, list[VaultItem]]")  [assignment]
+ kopf/_cogs/structs/credentials.py:221: error: Incompatible types in assignment (expression has type "defaultdict[Never, list[Never]]", variable has type "dict[int, list[tuple[VaultKey, VaultItem]]]")  [assignment]
+ kopf/_cogs/configs/progress.py:321: error: No overload variant of "get" of "dict" matches argument types "HandlerId", "None"  [call-overload]
+ kopf/_cogs/configs/progress.py:321: note: Possible overload variants:
+ kopf/_cogs/configs/progress.py:321: note:     def get(self, Never, None = ..., /) -> None
+ kopf/_cogs/configs/progress.py:321: note:     def get(self, Never, Never, /) -> Never
+ kopf/_cogs/configs/progress.py:321: note:     def [_T] get(self, Never, _T, /) -> _T
+ kopf/_core/actions/execution.py:361: error: Argument 1 to "context" has incompatible type "list[tuple[object, Cause | Handler | list[set[HandlerId]] | OperatorSettings | LifeCycleFn | None]]"; expected "Iterable[tuple[ContextVar[Any], Any]]"  [arg-type]
+ kopf/_core/reactor/subhandling.py:20: error: Argument 1 to "context" has incompatible type "list[tuple[object, object]]"; expected "Iterable[tuple[ContextVar[Any], Any]]"  [arg-type]
+ kopf/_core/engines/admission.py:449: error: Incompatible types in assignment (expression has type "list[dict[str, str]]", variable has type "Collection[MatchExpression]")  [assignment]
+ kopf/_core/engines/admission.py:452: error: Dict entry 2 has incompatible type "str": "list[str]"; expected "str": "str"  [dict-item]

Tanjun (https://github.com/FasterSpeeding/Tanjun)
+ tanjun/context/menu.py:58: error: Argument 1 to "frozenset" has incompatible type "list[CommandType]"; expected "Iterable[Literal[CommandType.USER, CommandType.MESSAGE]]"  [arg-type]

porcupine (https://github.com/Akuli/porcupine)
+ porcupine/plugins/desktop_menu.py:53: error: Argument 1 to "call" has incompatible type "list[object]"; expected "str | bytes | PathLike[str] | PathLike[bytes] | Sequence[str | bytes | PathLike[str] | PathLike[bytes]]"  [arg-type]
+ porcupine/plugins/aboutdialog.py:33: error: Argument 1 to "Popen" has incompatible type "list[object]"; expected "str | bytes | PathLike[str] | PathLike[bytes] | Sequence[str | bytes | PathLike[str] | PathLike[bytes]]"  [arg-type]

hydpy (https://github.com/hydpy-dev/hydpy)
+ hydpy/exe/servertools.py:1489: error: Invalid index type "str" for "OrderedDict[Never, Never]"; expected type "Never"  [index]
+ hydpy/exe/servertools.py:1489: error: Incompatible types in assignment (expression has type "str", target has type "Never")  [assignment]
+ hydpy/core/selectiontools.py:367: error: Incompatible types in assignment (expression has type "defaultdict[Never, dict[Never, Never]]", variable has type "dict[Selection, dict[Selection, Elements]]")  [assignment]
+ hydpy/auxs/validtools.py:38: error: Need type annotation for "shapes"  [var-annotated]

mongo-python-driver (https://github.com/mongodb/mongo-python-driver)
+ pymongo/helpers_shared.py:131: error: Unused "type: ignore" comment  [unused-ignore]
+ pymongo/helpers_shared.py:131: error: Incompatible return value type (got "list[Sequence[Any]]", expected "Sequence[tuple[str, int | str | Mapping[str, Any]]]")  [return-value]
+ pymongo/helpers_shared.py:131: note: Error code "return-value" not covered by "type: ignore" comment
+ pymongo/common.py:895: error: Invalid index type "str" for "_CaseInsensitiveDictionary | dict[Never, Never]"; expected type "Never"  [index]
+ pymongo/synchronous/server.py:275: error: Unsupported target for indexed assignment ("object")  [index]
+ pymongo/synchronous/server.py:277: error: Unsupported target for indexed assignment ("object")  [index]
+ pymongo/synchronous/database.py:1239: error: Argument "allowable_errors" to "_command" of "Database" has incompatible type "list[object]"; expected "Sequence[str | int] | None"  [arg-type]
+ pymongo/synchronous/collection.py:2486: error: Argument "allowable_errors" to "_command" of "Collection" has incompatible type "list[object]"; expected "Sequence[str | int] | None"  [arg-type]
+ pymongo/synchronous/collection.py:2778: error: Argument "allowable_errors" to "_command" of "Collection" has incompatible type "list[object]"; expected "Sequence[str | int] | None"  [arg-type]
+ pymongo/synchronous/collection.py:2814: error: Argument "allowable_errors" to "_command" of "Collection" has incompatible type "list[object]"; expected "Sequence[str | int] | None"  [arg-type]
+ pymongo/asynchronous/server.py:275: error: Unsupported target for indexed assignment ("object")  [index]
+ pymongo/asynchronous/server.py:277: error: Unsupported target for indexed assignment ("object")  [index]
+ pymongo/asynchronous/database.py:1246: error: Argument "allowable_errors" to "_command" of "AsyncDatabase" has incompatible type "list[object]"; expected "Sequence[str | int] | None"  [arg-type]
+ pymongo/asynchronous/collection.py:2489: error: Argument "allowable_errors" to "_command" of "AsyncCollection" has incompatible type "list[object]"; expected "Sequence[str | int] | None"  [arg-type]
+ pymongo/asynchronous/collection.py:2783: error: Argument "allowable_errors" to "_command" of "AsyncCollection" has incompatible type "list[object]"; expected "Sequence[str | int] | None"  [arg-type]
+ pymongo/asynchronous/collection.py:2819: error: Argument "allowable_errors" to "_command" of "AsyncCollection" has incompatible type "list[object]"; expected "Sequence[str | int] | None"  [arg-type]
+ pymongo/asynchronous/bulk.py:604: error: Function does not return a value (it only ever returns None)  [func-returns-value]
+ pymongo/synchronous/auth.py:360: error: Incompatible types in assignment (expression has type "dict[str, object]", variable has type "Mapping[str, Callable[..., None]]")  [assignment]
+ pymongo/asynchronous/auth.py:365: error: Incompatible types in assignment (expression has type "dict[str, object]", variable has type "Mapping[str, Callable[..., Coroutine[Any, Any, None]]]")  [assignment]

yarl (https://github.com/aio-libs/yarl)
+ tests/test_url_query.py:231:26: error: Argument 1 to "update_query" of "URL" has incompatible type "memoryview[int]"; expected "str | Mapping[str, str | SupportsInt | float | Sequence[str | SupportsInt | float]] | Sequence[tuple[str, str | SupportsInt | float | Sequence[str | SupportsInt | float]]] | None"  [arg-type]
+ tests/test_url.py:2009: error: Unused "type: ignore" comment  [unused-ignore]
+ tests/test_url.py:2009:51: error: Argument 1 to "with_query" of "URL" has incompatible type "dict[str, None]"; expected "str | Mapping[str, str | SupportsInt | float | Sequence[str | SupportsInt | float]] | Sequence[tuple[str, str | SupportsInt | float | Sequence[str | SupportsInt | float]]] | None"  [arg-type]
+ tests/test_url.py:2009:51: note: Error code "arg-type" not covered by "type: ignore" comment
+ tests/test_update_query.py:63: error: Unused "type: ignore" comment  [unused-ignore]
+ tests/test_update_query.py:63:24: error: Argument 1 to "with_query" of "URL" has incompatible type "list[str]"; expected "str | Mapping[str, str | SupportsInt | float | Sequence[str | SupportsInt | float]] | Sequence[tuple[str, str | SupportsInt | float | Sequence[str | SupportsInt | float]]] | None"  [arg-type]
+ tests/test_update_query.py:63:24: note: Error code "arg-type" not covered by "type: ignore" comment
+ tests/test_update_query.py:219: error: Unused "type: ignore" comment  [unused-ignore]
+ tests/test_update_query.py:219:24: error: Argument 1 to "with_query" of "URL" has incompatible type "dict[str, bool | float | None]"; expected "str | Mapping[str, str | SupportsInt | float | Sequence[str | SupportsInt | float]] | Sequence[tuple[str, str | SupportsInt | float | Sequence[str | SupportsInt | float]]] | None"  [arg-type]
+ tests/test_update_query.py:219:24: note: Error code "arg-type" not covered by "type: ignore" comment
+ tests/test_update_query.py:247: error: Unused "type: ignore" comment  [unused-ignore]
+ tests/test_update_query.py:247:24: error: Argument 1 to "with_query" of "URL" has incompatible type "list[tuple[str, bool | None]]"; expected "str | Mapping[str, str | SupportsInt | float | Sequence[str | SupportsInt | float]] | Sequence[tuple[str, str | SupportsInt | float | Sequence[str | SupportsInt | float]]] | None"  [arg-type]
+ tests/test_update_query.py:247:24: note: Error code "arg-type" not covered by "type: ignore" comment
+ tests/test_update_query.py:327:24: error: Argument 1 to "with_query" of "URL" has incompatible type "memoryview[int]"; expected "str | Mapping[str, str | SupportsInt | float | Sequence[str | SupportsInt | float]] | Sequence[tuple[str, str | SupportsInt | float | Sequence[str | SupportsInt | float]]] | None"  [arg-type]

cloud-init (https://github.com/canonical/cloud-init)
+ cloudinit/safeyaml.py:146: error: Incompatible types in assignment (expression has type "defaultdict[Never, list[Never]]", variable has type "dict[int, list[SchemaPathMarks]]")  [assignment]
+ cloudinit/distros/debian.py:39: error: Incompatible types in assignment (expression has type "dict[str, object]", base class "Distro" defined the type as "Mapping[str, MutableMapping[str, Any]]")  [assignment]
+ cloudinit/config/cc_rsyslog.py:73: error: Argument 1 to "mergemanydict" has incompatible type "list[object]"; expected "Sequence[Mapping[Any, Any]]"  [arg-type]

scikit-learn (https://github.com/scikit-learn/scikit-learn)
+ sklearn/datasets/_openml.py:434: error: Argument 1 to "float" has incompatible type "object"; expected "str | Buffer | SupportsFloat | SupportsIndex"  [arg-type]
- sklearn/linear_model/tests/test_ridge.py:744: error: Unsupported operand types for + ("list[None]" and "list[ABCMeta]")  [operator]

urllib3 (https://github.com/urllib3/urllib3)
+ test/test_util.py:534: error: Unused "type: ignore" comment  [unused-ignore]
+ test/test_util.py:534: error: Argument "marks" to "param" has incompatible type "list[Callable[[_TestFuncT], _TestFuncT]]"; expected "MarkDecorator | Collection[MarkDecorator | Mark]"  [arg-type]
+ test/test_util.py:534: note: Error code "arg-type" not covered by "type: ignore" comment
+ test/test_util.py:539: error: Unused "type: ignore" comment  [unused-ignore]
+ test/test_util.py:539: error: Argument "marks" to "param" has incompatible type "list[Callable[[_TestFuncT], _TestFuncT]]"; expected "MarkDecorator | Collection[MarkDecorator | Mark]"  [arg-type]
+ test/test_util.py:539: note: Error code "arg-type" not covered by "type: ignore" comment
+ test/test_util.py:544: error: Unused "type: ignore" comment  [unused-ignore]
+ test/test_util.py:544: error: Argument "marks" to "param" has incompatible type "list[Callable[[_TestFuncT], _TestFuncT]]"; expected "MarkDecorator | Collection[MarkDecorator | Mark]"  [arg-type]
+ test/test_util.py:544: note: Error code "arg-type" not covered by "type: ignore" comment
+ test/test_util.py:549: error: Unused "type: ignore" comment  [unused-ignore]
+ test/test_util.py:549: error: Argument "marks" to "param" has incompatible type "list[Callable[[_TestFuncT], _TestFuncT]]"; expected "MarkDecorator | Collection[MarkDecorator | Mark]"  [arg-type]
+ test/test_util.py:549: note: Error code "arg-type" not covered by "type: ignore" comment
+ test/test_util.py:556: error: Unused "type: ignore" comment  [unused-ignore]
+ test/test_util.py:556: error: Argument "marks" to "param" has incompatible type "list[Callable[[_TestFuncT], _TestFuncT]]"; expected "MarkDecorator | Collection[MarkDecorator | Mark]"  [arg-type]
+ test/test_util.py:556: note: Error code "arg-type" not covered by "type: ignore" comment
+ test/test_util.py:561: error: Unused "type: ignore" comment  [unused-ignore]
+ test/test_util.py:561: error: Argument "marks" to "param" has incompatible type "list[Callable[[_TestFuncT], _TestFuncT]]"; expected "MarkDecorator | Collection[MarkDecorator | Mark]"  [arg-type]
+ test/test_util.py:561: note: Error code "arg-type" not covered by "type: ignore" comment
+ test/test_util.py:566: error: Unused "type: ignore" comment  [unused-ignore]
+ test/test_util.py:566: error: Argument "marks" to "param" has incompatible type "list[Callable[[_TestFuncT], _TestFuncT]]"; expected "MarkDecorator | Collection[MarkDecorator | Mark]"  [arg-type]
+ test/test_util.py:566: note: Error code "arg-type" not covered by "type: ignore" comment
+ test/test_util.py:571: error: Unused "type: ignore" comment  [unused-ignore]
+ test/test_util.py:571: error: Argument "marks" to "param" has incompatible type "list[Callable[[_TestFuncT], _TestFuncT]]"; expected "MarkDecorator | Collection[MarkDecorator | Mark]"  [arg-type]
+ test/test_util.py:571: note: Error code "arg-type" not covered by "type: ignore" comment
+ test/test_retry.py:250: error: Unused "type: ignore" comment  [unused-ignore]
+ test/test_retry.py:250: error: Argument "status_forcelist" to "Retry" has incompatible type "list[str]"; expected "Collection[int] | None"  [arg-type]
+ test/test_retry.py:250: note: Error code "arg-type" not covered by "type: ignore" comment

nox (https://github.com/wntrblm/nox)
+ nox/tox_to_nox.py:128: error: Argument 2 to "get" of "SectionProxy" has incompatible type "str"; expected "PathLike[str]"  [arg-type]
+ nox/_options.py:288: error: Incompatible return value type (got "filter[object]", expected "Iterable[str]")  [return-value]
+ nox/_options.py:291: error: Unused "type: ignore" comment  [unused-ignore]

pandas (https://github.com/pandas-dev/pandas)
+ pandas/core/dtypes/dtypes.py:971: error: Need type annotation for "np_dtype"  [var-annotated]
+ pandas/core/dtypes/dtypes.py:971: error: Argument 1 has incompatible type "list[dtype[Any] | ExtensionDtype]"; expected "_SupportsArray[dtype[Never]] | _NestedSequence[_SupportsArray[dtype[Never]]]"  [arg-type]
+ pandas/core/dtypes/cast.py:964: error: Unsupported operand types for - ("set[dtype[Any] | ExtensionDtype]" and "set[type[Sequence[object]]]")  [operator]
+ pandas/core/dtypes/cast.py:965: error: Unused "type: ignore" comment  [unused-ignore]
+ pandas/core/dtypes/cast.py:966: error: Unused "type: ignore" comment  [unused-ignore]
+ pandas/core/construction.py:311: error: Incompatible types in assignment (expression has type "Iterable[Any]", variable has type "Sequence[object] | ExtensionArray | ndarray[tuple[Any, ...], dtype[Any]] | Index | Series")  [assignment]
+ pandas/core/sorting.py:413: error: Argument 1 to "extract_array" has incompatible type "ExtensionArray | ndarray[tuple[Any, ...], dtype[Any]] | Index | Series"; expected "Series | Index"  [arg-type]
+ pandas/core/algorithms.py:1624: error: Unused "type: ignore" comment  [unused-ignore]
+ pandas/core/algorithms.py:1624: error: Argument 1 to "concat_compat" has incompatible type "list[ExtensionArray | ndarray[tuple[Any, ...], dtype[Any]] | Index]"; expected "Sequence[ExtensionArray | ndarray[tuple[Any, ...], dtype[Any]]]"  [arg-type]
+ pandas/core/algorithms.py:1624: note: Error code "arg-type" not covered by "type: ignore" comment
+ pandas/core/arrays/sparse/array.py:1397: error: Need type annotation for "sparse_values"  [var-annotated]
+ pandas/plotting/_core.py:1972: error: Unused "type: ignore" comment  [unused-ignore]
+ pandas/plotting/_core.py:1972: error: Incompatible types in assignment (expression has type "EntryPoints | tuple[()]", variable has type "EntryPoints")  [assignment]
+ pandas/plotting/_core.py:1972: note: Error code "assignment" not covered by "type: ignore" comment
+ pandas/io/sql.py:1904: error: Unused "type: ignore" comment  [unused-ignore]
+ pandas/io/sql.py:1904: error: Incompatible types in assignment (expression has type "dict[Any, ExtensionDtype | str | dtype[Any] | type[object] | Mapping[Hashable, ExtensionDtype | str | dtype[Any] | type[str] | type[complex] | type[bool] | type[object]]]", variable has type "ExtensionDtype | str | dtype[Any] | type[str] | type[complex] | type[bool] | type[object] | Mapping[Hashable, ExtensionDtype | str | dtype[Any] | type[str] | type[complex] | type[bool] | type[object]] | None")  [assignment]
+ pandas/io/sql.py:1904: note: Error code "assignment" not covered by "type: ignore" comment
+ pandas/io/sql.py:1910: error: Item "ExtensionDtype" of "ExtensionDtype | str | dtype[Any] | type[object] | Mapping[Hashable, ExtensionDtype | str | dtype[Any] | type[str] | type[complex] | type[bool] | type[object]] | dict[Any, Any]" has no attribute "items"  [union-attr]
+ pandas/io/sql.py:1910: error: Item "str" of "ExtensionDtype | str | dtype[Any] | type[object] | Mapping[Hashable, ExtensionDtype | str | dtype[Any] | type[str] | type[complex] | type[bool] | type[object]] | dict[Any, Any]" has no attribute "items"  [union-attr]
+ pandas/io/sql.py:1910: error: Item "dtype[Any]" of "ExtensionDtype | str | dtype[Any] | type[object] | Mapping[Hashable, ExtensionDtype | str | dtype[Any] | type[str] | type[complex] | type[bool] | type[object]] | dict[Any, Any]" has no attribute "items"  [union-attr]
+ pandas/io/sql.py:1910: error: Item "type" of "ExtensionDtype | str | dtype[Any] | type[object] | Mapping[Hashable, ExtensionDtype | str | dtype[Any] | type[str] | type[complex] | type[bool] | type[object]] | dict[Any, Any]" has no attribute "items"  [union-attr]
+ pandas/io/sql.py:2862: error: Unused "type: ignore" comment  [unused-ignore]
+ pandas/io/sql.py:2862: error: Incompatible types in assignment (expression has type "dict[Any, ExtensionDtype | str | dtype[Any] | type[object] | Mapping[Hashable, ExtensionDtype | str | dtype[Any] | type[str] | type[complex] | type[bool] | type[object]]]", variable has type "ExtensionDtype | str | dtype[Any] | type[str] | type[complex] | type[bool] | type[object] | Mapping[Hashable, ExtensionDtype | str | dtype[Any] | type[str] | type[complex] | type[bool] | type[object]] | None")  [assignment]
+ pandas/io/sql.py:2862: note: Error code "assignment" not covered by "type: ignore" comment
+ pandas/io/sql.py:2866: error: Item "ExtensionDtype" of "ExtensionDtype | str | dtype[Any] | type[object] | Mapping[Hashable, ExtensionDtype | str | dtype[Any] | type[str] | type[complex] | type[bool] | type[object]] | dict[Any, Any]" has no attribute "items"  [union-attr]
+ pandas/io/sql.py:2866: error: Item "str" of "ExtensionDtype | str | dtype[Any] | type[object] | Mapping[Hashable, ExtensionDtype | str | dtype[Any] | type[str] | type[complex] | type[bool] | type[object]] | dict[Any, Any]" has no attribute "items"  [union-attr]
+ pandas/io/sql.py:2866: error: Item "dtype[Any]" of "ExtensionDtype | str | dtype[Any] | type[object] | Mapping[Hashable, ExtensionDtype | str | dtype[Any] | type[str] | type[complex] | type[bool] | type[object]] | dict[Any, Any]" has no attribute "items"  [union-attr]
+ pandas/io/sql.py:2866: error: Item "type" of "ExtensionDtype | str | dtype[Any] | type[object] | Mapping[Hashable, ExtensionDtype | str | dtype[Any] | type[str] | type[complex] | type[bool] | type[object]] | dict[Any, Any]" has no attribute "items"  [union-attr]
+ pandas/io/parsers/readers.py:1104: error: Argument 1 to "append" of "list" has incompatible type "tuple[int, int]"; expected "Never"  [arg-type]
+ pandas/io/json/_json.py:278: error: Incompatible return value type (got "dict[str, Any]", expected "NDFrame | Mapping[Hashable | Sequence[Hashable], Any]")  [return-value]
+ pandas/io/json/_json.py:398: error: Incompatible return value type (got "dict[str, object]", expected "NDFrame | Mapping[Hashable | Sequence[Hashable], Any]")  [return-value]
+ pandas/io/formats/format.py:567: error: Incompatible types in assignment (expression has type "dict[str, str | int]", variable has type "Mapping[Hashable, str | int]")  [assignment]
+ pandas/io/formats/format.py:568: error: "Mapping[Hashable, str | int]" has no attribute "update"  [attr-defined]
- pandas/core/apply.py:1664: error: Dict entry 0 has incompatible type "str": "Any | None"; expected "str": "str | bool"  [dict-item]
- pandas/core/apply.py:1664: error: Dict entry 1 has incompatible type "str": "Any | None"; expected "str": "str | bool"  [dict-item]
+ pandas/core/generic.py:9334: error: Unused "type: ignore" comment  [unused-ignore]
+ pandas/core/generic.py:9334: error: Argument 1 to "concat" has incompatible type "list[Self]"; expected "Iterable[Series | DataFrame] | Mapping[Never, Series | DataFrame]"  [arg-type]
+ pandas/core/generic.py:9334: note: Error code "arg-type" not covered by "type: ignore" comment
+ pandas/core/frame.py:13522: error: Unused "type: ignore" comment  [unused-ignore]
+ pandas/core/frame.py:13522: error: Argument 1 to "quantile" of "DataFrame" has incompatible type "list[float | ExtensionArray | ndarray[tuple[Any, ...], dtype[Any]] | Index | Series | Sequence[float]]"; expected "ExtensionArray | ndarray[tuple[Any, ...], dtype[Any]] | Index | Series | Sequence[float]"  [arg-type]
+ pandas/core/frame.py:13522: note: Error code "arg-type" not covered by "type: ignore" comment
+ pandas/core/apply.py:328: error: Incompatible types in assignment (expression has type "dict[Any | Callable[..., Any] | str, Callable[..., Any] | str]", variable has type "Callable[..., Any] | str | list[Callable[..., Any] | str] | MutableMapping[Hashable, Callable[..., Any] | str | list[Callable[..., Any] | str]]")  [assignment]
+ pandas/core/apply.py:330: error: Incompatible types in assignment (expression has type "dict[Any, list[Callable[..., Any] | str]]", variable has type "Callable[..., Any] | str | list[Callable[..., Any] | str] | MutableMapping[Hashable, Callable[..., Any] | str | list[Callable[..., Any] | str]]")  [assignment]
+ pandas/core/apply.py:1664: error: Argument 1 to "update" of "MutableMapping" has incompatible type "dict[str, Any | None]"; expected "SupportsKeysAndGetItem[str, str | bool]"  [arg-type]
+ pandas/core/window/common.py:60: error: Invalid index type "int" for "defaultdict[Never, dict[Never, Never]]"; expected type "Never"  [index]
+ pandas/core/window/common.py:60: error: Invalid index type "int" for "dict[Never, Never]"; expected type "Never"  [index]
+ pandas/core/window/common.py:62: error: Invalid index type "int" for "defaultdict[Never, dict[Never, Never]]"; expected type "Never"  [index]
+ pandas/core/window/common.py:62: error: Invalid index type "int" for "dict[Never, Never]"; expected type "Never"  [index]
+ pandas/core/window/common.py:74: error: Invalid index type "int" for "defaultdict[Never, dict[Never, Never]]"; expected type "Never"  [index]
+ pandas/core/window/common.py:74: error: Invalid index type "int" for "dict[Never, Never]"; expected type "Never"  [index]
+ pandas/core/internals/managers.py:1542: error: Argument 1 to "concatenate" has incompatible type "list[object]"; expected "_SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]]"  [arg-type]
+ pandas/core/internals/managers.py:1543: error: Argument 1 to "concatenate" has incompatible type "list[object]"; expected "_SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]]"  [arg-type]
+ pandas/core/internals/managers.py:2433: error: Unused "type: ignore" comment  [unused-ignore]
+ pandas/core/internals/managers.py:2433: error: Argument 1 to "vstack" has incompatible type "list[ndarray[tuple[Any, ...], dtype[Any]] | ExtensionArray]"; expected "Sequence[_SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]]]"  [arg-type]
+ pandas/core/internals/managers.py:2433: note: Error code "arg-type" not covered by "type: ignore" comment
+ pandas/core/internals/construction.py:404: error: No overload variant of "__setitem__" of "list" matches argument types "int", "ExtensionArray | ndarray[tuple[Any, ...], dtype[Any]]"  [call-overload]
+ pandas/core/internals/construction.py:404: note: Possible overload variants:
+ pandas/core/internals/construction.py:404: note:     def __setitem__(self, SupportsIndex, float, /) -> None
+ pandas/core/internals/construction.py:404: note:     def __setitem__(self, slice[Any, Any, Any], Iterable[float], /) -> None
+ pandas/core/indexes/range.py:1441: error: Incompatible types in assignment (expression has type "ndarray[tuple[int], dtype[number[Any, float]]]", variable has type "ndarray[tuple[Any, ...], dtype[floating[Any]]] | ndarray[tuple[Any, ...], dtype[signedinteger[Any]]]")  [assignment]
+ pandas/core/indexes/multi.py:1265: error: Need type annotation for "offsets"  [var-annotated]
+ pandas/core/indexes/multi.py:1265: error: Argument 1 to "concatenate" has incompatible type "list[object]"; expected "_SupportsArray[dtype[Never]] | _NestedSequence[_SupportsArray[dtype[Never]]]"  [arg-type]
+ pandas/io/formats/csvs.py:141: error: List item 0 has incompatible type "Hashable"; expected "str"  [list-item]

... (truncated 1736 lines) ...```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant