Skip to content

[ty] Sync vendored typeshed stubs#23642

Merged
AlexWaygood merged 6 commits intomainfrom
typeshedbot/sync-typeshed
Mar 1, 2026
Merged

[ty] Sync vendored typeshed stubs#23642
AlexWaygood merged 6 commits intomainfrom
typeshedbot/sync-typeshed

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Mar 1, 2026

Close and reopen this PR to trigger CI

@github-actions github-actions bot requested a review from carljm as a code owner March 1, 2026 00:55
@github-actions github-actions bot added the ty Multi-file analysis & type inference label Mar 1, 2026
@AlexWaygood AlexWaygood closed this Mar 1, 2026
@AlexWaygood AlexWaygood reopened this Mar 1, 2026
@astral-sh-bot
Copy link

astral-sh-bot bot commented Mar 1, 2026

Typing conformance results

No changes detected ✅

@astral-sh-bot
Copy link

astral-sh-bot bot commented Mar 1, 2026

Memory usage report

Summary

Project Old New Diff Outcome
prefect 693.13MB 693.17MB +0.01% (42.77kB)
trio 118.55MB 118.59MB +0.03% (38.63kB)
flake8 48.16MB 48.17MB +0.04% (18.60kB)
sphinx 267.73MB 267.75MB +0.01% (16.34kB)

Significant changes

Click to expand detailed breakdown

prefect

Name Old New Diff Outcome
parsed_module 34.16MB 34.19MB +0.07% (23.04kB)
semantic_index 168.01MB 168.02MB +0.01% (17.90kB)
Definition 21.41MB 21.41MB +0.01% (3.00kB)
source_text 22.28MB 22.28MB +0.01% (2.04kB)
Type<'db>::member_lookup_with_policy_ 15.22MB 15.22MB -0.01% (912.00B)
UnionType 3.60MB 3.60MB -0.02% (592.00B)
is_redundant_with_impl::interned_arguments 5.57MB 5.57MB -0.01% (528.00B)
is_redundant_with_impl 5.60MB 5.60MB -0.00% (288.00B)
ScopeId 1.74MB 1.74MB +0.02% (280.00B)
infer_expression_type_impl 14.70MB 14.70MB -0.00% (252.00B)
StaticClassLiteral<'db>::implicit_attribute_inner_ 9.80MB 9.80MB -0.00% (212.00B)
infer_expression_types_impl 60.24MB 60.24MB -0.00% (212.00B)
infer_definition_types 86.31MB 86.31MB -0.00% (164.00B)
Expression 8.20MB 8.20MB +0.00% (144.00B)
FunctionType<'db>::signature_ 3.84MB 3.84MB -0.00% (120.00B)
... 5 more

trio

Name Old New Diff Outcome
parsed_module 27.06MB 27.07MB +0.04% (12.21kB)
infer_expression_types_impl 7.16MB 7.16MB +0.08% (5.52kB)
infer_expression_type_impl 1.49MB 1.50MB +0.35% (5.39kB)
semantic_index 30.33MB 30.33MB +0.01% (3.91kB)
Type<'db>::member_lookup_with_policy_ 1.70MB 1.70MB +0.17% (2.99kB)
all_narrowing_constraints_for_expression 612.71kB 614.53kB +0.30% (1.81kB)
source_text 3.75MB 3.75MB +0.04% (1.48kB)
Definition 4.35MB 4.35MB +0.03% (1.22kB)
StaticClassLiteral<'db>::implicit_attribute_inner_ 770.43kB 771.52kB +0.14% (1.09kB)
UnionType 333.59kB 334.67kB +0.32% (1.08kB)
is_redundant_with_impl::interned_arguments 565.81kB 566.84kB +0.18% (1.03kB)
is_redundant_with_impl 486.80kB 487.36kB +0.12% (576.00B)
IntersectionType<'db>::from_two_elements_::interned_arguments 63.34kB 63.51kB +0.27% (176.00B)
Expression 1.41MB 1.41MB +0.01% (144.00B)
FunctionType<'db>::signature_ 1.07MB 1.07MB -0.01% (120.00B)
... 5 more

flake8

Name Old New Diff Outcome
parsed_module 17.36MB 17.37MB +0.06% (11.15kB)
semantic_index 13.83MB 13.83MB +0.03% (4.75kB)
Definition 2.15MB 2.15MB +0.07% (1.50kB)
source_text 1.56MB 1.56MB +0.06% (1006.00B)
Expression 365.55kB 365.70kB +0.04% (144.00B)
ScopeId 230.27kB 230.35kB +0.03% (80.00B)

sphinx

Name Old New Diff Outcome
parsed_module 32.52MB 32.53MB +0.02% (6.25kB)
semantic_index 62.53MB 62.54MB +0.01% (4.75kB)
infer_deferred_types 5.62MB 5.62MB +0.05% (3.06kB)
Definition 8.87MB 8.87MB +0.02% (1.50kB)
StaticClassLiteral<'db>::try_mro_ 2.17MB 2.17MB -0.06% (1.31kB)
infer_definition_types 24.31MB 24.31MB +0.00% (1.05kB)
FunctionType<'db>::signature_ 2.29MB 2.29MB +0.04% (864.00B)
source_text 7.28MB 7.28MB +0.01% (807.00B)
FunctionType 3.16MB 3.16MB +0.01% (448.00B)
Specialization 1.05MB 1.05MB -0.03% (336.00B)
FunctionType<'db>::last_definition_signature_ 226.79kB 226.48kB -0.13% (312.00B)
StaticClassLiteral<'db>::try_mro_::interned_arguments 501.40kB 501.12kB -0.06% (288.00B)
is_redundant_with_impl 1.85MB 1.85MB -0.01% (228.00B)
OverloadLiteral 1020.37kB 1020.59kB +0.02% (224.00B)
GenericAlias 469.90kB 469.69kB -0.04% (216.00B)
... 7 more

@astral-sh-bot
Copy link

astral-sh-bot bot commented Mar 1, 2026

mypy_primer results

Changes were detected when running on open source projects
more-itertools (https://github.com/more-itertools/more-itertools)
- more_itertools/more.py:2311:9: error[invalid-method-override] Invalid override of method `__contains__`: Definition is incompatible with `Sequence.__contains__`
- more_itertools/more.py:2336:9: error[invalid-method-override] Invalid override of method `__getitem__`: Definition is incompatible with `Sequence.__getitem__`
- more_itertools/more.pyi:528:9: error[invalid-method-override] Invalid override of method `__contains__`: Definition is incompatible with `Sequence.__contains__`
- more_itertools/more.pyi:533:9: error[invalid-method-override] Invalid override of method `__getitem__`: Definition is incompatible with `Sequence.__getitem__`
- Found 35 diagnostics
+ Found 31 diagnostics

nionutils (https://github.com/nion-software/nionutils)
- nion/utils/StructuredModel.py:256:9: error[invalid-method-override] Invalid override of method `__getitem__`: Definition is incompatible with `MutableSequence.__getitem__`
- nion/utils/StructuredModel.py:259:9: error[invalid-method-override] Invalid override of method `__setitem__`: Definition is incompatible with `MutableSequence.__setitem__`
- nion/utils/StructuredModel.py:262:9: error[invalid-method-override] Invalid override of method `__delitem__`: Definition is incompatible with `MutableSequence.__delitem__`
- nion/utils/StructuredModel.py:265:9: error[invalid-method-override] Invalid override of method `__contains__`: Definition is incompatible with `Sequence.__contains__`
- Found 23 diagnostics
+ Found 19 diagnostics

pip (https://github.com/pypa/pip)
- src/pip/_internal/req/req_uninstall.py:132:42: error[invalid-argument-type] Argument to function `norm_join` is incorrect: Expected `str`, found `Sized | Unknown`
+ src/pip/_internal/req/req_uninstall.py:132:42: error[invalid-argument-type] Argument to function `norm_join` is incorrect: Expected `str`, found `Unknown | Sized`
- src/pip/_internal/req/req_uninstall.py:133:40: error[invalid-argument-type] Argument to function `norm_join` is incorrect: Expected `str`, found `Sized | Unknown`
+ src/pip/_internal/req/req_uninstall.py:133:40: error[invalid-argument-type] Argument to function `norm_join` is incorrect: Expected `str`, found `Unknown | Sized`
- src/pip/_internal/req/req_uninstall.py:139:27: error[unsupported-operator] Operator `+` is not supported between objects of type `Sized | Unknown` and `LiteralString`
+ src/pip/_internal/req/req_uninstall.py:139:27: error[unsupported-operator] Operator `+` is not supported between objects of type `Unknown | Sized` and `LiteralString`

spack (https://github.com/spack/spack)
- lib/spack/spack/audit.py:125:9: error[invalid-method-override] Invalid override of method `__getitem__`: Definition is incompatible with `Sequence.__getitem__`
- lib/spack/spack/builder.py:558:9: error[invalid-method-override] Invalid override of method `__getitem__`: Definition is incompatible with `Sequence.__getitem__`
- lib/spack/spack/detection/path.py:169:33: error[invalid-argument-type] Argument to function `dedupe_paths` is incorrect: Expected `list[str]`, found `Unknown | list[bytes | PathLike[str] | PathLike[bytes] | ... omitted 3 union elements]`
+ lib/spack/spack/detection/path.py:169:33: error[invalid-argument-type] Argument to function `dedupe_paths` is incorrect: Expected `list[str]`, found `Unknown | list[int | str | bytes | ... omitted 3 union elements]`
- lib/spack/spack/llnl/util/filesystem.py:1961:9: error[invalid-method-override] Invalid override of method `__getitem__`: Definition is incompatible with `Sequence.__getitem__`
- lib/spack/spack/llnl/util/lang.py:978:9: error[invalid-method-override] Invalid override of method `__getitem__`: Definition is incompatible with `MutableSequence.__getitem__`
- lib/spack/spack/llnl/util/lang.py:981:9: error[invalid-method-override] Invalid override of method `__setitem__`: Definition is incompatible with `MutableSequence.__setitem__`
- lib/spack/spack/llnl/util/lang.py:984:9: error[invalid-method-override] Invalid override of method `__delitem__`: Definition is incompatible with `MutableSequence.__delitem__`
- lib/spack/spack/llnl/util/lang.py:990:9: error[invalid-method-override] Invalid override of method `insert`: Definition is incompatible with `MutableSequence.insert`
- lib/spack/spack/variant.py:600:9: error[invalid-method-override] Invalid override of method `__getitem__`: Definition is incompatible with `Sequence.__getitem__`
- lib/spack/spack/vendor/pyrsistent/typing.pyi:100:9: error[invalid-method-override] Invalid override of method `__contains__`: Definition is incompatible with `AbstractSet.__contains__`
- lib/spack/spack/vendor/ruamel/yaml/comments.py:739:9: error[invalid-method-override] Invalid override of method `__contains__`: Definition is incompatible with `AbstractSet.__contains__`
- lib/spack/spack/vendor/ruamel/yaml/comments.py:758:9: error[invalid-method-override] Invalid override of method `__contains__`: Definition is incompatible with `AbstractSet.__contains__`
- lib/spack/spack/verify_libraries.py:164:46: error[invalid-argument-type] Argument to function `candidate_matches` is incorrect: Expected `bytes`, found `Unknown | bytes | str | PathLike[str] | PathLike[bytes]`
+ lib/spack/spack/verify_libraries.py:164:46: error[invalid-argument-type] Argument to function `candidate_matches` is incorrect: Expected `bytes`, found `bytes | Unknown | str | PathLike[str] | PathLike[bytes]`
- lib/spack/spack/verify_libraries.py:165:17: error[invalid-assignment] Invalid subscript assignment with key of type `Unknown | bytes | str | PathLike[str] | PathLike[bytes]` and value of type `Unknown | bytes | str | PathLike[str] | PathLike[bytes]` on object of type `dict[bytes, bytes]`
+ lib/spack/spack/verify_libraries.py:165:17: error[invalid-assignment] Invalid subscript assignment with key of type `bytes | Unknown | str | PathLike[str] | PathLike[bytes]` and value of type `bytes | Unknown | str | PathLike[str] | PathLike[bytes]` on object of type `dict[bytes, bytes]`
- lib/spack/spack/verify_libraries.py:170:57: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `list[bytes]`, found `list[Unknown | bytes | str | PathLike[str] | PathLike[bytes]]`
+ lib/spack/spack/verify_libraries.py:170:57: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `list[bytes]`, found `list[bytes | Unknown | str | PathLike[str] | PathLike[bytes]]`
- lib/spack/spack/verify_libraries.py:170:69: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `list[bytes]`, found `list[Unknown | bytes | str | PathLike[str] | PathLike[bytes]]`
+ lib/spack/spack/verify_libraries.py:170:69: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `list[bytes]`, found `list[bytes | Unknown | str | PathLike[str] | PathLike[bytes]]`
- Found 4386 diagnostics
+ Found 4375 diagnostics

beartype (https://github.com/beartype/beartype)
- beartype/typing/_typingpep544.py:253:9: error[invalid-method-override] Invalid override of method `__instancecheck__`: Definition is incompatible with `ABCMeta.__instancecheck__`
- Found 498 diagnostics
+ Found 497 diagnostics

werkzeug (https://github.com/pallets/werkzeug)
- src/werkzeug/datastructures/structures.py:774:9: error[invalid-method-override] Invalid override of method `add`: Definition is incompatible with `MutableSet.add`
- src/werkzeug/datastructures/structures.py:778:9: error[invalid-method-override] Invalid override of method `remove`: Definition is incompatible with `MutableSet.remove`
- src/werkzeug/datastructures/structures.py:814:9: error[invalid-method-override] Invalid override of method `discard`: Definition is incompatible with `MutableSet.discard`
- Found 388 diagnostics
+ Found 385 diagnostics

kopf (https://github.com/nolar/kopf)
- kopf/_cogs/structs/diffs.py:97:9: error[invalid-method-override] Invalid override of method `__getitem__`: Definition is incompatible with `Sequence.__getitem__`
- Found 294 diagnostics
+ Found 293 diagnostics

pytest (https://github.com/pytest-dev/pytest)
- testing/test_assertion.py:854:17: error[invalid-method-override] Invalid override of method `__getitem__`: Definition is incompatible with `MutableSequence.__getitem__`
- testing/test_assertion.py:860:17: error[invalid-method-override] Invalid override of method `__setitem__`: Definition is incompatible with `MutableSequence.__setitem__`
- testing/test_assertion.py:863:17: error[invalid-method-override] Invalid override of method `__delitem__`: Definition is incompatible with `MutableSequence.__delitem__`
- Found 392 diagnostics
+ Found 389 diagnostics

pylint (https://github.com/pycqa/pylint)
- pylint/checkers/refactoring/implicit_booleaness_checker.py:219:24: error[unresolved-attribute] Attribute `as_string` is not defined on `str` in union `str | Unknown`
+ pylint/checkers/refactoring/implicit_booleaness_checker.py:219:24: error[unresolved-attribute] Attribute `as_string` is not defined on `str` in union `Unknown | str`
- pylint/checkers/refactoring/implicit_booleaness_checker.py:219:62: error[unresolved-attribute] Attribute `as_string` is not defined on `str` in union `str | Unknown`
+ pylint/checkers/refactoring/implicit_booleaness_checker.py:219:62: error[unresolved-attribute] Attribute `as_string` is not defined on `str` in union `Unknown | str`
- pylint/checkers/refactoring/implicit_booleaness_checker.py:222:27: error[unresolved-attribute] Attribute `as_string` is not defined on `str` in union `str | (Unknown & ~None)`
+ pylint/checkers/refactoring/implicit_booleaness_checker.py:222:27: error[unresolved-attribute] Attribute `as_string` is not defined on `str` in union `(Unknown & ~None) | str`
- pylint/checkers/refactoring/implicit_booleaness_checker.py:236:29: error[unresolved-attribute] Attribute `as_string` is not defined on `str` in union `str | Unknown`
+ pylint/checkers/refactoring/implicit_booleaness_checker.py:236:29: error[unresolved-attribute] Attribute `as_string` is not defined on `str` in union `Unknown | str`
- pylint/checkers/refactoring/implicit_booleaness_checker.py:239:29: error[unresolved-attribute] Attribute `as_string` is not defined on `str` in union `str | Unknown`
+ pylint/checkers/refactoring/implicit_booleaness_checker.py:239:29: error[unresolved-attribute] Attribute `as_string` is not defined on `str` in union `Unknown | str`

graphql-core (https://github.com/graphql-python/graphql-core)
- src/graphql/pyutils/ref_set.py:33:9: error[invalid-method-override] Invalid override of method `__contains__`: Definition is incompatible with `AbstractSet.__contains__`
- Found 636 diagnostics
+ Found 635 diagnostics

ignite (https://github.com/pytorch/ignite)
- tests/ignite/test_utils.py:49:28: error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int) -> Unknown, (index: slice[int | None, int | None, int | None]) -> Sequence[Unknown]]` cannot be called with key of type `Literal["a"]` on object of type `Sequence[Unknown]`
+ tests/ignite/test_utils.py:49:28: error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int, /) -> Unknown, (index: slice[int | None, int | None, int | None], /) -> Sequence[Unknown]]` cannot be called with key of type `Literal["a"]` on object of type `Sequence[Unknown]`
- tests/ignite/test_utils.py:50:28: error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int) -> Unknown, (index: slice[int | None, int | None, int | None]) -> Sequence[Unknown]]` cannot be called with key of type `Literal["b"]` on object of type `Sequence[Unknown]`
+ tests/ignite/test_utils.py:50:28: error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int, /) -> Unknown, (index: slice[int | None, int | None, int | None], /) -> Sequence[Unknown]]` cannot be called with key of type `Literal["b"]` on object of type `Sequence[Unknown]`

rich (https://github.com/Textualize/rich)
- tests/test_tools.py:17:17: error[invalid-argument-type] Argument to function `next` is incorrect: Expected `SupportsNext[Unknown]`, found `Iterable[tuple[bool, Unknown | str]]`
+ tests/test_tools.py:17:17: error[invalid-argument-type] Argument to function `next` is incorrect: Expected `SupportsNext[Unknown]`, found `Iterable[tuple[bool, str | Unknown]]`
- tests/test_tools.py:18:17: error[invalid-argument-type] Argument to function `next` is incorrect: Expected `SupportsNext[Unknown]`, found `Iterable[tuple[bool, Unknown | str]]`
+ tests/test_tools.py:18:17: error[invalid-argument-type] Argument to function `next` is incorrect: Expected `SupportsNext[Unknown]`, found `Iterable[tuple[bool, str | Unknown]]`
- tests/test_tools.py:19:17: error[invalid-argument-type] Argument to function `next` is incorrect: Expected `SupportsNext[Unknown]`, found `Iterable[tuple[bool, Unknown | str]]`
+ tests/test_tools.py:19:17: error[invalid-argument-type] Argument to function `next` is incorrect: Expected `SupportsNext[Unknown]`, found `Iterable[tuple[bool, str | Unknown]]`
- tests/test_tools.py:20:17: error[invalid-argument-type] Argument to function `next` is incorrect: Expected `SupportsNext[Unknown]`, found `Iterable[tuple[bool, Unknown | str]]`
+ tests/test_tools.py:20:17: error[invalid-argument-type] Argument to function `next` is incorrect: Expected `SupportsNext[Unknown]`, found `Iterable[tuple[bool, str | Unknown]]`

PyGithub (https://github.com/PyGithub/PyGithub)
- github/Requester.py:899:57: error[invalid-argument-type] Argument to bound method `__hostnameHasDomain` is incorrect: Expected `str | list[str]`, found `Unknown | list[Unknown | str] | list[None | Unknown | str]`
+ github/Requester.py:899:57: error[invalid-argument-type] Argument to bound method `__hostnameHasDomain` is incorrect: Expected `str | list[str]`, found `Unknown | list[Unknown | str] | list[str | Unknown | None]`

ppb-vector (https://github.com/ppb/ppb-vector)
- ppb_vector/__init__.py:189:26: error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int) -> SupportsFloat, (index: slice[int | None, int | None, int | None]) -> Sequence[SupportsFloat]]` cannot be called with key of type `Literal["x"]` on object of type `Sequence[SupportsFloat]`
+ ppb_vector/__init__.py:189:26: error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int, /) -> SupportsFloat, (index: slice[int | None, int | None, int | None], /) -> Sequence[SupportsFloat]]` cannot be called with key of type `Literal["x"]` on object of type `Sequence[SupportsFloat]`
- ppb_vector/__init__.py:189:45: error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int) -> SupportsFloat, (index: slice[int | None, int | None, int | None]) -> Sequence[SupportsFloat]]` cannot be called with key of type `Literal["y"]` on object of type `Sequence[SupportsFloat]`
+ ppb_vector/__init__.py:189:45: error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int, /) -> SupportsFloat, (index: slice[int | None, int | None, int | None], /) -> Sequence[SupportsFloat]]` cannot be called with key of type `Literal["y"]` on object of type `Sequence[SupportsFloat]`

pydantic (https://github.com/pydantic/pydantic)
- pydantic/_internal/_core_metadata.py:87:54: error[invalid-assignment] Invalid assignment to key "pydantic_js_extra" with declared type `dict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | ((dict[str, int | float | str | ... omitted 3 union elements], type[Any], /) -> None)` on TypedDict `CoreMetadata`: value of type `dict[object, object]`
+ pydantic/_internal/_core_metadata.py:87:54: error[invalid-assignment] Invalid assignment to key "pydantic_js_extra" with declared type `dict[str, Divergent] | ((dict[str, Divergent], /) -> None) | ((dict[str, Divergent], type[Any], /) -> None)` on TypedDict `CoreMetadata`: value of type `dict[object, object]`
- pydantic/_internal/_model_construction.py:308:5: error[invalid-method-override] Invalid override of method `__instancecheck__`: Definition is incompatible with `ABCMeta.__instancecheck__`
- pydantic/_internal/_model_construction.py:309:5: error[invalid-method-override] Invalid override of method `__subclasscheck__`: Definition is incompatible with `ABCMeta.__subclasscheck__`
- pydantic/fields.py:949:5: error[invalid-parameter-default] Default value of type `PydanticUndefinedType` is not assignable to annotated parameter type `dict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | None`
+ pydantic/fields.py:949:5: error[invalid-parameter-default] Default value of type `PydanticUndefinedType` is not assignable to annotated parameter type `dict[str, Divergent] | ((dict[str, Divergent], /) -> None) | None`
- pydantic/fields.py:989:5: error[invalid-parameter-default] Default value of type `PydanticUndefinedType` is not assignable to annotated parameter type `dict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | None`
+ pydantic/fields.py:989:5: error[invalid-parameter-default] Default value of type `PydanticUndefinedType` is not assignable to annotated parameter type `dict[str, Divergent] | ((dict[str, Divergent], /) -> None) | None`
- pydantic/fields.py:1032:5: error[invalid-parameter-default] Default value of type `PydanticUndefinedType` is not assignable to annotated parameter type `dict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | None`
+ pydantic/fields.py:1032:5: error[invalid-parameter-default] Default value of type `PydanticUndefinedType` is not assignable to annotated parameter type `dict[str, Divergent] | ((dict[str, Divergent], /) -> None) | None`
- pydantic/fields.py:1072:5: error[invalid-parameter-default] Default value of type `PydanticUndefinedType` is not assignable to annotated parameter type `dict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | None`
+ pydantic/fields.py:1072:5: error[invalid-parameter-default] Default value of type `PydanticUndefinedType` is not assignable to annotated parameter type `dict[str, Divergent] | ((dict[str, Divergent], /) -> None) | None`
- pydantic/fields.py:1115:5: error[invalid-parameter-default] Default value of type `PydanticUndefinedType` is not assignable to annotated parameter type `dict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | None`
+ pydantic/fields.py:1115:5: error[invalid-parameter-default] Default value of type `PydanticUndefinedType` is not assignable to annotated parameter type `dict[str, Divergent] | ((dict[str, Divergent], /) -> None) | None`
- pydantic/fields.py:1154:5: error[invalid-parameter-default] Default value of type `PydanticUndefinedType` is not assignable to annotated parameter type `dict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | None`
+ pydantic/fields.py:1154:5: error[invalid-parameter-default] Default value of type `PydanticUndefinedType` is not assignable to annotated parameter type `dict[str, Divergent] | ((dict[str, Divergent], /) -> None) | None`
- pydantic/fields.py:1194:5: error[invalid-parameter-default] Default value of type `PydanticUndefinedType` is not assignable to annotated parameter type `dict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | None`
+ pydantic/fields.py:1194:5: error[invalid-parameter-default] Default value of type `PydanticUndefinedType` is not assignable to annotated parameter type `dict[str, Divergent] | ((dict[str, Divergent], /) -> None) | None`
- pydantic/fields.py:1573:13: error[invalid-argument-type] Argument is incorrect: Expected `dict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | None`, found `Top[dict[Unknown, Unknown]] | (((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) & ~Top[dict[Unknown, Unknown]]) | None`
+ pydantic/fields.py:1573:13: error[invalid-argument-type] Argument is incorrect: Expected `dict[str, Divergent] | ((dict[str, Divergent], /) -> None) | None`, found `Top[dict[Unknown, Unknown]] | (((dict[str, Divergent], /) -> None) & ~Top[dict[Unknown, Unknown]]) | None`
- Found 3193 diagnostics
+ Found 3191 diagnostics

mitmproxy (https://github.com/mitmproxy/mitmproxy)
- mitmproxy/addons/view.py:226:9: error[invalid-method-override] Invalid override of method `__getitem__`: Definition is incompatible with `Sequence.__getitem__`
- mitmproxy/addons/view.py:235:9: error[invalid-method-override] Invalid override of method `index`: Definition is incompatible with `Sequence.index`
- mitmproxy/addons/view.py:240:9: error[invalid-method-override] Invalid override of method `__contains__`: Definition is incompatible with `Sequence.__contains__`
- Found 2129 diagnostics
+ Found 2126 diagnostics

vision (https://github.com/pytorch/vision)
- test/test_transforms_v2.py:1551:49: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Number | Sequence[Unknown]`, found `Unknown | tuple[int, int, int, int] | int | tuple[int | float, int | float]`
+ test/test_transforms_v2.py:1551:49: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Number | Sequence[Unknown]`, found `Unknown | int | tuple[int | float, int | float] | tuple[int, int, int, int]`
- test/test_transforms_v2.py:1551:49: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Sequence[int | float] | None`, found `Unknown | tuple[int, int, int, int] | int | tuple[int | float, int | float]`
+ test/test_transforms_v2.py:1551:49: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Sequence[int | float] | None`, found `Unknown | int | tuple[int | float, int | float] | tuple[int, int, int, int]`
- test/test_transforms_v2.py:1551:49: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Sequence[int | float] | None`, found `Unknown | tuple[int, int, int, int] | int | tuple[int | float, int | float]`
+ test/test_transforms_v2.py:1551:49: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Sequence[int | float] | None`, found `Unknown | int | tuple[int | float, int | float] | tuple[int, int, int, int]`
- test/test_transforms_v2.py:1551:49: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `InterpolationMode | int`, found `Unknown | tuple[int, int, int, int] | int | tuple[int | float, int | float]`
+ test/test_transforms_v2.py:1551:49: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `InterpolationMode | int`, found `Unknown | int | tuple[int | float, int | float] | tuple[int, int, int, int]`
- test/test_transforms_v2.py:1551:49: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `list[int | float] | None`, found `Unknown | tuple[int, int, int, int] | int | tuple[int | float, int | float]`
+ test/test_transforms_v2.py:1551:49: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `list[int | float] | None`, found `Unknown | int | tuple[int | float, int | float] | tuple[int, int, int, int]`
- test/test_transforms_v2.py:1605:13: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Number | Sequence[Unknown]`, found `Unknown | tuple[int, int, int, int] | int | tuple[int | float, int | float]`
+ test/test_transforms_v2.py:1605:13: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Number | Sequence[Unknown]`, found `Unknown | int | tuple[int | float, int | float] | tuple[int, int, int, int]`
- test/test_transforms_v2.py:1605:13: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Sequence[int | float] | None`, found `Unknown | tuple[int, int, int, int] | int | tuple[int | float, int | float]`
+ test/test_transforms_v2.py:1605:13: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Sequence[int | float] | None`, found `Unknown | int | tuple[int | float, int | float] | tuple[int, int, int, int]`
- test/test_transforms_v2.py:1605:13: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Sequence[int | float] | None`, found `Unknown | tuple[int, int, int, int] | int | tuple[int | float, int | float]`
+ test/test_transforms_v2.py:1605:13: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Sequence[int | float] | None`, found `Unknown | int | tuple[int | float, int | float] | tuple[int, int, int, int]`
- test/test_transforms_v2.py:1692:45: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Number | Sequence[Unknown]`, found `Unknown | tuple[int, int, int, int] | int | tuple[int | float, int | float]`
+ test/test_transforms_v2.py:1692:45: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Number | Sequence[Unknown]`, found `Unknown | int | tuple[int | float, int | float] | tuple[int, int, int, int]`
- test/test_transforms_v2.py:1692:45: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Sequence[int | float] | None`, found `Unknown | tuple[int, int, int, int] | int | tuple[int | float, int | float]`
+ test/test_transforms_v2.py:1692:45: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Sequence[int | float] | None`, found `Unknown | int | tuple[int | float, int | float] | tuple[int, int, int, int]`
- test/test_transforms_v2.py:1692:45: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Sequence[int | float] | None`, found `Unknown | tuple[int, int, int, int] | int | tuple[int | float, int | float]`
+ test/test_transforms_v2.py:1692:45: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Sequence[int | float] | None`, found `Unknown | int | tuple[int | float, int | float] | tuple[int, int, int, int]`
- test/test_transforms_v2.py:1692:45: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `InterpolationMode | int`, found `Unknown | tuple[int, int, int, int] | int | tuple[int | float, int | float]`
+ test/test_transforms_v2.py:1692:45: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `InterpolationMode | int`, found `Unknown | int | tuple[int | float, int | float] | tuple[int, int, int, int]`
- test/test_transforms_v2.py:1747:45: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Number | Sequence[Unknown]`, found `Unknown | tuple[int, int, int, int] | int | tuple[int | float, int | float]`
+ test/test_transforms_v2.py:1747:45: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Number | Sequence[Unknown]`, found `Unknown | int | tuple[int | float, int | float] | tuple[int, int, int, int]`
- test/test_transforms_v2.py:1747:45: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Sequence[int | float] | None`, found `Unknown | tuple[int, int, int, int] | int | tuple[int | float, int | float]`
+ test/test_transforms_v2.py:1747:45: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Sequence[int | float] | None`, found `Unknown | int | tuple[int | float, int | float] | tuple[int, int, int, int]`
- test/test_transforms_v2.py:1747:45: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Sequence[int | float] | None`, found `Unknown | tuple[int, int, int, int] | int | tuple[int | float, int | float]`
+ test/test_transforms_v2.py:1747:45: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Sequence[int | float] | None`, found `Unknown | int | tuple[int | float, int | float] | tuple[int, int, int, int]`
- test/test_transforms_v2.py:1747:45: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `InterpolationMode | int`, found `Unknown | tuple[int, int, int, int] | int | tuple[int | float, int | float]`
+ test/test_transforms_v2.py:1747:45: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `InterpolationMode | int`, found `Unknown | int | tuple[int | float, int | float] | tuple[int, int, int, int]`

artigraph (https://github.com/artigraph/artigraph)
- tests/arti/types/test_types.py:100:51: error[invalid-argument-type] Argument is incorrect: Expected `frozenset[Any]`, found `frozenset[float | Unknown | int] | list[Unknown | int | float] | tuple[float | Unknown | int, ...]`
+ tests/arti/types/test_types.py:100:51: error[invalid-argument-type] Argument is incorrect: Expected `frozenset[Any]`, found `frozenset[float | Unknown | int] | list[int | Unknown | float] | tuple[float | Unknown | int, ...]`

schema_salad (https://github.com/common-workflow-language/schema_salad)
- schema_salad/metaschema.py:1029:41: error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int) -> Any, (index: slice[int | None, int | None, int | None]) -> MutableSequence[Any]]` cannot be called with key of type `str` on object of type `MutableSequence[Any]`
+ schema_salad/metaschema.py:1029:41: error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int, /) -> Any, (index: slice[int | None, int | None, int | None], /) -> MutableSequence[Any]]` cannot be called with key of type `str` on object of type `MutableSequence[Any]`
- schema_salad/metaschema.py:1033:23: error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int) -> Any, (index: slice[int | None, int | None, int | None]) -> MutableSequence[Any]]` cannot be called with key of type `Literal["$base"]` on object of type `MutableSequence[Any]`
+ schema_salad/metaschema.py:1033:23: error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int, /) -> Any, (index: slice[int | None, int | None, int | None], /) -> MutableSequence[Any]]` cannot be called with key of type `Literal["$base"]` on object of type `MutableSequence[Any]`
- schema_salad/metaschema.py:1053:29: error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int) -> Any, (index: slice[int | None, int | None, int | None]) -> MutableSequence[Any]]` cannot be called with key of type `Literal["$graph"]` on object of type `MutableSequence[Any]`
+ schema_salad/metaschema.py:1053:29: error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int, /) -> Any, (index: slice[int | None, int | None, int | None], /) -> MutableSequence[Any]]` cannot be called with key of type `Literal["$graph"]` on object of type `MutableSequence[Any]`
- schema_salad/python_codegen_support.py:1026:41: error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int) -> Any, (index: slice[int | None, int | None, int | None]) -> MutableSequence[Any]]` cannot be called with key of type `str` on object of type `MutableSequence[Any]`
+ schema_salad/python_codegen_support.py:1026:41: error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int, /) -> Any, (index: slice[int | None, int | None, int | None], /) -> MutableSequence[Any]]` cannot be called with key of type `str` on object of type `MutableSequence[Any]`
- schema_salad/python_codegen_support.py:1030:23: error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int) -> Any, (index: slice[int | None, int | None, int | None]) -> MutableSequence[Any]]` cannot be called with key of type `Literal["$base"]` on object of type `MutableSequence[Any]`
+ schema_salad/python_codegen_support.py:1030:23: error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int, /) -> Any, (index: slice[int | None, int | None, int | None], /) -> MutableSequence[Any]]` cannot be called with key of type `Literal["$base"]` on object of type `MutableSequence[Any]`
- schema_salad/python_codegen_support.py:1050:29: error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int) -> Any, (index: slice[int | None, int | None, int | None]) -> MutableSequence[Any]]` cannot be called with key of type `Literal["$graph"]` on object of type `MutableSequence[Any]`
+ schema_salad/python_codegen_support.py:1050:29: error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int, /) -> Any, (index: slice[int | None, int | None, int | None], /) -> MutableSequence[Any]]` cannot be called with key of type `Literal["$graph"]` on object of type `MutableSequence[Any]`
- schema_salad/schema.py:541:48: error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int) -> Any, (index: slice[int | None, int | None, int | None]) -> MutableSequence[Any]]` cannot be called with key of type `Literal["name"]` on object of type `MutableSequence[Any]`
+ schema_salad/schema.py:541:48: error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int, /) -> Any, (index: slice[int | None, int | None, int | None], /) -> MutableSequence[Any]]` cannot be called with key of type `Literal["name"]` on object of type `MutableSequence[Any]`
- schema_salad/schema.py:543:56: error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int) -> Any, (index: slice[int | None, int | None, int | None]) -> MutableSequence[Any]]` cannot be called with key of type `Literal["name"]` on object of type `MutableSequence[Any]`
+ schema_salad/schema.py:543:56: error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int, /) -> Any, (index: slice[int | None, int | None, int | None], /) -> MutableSequence[Any]]` cannot be called with key of type `Literal["name"]` on object of type `MutableSequence[Any]`
- schema_salad/schema.py:545:31: error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int) -> Any, (index: slice[int | None, int | None, int | None]) -> MutableSequence[Any]]` cannot be called with key of type `Literal["type"]` on object of type `MutableSequence[Any]`
+ schema_salad/schema.py:545:31: error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int, /) -> Any, (index: slice[int | None, int | None, int | None], /) -> MutableSequence[Any]]` cannot be called with key of type `Literal["type"]` on object of type `MutableSequence[Any]`
- schema_salad/schema.py:558:20: error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int) -> Any, (index: slice[int | None, int | None, int | None]) -> MutableSequence[Any]]` cannot be called with key of type `Literal["name"]` on object of type `MutableSequence[Any]`
+ schema_salad/schema.py:558:20: error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int, /) -> Any, (index: slice[int | None, int | None, int | None], /) -> MutableSequence[Any]]` cannot be called with key of type `Literal["name"]` on object of type `MutableSequence[Any]`
- schema_salad/schema.py:559:38: error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int) -> Any, (index: slice[int | None, int | None, int | None]) -> MutableSequence[Any]]` cannot be called with key of type `Literal["name"]` on object of type `MutableSequence[Any]`
+ schema_salad/schema.py:559:38: error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int, /) -> Any, (index: slice[int | None, int | None, int | None], /) -> MutableSequence[Any]]` cannot be called with key of type `Literal["name"]` on object of type `MutableSequence[Any]`
- schema_salad/schema.py:560:27: error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int) -> Any, (index: slice[int | None, int | None, int | None]) -> MutableSequence[Any]]` cannot be called with key of type `Literal["name"]` on object of type `MutableSequence[Any]`
+ schema_salad/schema.py:560:27: error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int, /) -> Any, (index: slice[int | None, int | None, int | None], /) -> MutableSequence[Any]]` cannot be called with key of type `Literal["name"]` on object of type `MutableSequence[Any]`
- schema_salad/schema.py:564:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int) -> Any, (index: slice[int | None, int | None, int | None]) -> MutableSequence[Any]]` cannot be called with key of type `Literal["type"]` on object of type `MutableSequence[Any]`
+ schema_salad/schema.py:564:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int, /) -> Any, (index: slice[int | None, int | None, int | None], /) -> MutableSequence[Any]]` cannot be called with key of type `Literal["type"]` on object of type `MutableSequence[Any]`
- schema_salad/schema.py:564:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int) -> Any, (index: slice[int | None, int | None, int | None]) -> MutableSequence[Any]]` cannot be called with key of type `Literal["names"]` on object of type `MutableSequence[Any]`
+ schema_salad/schema.py:564:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int, /) -> Any, (index: slice[int | None, int | None, int | None], /) -> MutableSequence[Any]]` cannot be called with key of type `Literal["names"]` on object of type `MutableSequence[Any]`
- schema_salad/schema.py:564:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int) -> Any, (index: slice[int | None, int | None, int | None]) -> MutableSequence[Any]]` cannot be called with key of type `Literal["values"]` on object of type `MutableSequence[Any]`
+ schema_salad/schema.py:564:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int, /) -> Any, (index: slice[int | None, int | None, int | None], /) -> MutableSequence[Any]]` cannot be called with key of type `Literal["values"]` on object of type `MutableSequence[Any]`
- schema_salad/schema.py:564:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int) -> Any, (index: slice[int | None, int | None, int | None]) -> MutableSequence[Any]]` cannot be called with key of type `Literal["fields"]` on object of type `MutableSequence[Any]`
+ schema_salad/schema.py:564:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int, /) -> Any, (index: slice[int | None, int | None, int | None], /) -> MutableSequence[Any]]` cannot be called with key of type `Literal["fields"]` on object of type `MutableSequence[Any]`
- schema_salad/schema.py:564:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int) -> Any, (index: slice[int | None, int | None, int | None]) -> MutableSequence[Any]]` cannot be called with key of type `Literal["items"]` on object of type `MutableSequence[Any]`
+ schema_salad/schema.py:564:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int, /) -> Any, (index: slice[int | None, int | None, int | None], /) -> MutableSequence[Any]]` cannot be called with key of type `Literal["items"]` on object of type `MutableSequence[Any]`
- schema_salad/schema.py:572:64: error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int) -> Any, (index: slice[int | None, int | None, int | None]) -> MutableSequence[Any]]` cannot be called with key of type `Literal["symbols"]` on object of type `MutableSequence[Any]`
+ schema_salad/schema.py:572:64: error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int, /) -> Any, (index: slice[int | None, int | None, int | None], /) -> MutableSequence[Any]]` cannot be called with key of type `Literal["symbols"]` on object of type `MutableSequence[Any]`

operator (https://github.com/canonical/operator)
- ops/framework.py:1464:9: error[invalid-method-override] Invalid override of method `add`: Definition is incompatible with `MutableSet.add`
- ops/framework.py:1472:9: error[invalid-method-override] Invalid override of method `discard`: Definition is incompatible with `MutableSet.discard`
- ops/framework.py:1480:9: error[invalid-method-override] Invalid override of method `__contains__`: Definition is incompatible with `AbstractSet.__contains__`
- Found 127 diagnostics
+ Found 124 diagnostics

Expression (https://github.com/cognitedata/Expression)
- expression/collections/array.py:459:9: error[invalid-method-override] Invalid override of method `__setitem__`: Definition is incompatible with `MutableSequence.__setitem__`
- expression/collections/array.py:462:9: error[invalid-method-override] Invalid override of method `__getitem__`: Definition is incompatible with `MutableSequence.__getitem__`
- expression/collections/array.py:465:9: error[invalid-method-override] Invalid override of method `__delitem__`: Definition is incompatible with `MutableSequence.__delitem__`
- Found 205 diagnostics
+ Found 202 diagnostics

mypy (https://github.com/python/mypy)
- mypy/typeshed/stdlib/_collections_abc.pyi:73:9: error[invalid-method-override] Invalid override of method `__eq__`: Definition is incompatible with `AbstractSet.__eq__`
- mypy/typeshed/stdlib/_collections_abc.pyi:91:9: error[invalid-method-override] Invalid override of method `__eq__`: Definition is incompatible with `AbstractSet.__eq__`
- mypy/typeshed/stdlib/_weakrefset.pyi:16:9: error[invalid-method-override] Invalid override of method `add`: Definition is incompatible with `MutableSet.add`
- mypy/typeshed/stdlib/_weakrefset.pyi:17:9: error[invalid-method-override] Invalid override of method `discard`: Definition is incompatible with `MutableSet.discard`
- mypy/typeshed/stdlib/_weakrefset.pyi:19:9: error[invalid-method-override] Invalid override of method `remove`: Definition is incompatible with `MutableSet.remove`
+ mypy/typeshed/stdlib/_weakrefset.pyi:25:58: warning[unused-type-ignore-comment] Unused blanket `type: ignore` directive
+ mypy/typeshed/stdlib/_weakrefset.pyi:44:59: warning[unused-type-ignore-comment] Unused blanket `type: ignore` directive
- mypy/typeshed/stdlib/_weakrefset.pyi:22:9: error[invalid-method-override] Invalid override of method `__contains__`: Definition is incompatible with `AbstractSet.__contains__`
- mypy/typeshed/stdlib/_weakrefset.pyi:29:9: error[invalid-method-override] Invalid override of method `__isub__`: Definition is incompatible with `MutableSet.__isub__`
- mypy/typeshed/stdlib/_weakrefset.pyi:33:9: error[invalid-method-override] Invalid override of method `__iand__`: Definition is incompatible with `MutableSet.__iand__`
- mypy/typeshed/stdlib/array.pyi:55:9: error[invalid-method-override] Invalid override of method `append`: Definition is incompatible with `MutableSequence.append`
- mypy/typeshed/stdlib/array.pyi:58:9: error[invalid-method-override] Invalid override of method `count`: Definition is incompatible with `Sequence.count`
- mypy/typeshed/stdlib/array.pyi:59:9: error[invalid-method-override] Invalid override of method `extend`: Definition is incompatible with `MutableSequence.extend`
- mypy/typeshed/stdlib/array.pyi:65:13: error[invalid-method-override] Invalid override of method `index`: Definition is incompatible with `Sequence.index`
- mypy/typeshed/stdlib/array.pyi:69:9: error[invalid-method-override] Invalid override of method `insert`: Definition is incompatible with `MutableSequence.insert`
- mypy/typeshed/stdlib/array.pyi:70:9: error[invalid-method-override] Invalid override of method `pop`: Definition is incompatible with `MutableSequence.pop`
- mypy/typeshed/stdlib/array.pyi:71:9: error[invalid-method-override] Invalid override of method `remove`: Definition is incompatible with `MutableSequence.remove`
- mypy/typeshed/stdlib/array.pyi:78:9: error[invalid-method-override] Invalid override of method `__contains__`: Definition is incompatible with `Sequence.__contains__`
- mypy/typeshed/stdlib/array.pyi:83:9: error[invalid-method-override] Invalid override of method `__getitem__`: Definition is incompatible with `MutableSequence.__getitem__`
- mypy/typeshed/stdlib/array.pyi:88:9: error[invalid-method-override] Invalid override of method `__delitem__`: Definition is incompatible with `MutableSequence.__delitem__`
- mypy/typeshed/stdlib/builtins.pyi:717:9: error[invalid-method-override] Invalid override of method `remove`: Definition is incompatible with `MutableSequence.remove`
- mypy/typeshed/stdlib/builtins.pyi:1028:9: error[invalid-method-override] Invalid override of method `append`: Definition is incompatible with `MutableSequence.append`
- mypy/typeshed/stdlib/builtins.pyi:1029:9: error[invalid-method-override] Invalid override of method `extend`: Definition is incompatible with `MutableSequence.extend`
- mypy/typeshed/stdlib/builtins.pyi:1030:9: error[invalid-method-override] Invalid override of method `pop`: Definition is incompatible with `MutableSequence.pop`
- mypy/typeshed/stdlib/builtins.pyi:1035:9: error[invalid-method-override] Invalid override of method `insert`: Definition is incompatible with `MutableSequence.insert`
- mypy/typeshed/stdlib/builtins.pyi:1036:9: error[invalid-method-override] Invalid override of method `remove`: Definition is incompatible with `MutableSequence.remove`
+ mypy/typeshed/stdlib/builtins.pyi:1063:62: warning[unused-type-ignore-comment] Unused blanket `type: ignore` directive
- mypy/typeshed/stdlib/builtins.pyi:1165:9: error[invalid-method-override] Invalid override of method `add`: Definition is incompatible with `MutableSet.add`
- mypy/typeshed/stdlib/builtins.pyi:1169:9: error[invalid-method-override] Invalid override of method `discard`: Definition is incompatible with `MutableSet.discard`
- mypy/typeshed/stdlib/builtins.pyi:1175:9: error[invalid-method-override] Invalid override of method `remove`: Definition is incompatible with `MutableSet.remove`
+ mypy/typeshed/stdlib/builtins.pyi:1186:64: warning[unused-type-ignore-comment] Unused blanket `type: ignore` directive
+ mypy/typeshed/stdlib/builtins.pyi:1190:65: warning[unused-type-ignore-comment] Unused blanket `type: ignore` directive
- mypy/typeshed/stdlib/builtins.pyi:1183:9: error[invalid-method-override] Invalid override of method `__and__`: Definition is incompatible with `AbstractSet.__and__`
- mypy/typeshed/stdlib/builtins.pyi:1184:9: error[invalid-method-override] Invalid override of method `__iand__`: Definition is incompatible with `MutableSet.__iand__`
- mypy/typeshed/stdlib/builtins.pyi:1185:9: error[invalid-method-override] Invalid override of method `__or__`: Definition is incompatible with `AbstractSet.__or__`
- mypy/typeshed/stdlib/builtins.pyi:1187:9: error[invalid-method-override] Invalid override of method `__sub__`: Definition is incompatible with `AbstractSet.__sub__`
- mypy/typeshed/stdlib/builtins.pyi:1188:9: error[invalid-method-override] Invalid override of method `__isub__`: Definition is incompatible with `MutableSet.__isub__`
- mypy/typeshed/stdlib/builtins.pyi:1189:9: error[invalid-method-override] Invalid override of method `__xor__`: Definition is incompatible with `AbstractSet.__xor__`
- mypy/typeshed/stdlib/builtins.pyi:1216:9: error[invalid-method-override] Invalid override of method `__and__`: Definition is incompatible with `AbstractSet.__and__`
- mypy/typeshed/stdlib/builtins.pyi:1217:9: error[invalid-method-override] Invalid override of method `__or__`: Definition is incompatible with `AbstractSet.__or__`
- mypy/typeshed/stdlib/builtins.pyi:1218:9: error[invalid-method-override] Invalid override of method `__sub__`: Definition is incompatible with `AbstractSet.__sub__`
- mypy/typeshed/stdlib/builtins.pyi:1219:9: error[invalid-method-override] Invalid override of method `__xor__`: Definition is incompatible with `AbstractSet.__xor__`
- mypy/typeshed/stdlib/collections/__init__.pyi:127:9: error[invalid-method-override] Invalid override of method `__contains__`: Definition is incompatible with `Sequence.__contains__`
- mypy/typeshed/stdlib/collections/__init__.pyi:132:9: error[invalid-method-override] Invalid override of method `__getitem__`: Definition is incompatible with `MutableSequence.__getitem__`
- mypy/typeshed/stdlib/collections/__init__.pyi:136:9: error[invalid-method-override] Invalid override of method `__setitem__`: Definition is incompatible with `MutableSequence.__setitem__`
- mypy/typeshed/stdlib/collections/__init__.pyi:137:9: error[invalid-method-override] Invalid override of method `__delitem__`: Definition is incompatible with `MutableSequence.__delitem__`
- mypy/typeshed/stdlib/collections/__init__.pyi:140:9: error[invalid-method-override] Invalid override of method `__iadd__`: Definition is incompatible with `MutableSequence.__iadd__`
- mypy/typeshed/stdlib/collections/__init__.pyi:144:9: error[invalid-method-override] Invalid override of method `append`: Definition is incompatible with `MutableSequence.append`
- mypy/typeshed/stdlib/collections/__init__.pyi:145:9: error[invalid-method-override] Invalid override of method `insert`: Definition is incompatible with `MutableSequence.insert`
- mypy/typeshed/stdlib/collections/__init__.pyi:146:9: error[invalid-method-override] Invalid override of method `pop`: Definition is incompatible with `MutableSequence.pop`
- mypy/typeshed/stdlib/collections/__init__.pyi:147:9: error[invalid-method-override] Invalid override of method `remove`: Definition is incompatible with `MutableSequence.remove`
- mypy/typeshed/stdlib/collections/__init__.pyi:150:9: error[invalid-method-override] Invalid override of method `count`: Definition is incompatible with `Sequence.count`
- mypy/typeshed/stdlib/collections/__init__.pyi:154:9: error[invalid-method-override] Invalid override of method `index`: Definition is incompatible with `Sequence.index`
- mypy/typeshed/stdlib/collections/__init__.pyi:160:9: error[invalid-method-override] Invalid override of method `extend`: Definition is incompatible with `MutableSequence.extend`
- mypy/typeshed/stdlib/collections/__init__.pyi:175:9: error[invalid-method-override] Invalid override of method `__contains__`: Definition is incompatible with `Sequence.__contains__`
- mypy/typeshed/stdlib/collections/__init__.pyi:189:9: error[invalid-method-override] Invalid override of method `count`: Definition is incompatible with `Sequence.count`
- mypy/typeshed/stdlib/collections/__init__.pyi:196:9: error[invalid-method-override] Invalid override of method `index`: Definition is incompatible with `Sequence.index`
- mypy/typeshed/stdlib/collections/__init__.pyi:242:9: error[invalid-method-override] Invalid override of method `append`: Definition is incompatible with `MutableSequence.append`
- mypy/typeshed/stdlib/collections/__init__.pyi:245:9: error[invalid-method-override] Invalid override of method `count`: Definition is incompatible with `Sequence.count`
- mypy/typeshed/stdlib/collections/__init__.pyi:246:9: error[invalid-method-override] Invalid override of method `extend`: Definition is incompatible with `MutableSequence.extend`
- mypy/typeshed/stdlib/collections/__init__.pyi:248:9: error[invalid-method-override] Invalid override of method `insert`: Definition is incompatible with `MutableSequence.insert`
- mypy/typeshed/stdlib/collections/__init__.pyi:249:9: error[invalid-method-override] Invalid override of method `index`: Definition is incompatible with `Sequence.index`
- mypy/typeshed/stdlib/collections/__init__.pyi:252:9: error[invalid-method-override] Invalid override of method `remove`: Definition is incompatible with `MutableSequence.remove`
- mypy/typeshed/stdlib/collections/__init__.pyi:261:9: error[invalid-method-override] Invalid override of method `__contains__`: Definition is incompatible with `Sequence.__contains__`
- mypy/typeshed/stdlib/collections/__init__.pyi:263:9: error[invalid-method-override] Invalid override of method `__iadd__`: Definition is incompatible with `MutableSequence.__iadd__`
+ mypy/typeshed/stdlib/multiprocessing/managers.pyi:153:68: warning[unused-type-ignore-comment] Unused blanket `type: ignore` directive
+ mypy/typeshed/stdlib/multiprocessing/managers.pyi:157:69: warning[unused-type-ignore-comment] Unused blanket `type: ignore` directive
- mypy/typeshed/stdlib/multiprocessing/managers.pyi:130:13: error[invalid-method-override] Invalid override of method `add`: Definition is incompatible with `MutableSet.add`
- mypy/typeshed/stdlib/multiprocessing/managers.pyi:135:13: error[invalid-method-override] Invalid override of method `discard`: Definition is incompatible with `MutableSet.discard`
- mypy/typeshed/stdlib/multiprocessing/managers.pyi:138:13: error[invalid-method-override] Invalid override of method `isdisjoint`: Definition is incompatible with `AbstractSet.isdisjoint`
- mypy/typeshed/stdlib/multiprocessing/managers.pyi:142:13: error[invalid-method-override] Invalid override of method `remove`: Definition is incompatible with `MutableSet.remove`
- mypy/typeshed/stdlib/multiprocessing/managers.pyi:148:13: error[invalid-method-override] Invalid override of method `__contains__`: Definition is incompatible with `AbstractSet.__contains__`
- mypy/typeshed/stdlib/multiprocessing/managers.pyi:150:13: error[invalid-method-override] Invalid override of method `__and__`: Definition is incompatible with `AbstractSet.__and__`
- mypy/typeshed/stdlib/multiprocessing/managers.pyi:151:13: error[invalid-method-override] Invalid override of method `__iand__`: Definition is incompatible with `MutableSet.__iand__`
- mypy/typeshed/stdlib/multiprocessing/managers.pyi:152:13: error[invalid-method-override] Invalid override of method `__or__`: Definition is incompatible with `AbstractSet.__or__`
- mypy/typeshed/stdlib/multiprocessing/managers.pyi:154:13: error[invalid-method-override] Invalid override of method `__sub__`: Definition is incompatible with `AbstractSet.__sub__`
- mypy/typeshed/stdlib/multiprocessing/managers.pyi:155:13: error[invalid-method-override] Invalid override of method `__isub__`: Definition is incompatible with `MutableSet.__isub__`
- mypy/typeshed/stdlib/multiprocessing/managers.pyi:156:13: error[invalid-method-override] Invalid override of method `__xor__`: Definition is incompatible with `AbstractSet.__xor__`
- mypy/typeshed/stdlib/multiprocessing/managers.pyi:158:13: error[invalid-method-override] Invalid override of method `__le__`: Definition is incompatible with `AbstractSet.__le__`
- mypy/typeshed/stdlib/multiprocessing/managers.pyi:159:13: error[invalid-method-override] Invalid override of method `__lt__`: Definition is incompatible with `AbstractSet.__lt__`
- mypy/typeshed/stdlib/multiprocessing/managers.pyi:160:13: error[invalid-method-override] Invalid override of method `__ge__`: Definition is incompatible with `AbstractSet.__ge__`
- mypy/typeshed/stdlib/multiprocessing/managers.pyi:161:13: error[invalid-method-override] Invalid override of method `__gt__`: Definition is incompatible with `AbstractSet.__gt__`
- mypy/typeshed/stdlib/multiprocessing/managers.pyi:162:13: error[invalid-method-override] Invalid override of method `__eq__`: Definition is incompatible with `AbstractSet.__eq__`
+ mypy/typeshed/stdlib/multiprocessing/managers.pyi:205:62: warning[unused-type-ignore-comment] Unused blanket `type: ignore` directive
- mypy/typeshed/stdlib/multiprocessing/managers.pyi:175:9: error[invalid-method-override] Invalid override of method `__delitem__`: Definition is incompatible with `MutableSequence.__delitem__`
- mypy/typeshed/stdlib/multiprocessing/managers.pyi:179:9: error[invalid-method-override] Invalid override of method `__getitem__`: Definition is incompatible with `MutableSequence.__getitem__`
- mypy/typeshed/stdlib/multiprocessing/managers.pyi:183:9: error[invalid-method-override] Invalid override of method `__setitem__`: Definition is incompatible with `MutableSequence.__setitem__`
- mypy/typeshed/stdlib/multiprocessing/managers.pyi:188:9: error[invalid-method-override] Invalid override of method `append`: Definition is incompatible with `MutableSequence.append`
- mypy/typeshed/stdlib/multiprocessing/managers.pyi:189:9: error[invalid-method-override] Invalid override of method `extend`: Definition is incompatible with `MutableSequence.extend`
- mypy/typeshed/stdlib/multiprocessing/managers.pyi:190:9: error[invalid-method-override] Invalid override of method `pop`: Definition is incompatible with `MutableSequence.pop`
- mypy/typeshed/stdlib/multiprocessing/managers.pyi:191:9: error[invalid-method-override] Invalid override of method `index`: Definition is incompatible with `Sequence.index`
- mypy/typeshed/stdlib/multiprocessing/managers.pyi:192:9: error[invalid-method-override] Invalid override of method `count`: Definition is incompatible with `Sequence.count`
- mypy/typeshed/stdlib/multiprocessing/managers.pyi:193:9: error[invalid-method-override] Invalid override of method `insert`: Definition is incompatible with `MutableSequence.insert`
- mypy/typeshed/stdlib/multiprocessing/managers.pyi:194:9: error[invalid-method-override] Invalid override of method `remove`: Definition is incompatible with `MutableSequence.remove`
- mypy/typeshed/stdlib/sqlite3/__init__.pyi:449:9: error[invalid-method-override] Invalid override of method `__getitem__`: Definition is incompatible with `Sequence.__getitem__`
- Found 1814 diagnostics
+ Found 1735 diagnostics

discord.py (https://github.com/Rapptz/discord.py)
- discord/utils.py:258:9: error[invalid-method-override] Invalid override of method `__getitem__`: Definition is incompatible with `Sequence.__getitem__`
- discord/utils.py:264:9: error[invalid-method-override] Invalid override of method `__contains__`: Definition is incompatible with `Sequence.__contains__`
- Found 538 diagnostics
+ Found 536 diagnostics

freqtrade (https://github.com/freqtrade/freqtrade)
- freqtrade/util/rich_tables.py:32:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int) -> str | Unknown, (index: slice[int | None, int | None, int | None]) -> Sequence[str | Unknown]]` cannot be called with key of type `str` on object of type `Sequence[str | Unknown]`
+ freqtrade/util/rich_tables.py:32:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int, /) -> str | Unknown, (index: slice[int | None, int | None, int | None], /) -> Sequence[str | Unknown]]` cannot be called with key of type `str` on object of type `Sequence[str | Unknown]`
- freqtrade/util/rich_tables.py:32:47: error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int) -> str | Unknown, (index: slice[int | None, int | None, int | None]) -> Sequence[str | Unknown]]` cannot be called with key of type `str` on object of type `Sequence[str | Unknown]`
+ freqtrade/util/rich_tables.py:32:47: error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int, /) -> str | Unknown, (index: slice[int | None, int | None, int | None], /) -> Sequence[str | Unknown]]` cannot be called with key of type `str` on object of type `Sequence[str | Unknown]`
- freqtrade/util/rich_tables.py:32:75: error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int) -> str | Unknown, (index: slice[int | None, int | None, int | None]) -> Sequence[str | Unknown]]` cannot be called with key of type `str` on object of type `Sequence[str | Unknown]`
+ freqtrade/util/rich_tables.py:32:75: error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int, /) -> str | Unknown, (index: slice[int | None, int | None, int | None], /) -> Sequence[str | Unknown]]` cannot be called with key of type `str` on object of type `Sequence[str | Unknown]`

xarray-dataclasses (https://github.com/astropenguin/xarray-dataclasses)
- xarray_dataclasses/dataarray.py:187:27: error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int) -> int, (index: slice[int | None, int | None, int | None]) -> Sequence[int]]` cannot be called with key of type `str` on object of type `Sequence[int]`
+ xarray_dataclasses/dataarray.py:187:27: error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int, /) -> int, (index: slice[int | None, int | None, int | None], /) -> Sequence[int]]` cannot be called with key of type `str` on object of type `Sequence[int]`

mongo-python-driver (https://github.com/mongodb/mongo-python-driver)
- pymongo/helpers_shared.py:191:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int) -> str | tuple[str, int | str | Mapping[str, Any]], (index: slice[int | None, int | None, int | None]) -> Sequence[str | tuple[str, int | str | Mapping[str, Any]]]]` cannot be called with key of type `str` on object of type `Sequence[str | tuple[str, int | str | Mapping[str, Any]]]`
+ pymongo/helpers_shared.py:191:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int, /) -> str | tuple[str, int | str | Mapping[str, Any]], (index: slice[int | None, int | None, int | None], /) -> Sequence[str | tuple[str, int | str | Mapping[str, Any]]]]` cannot be called with key of type `str` on object of type `Sequence[str | tuple[str, int | str | Mapping[str, Any]]]`
- pymongo/helpers_shared.py:191:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int) -> str | tuple[str, int | str | Mapping[str, Any]], (index: slice[int | None, int | None, int | None]) -> Sequence[str | tuple[str, int | str | Mapping[str, Any]]]]` cannot be called with key of type `tuple[str, int | s

... (truncated 244 lines) ...

@astral-sh-bot
Copy link

astral-sh-bot bot commented Mar 1, 2026

ecosystem-analyzer results

Lint rule Added Removed Changed
invalid-method-override 0 154 0
invalid-argument-type 0 0 74
invalid-await 40 0 0
unused-type-ignore-comment 10 0 0
invalid-return-type 1 0 0
positional-only-parameter-as-kwarg 1 0 0
Total 52 154 74

Full report with detailed diff (timing results)

@AlexWaygood AlexWaygood merged commit fb70de6 into main Mar 1, 2026
51 checks passed
@AlexWaygood AlexWaygood deleted the typeshedbot/sync-typeshed branch March 1, 2026 01:26
carljm added a commit that referenced this pull request Mar 2, 2026
* main:
  [ty] Move binary expression logic out of `builder.rs` (#23649)
  [ty] Limit recursion depth when displaying self-referential function types (#23647)
  [ty] Move comparison logic out of `builder.rs` (#23646)
  Avoid inserting redundant `None` elements in UP045 (#23459)
  [ty] Add more ParamSpec validation for `P.args` and `P.kwargs` (#23640)
  [ty] Sync vendored typeshed stubs (#23642)
  [ty] Fix inference of `t.__mro__` if `t` is an instance of `type[Any]` (#23632)
  [ty] Detect inconsistent generic base class specializations (#23615)
  [ty] Validate type variable defaults don't reference later type parameters or type parameters out of scope (#23623)
  [ty] Ban nested `Required`/`NotRequired`, and ban them both outside of `TypedDict` fields (#23627)
  [ty] Reject generic metaclasses parameterized by type variables (#23628)
  Update default Python version examples (#23605)
  fix binops with NewType of float and Unknown (#23620)
  [ty] Reject functions with PEP-695 type parameters that shadow type parameters from enclosing scopes (#23619)
  [ty] Reject ellipsis literals in odd places in type/annotation expressions (#23611)
  [ty] hash-cons `UseDefMap` fields (#23283)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ecosystem-analyzer ty Multi-file analysis & type inference

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant