Skip to content

[ty] solve unions against generic protocols#24837

Merged
carljm merged 1 commit intomainfrom
cjm/union-solve
Apr 25, 2026
Merged

[ty] solve unions against generic protocols#24837
carljm merged 1 commit intomainfrom
cjm/union-solve

Conversation

@carljm
Copy link
Copy Markdown
Contributor

@carljm carljm commented Apr 25, 2026

Summary

Fixes astral-sh/ty#3333

Another narrow addition to the old solver to make it use constraint sets in another case.

Test Plan

Added mdtests.

Ecosystem

Everything here is expected and desirable increase in type precision from this change. In some cases (e.g. pandas-stubs) it reveals other pre-existing generics solver issues, but not a problem in this PR.

@astral-sh-bot astral-sh-bot Bot requested a review from charliermarsh April 25, 2026 16:30
@astral-sh-bot astral-sh-bot Bot added the ty Multi-file analysis & type inference label Apr 25, 2026
@astral-sh-bot
Copy link
Copy Markdown

astral-sh-bot Bot commented Apr 25, 2026

Typing conformance results

No changes detected ✅

Current numbers
The percentage of diagnostics emitted that were expected errors held steady at 87.94%. The percentage of expected errors that received a diagnostic held steady at 83.36%. The number of fully passing files held steady at 79/133.

@astral-sh-bot
Copy link
Copy Markdown

astral-sh-bot Bot commented Apr 25, 2026

Memory usage report

Summary

Project Old New Diff Outcome
prefect 710.01MB 710.16MB +0.02% (159.75kB)
trio 116.93MB 116.97MB +0.04% (42.11kB)
sphinx 260.04MB 260.05MB +0.00% (7.61kB)
flake8 47.91MB 47.91MB +0.00% (120.00B)

Significant changes

Click to expand detailed breakdown

prefect

Name Old New Diff Outcome
infer_expression_types_impl 63.62MB 63.65MB +0.05% (30.97kB)
infer_definition_types 91.21MB 91.23MB +0.02% (21.76kB)
infer_expression_type_impl 13.57MB 13.59MB +0.15% (20.26kB)
StaticClassLiteral<'db>::implicit_attribute_inner_ 10.08MB 10.09MB +0.13% (13.02kB)
CallableType 2.15MB 2.16MB +0.27% (5.91kB)
FunctionType<'db>::signature_ 4.11MB 4.12MB +0.13% (5.54kB)
FunctionType 8.96MB 8.97MB +0.06% (5.53kB)
Type<'db>::apply_specialization_ 3.70MB 3.71MB +0.14% (5.31kB)
StaticClassLiteral<'db>::try_mro_ 4.25MB 4.26MB +0.11% (4.59kB)
GenericAlias<'db>::variance_of_ 579.80kB 584.20kB +0.76% (4.41kB)
Type<'db>::member_lookup_with_policy_ 17.29MB 17.30MB +0.02% (4.08kB)
Specialization 2.12MB 2.12MB +0.16% (3.53kB)
Type<'db>::apply_specialization_::interned_arguments 2.97MB 2.97MB +0.12% (3.52kB)
all_negative_narrowing_constraints_for_expression 2.69MB 2.69MB +0.11% (2.89kB)
cached_protocol_interface 410.30kB 413.04kB +0.67% (2.74kB)
... 46 more

trio

Name Old New Diff Outcome
Type<'db>::apply_specialization_ 704.68kB 709.38kB +0.67% (4.71kB)
FunctionType 1.48MB 1.49MB +0.28% (4.23kB)
CallableType 576.09kB 579.96kB +0.67% (3.87kB)
StaticClassLiteral<'db>::try_mro_ 790.26kB 793.35kB +0.39% (3.09kB)
FunctionType<'db>::signature_ 1.06MB 1.06MB +0.28% (3.03kB)
Type<'db>::apply_specialization_::interned_arguments 624.53kB 627.19kB +0.43% (2.66kB)
Type<'db>::class_member_with_policy_ 2.03MB 2.04MB +0.12% (2.54kB)
Type<'db>::member_lookup_with_policy_ 1.94MB 1.94MB +0.10% (1.94kB)
infer_definition_types 7.57MB 7.57MB +0.02% (1.71kB)
Specialization 455.88kB 457.53kB +0.36% (1.66kB)
cached_protocol_interface 121.90kB 123.53kB +1.34% (1.63kB)
Type<'db>::class_member_with_policy_::interned_arguments 1.12MB 1.12MB +0.14% (1.62kB)
Type<'db>::try_call_dunder_get_ 1.34MB 1.34MB +0.10% (1.42kB)
infer_expression_types_impl 7.00MB 7.00MB +0.02% (1.23kB)
BoundMethodType<'db>::into_callable_type_ 73.05kB 74.23kB +1.60% (1.17kB)
... 29 more

sphinx

Name Old New Diff Outcome
infer_expression_types_impl 20.81MB 20.82MB +0.03% (6.71kB)
infer_definition_types 23.65MB 23.65MB +0.02% (3.95kB)
Type<'db>::member_lookup_with_policy_ 6.84MB 6.84MB -0.03% (2.20kB)
Type<'db>::apply_specialization_ 1.63MB 1.63MB -0.12% (1.99kB)
Type<'db>::apply_specialization_::interned_arguments 1.44MB 1.44MB -0.10% (1.48kB)
check_file_impl 4.69MB 4.69MB +0.03% (1.24kB)
Type<'db>::try_call_dunder_get_ 4.86MB 4.86MB -0.02% (1.06kB)
Type<'db>::class_member_with_policy_ 7.62MB 7.62MB -0.01% (1.03kB)
IntersectionType 465.07kB 464.30kB -0.16% (784.00B)
UnionType<'db>::from_two_elements_ 279.82kB 280.48kB +0.24% (680.00B)
Type<'db>::class_member_with_policy_::interned_arguments 4.03MB 4.02MB -0.01% (624.00B)
UnionType<'db>::from_two_elements_::interned_arguments 135.61kB 136.21kB +0.44% (616.00B)
infer_scope_types_impl 15.46MB 15.47MB +0.00% (568.00B)
is_redundant_with_impl::interned_arguments 1.08MB 1.08MB -0.05% (528.00B)
StaticClassLiteral<'db>::variance_of_ 22.96kB 23.42kB +1.99% (468.00B)
... 31 more

flake8

Name Old New Diff Outcome
infer_definition_types 1.86MB 1.86MB +0.00% (48.00B)
all_negative_narrowing_constraints_for_expression 40.59kB 40.62kB +0.06% (24.00B)
loop_header_reachability 12.84kB 12.87kB +0.18% (24.00B)
all_narrowing_constraints_for_expression 86.86kB 86.88kB +0.03% (24.00B)

@astral-sh-bot
Copy link
Copy Markdown

astral-sh-bot Bot commented Apr 25, 2026

ecosystem-analyzer results

Lint rule Added Removed Changed
invalid-argument-type 64 24 40
type-assertion-failure 22 24 27
unresolved-attribute 35 3 2
unsupported-operator 23 1 9
invalid-assignment 17 0 14
no-matching-overload 10 4 0
invalid-return-type 7 0 5
unused-type-ignore-comment 0 7 0
invalid-yield 3 0 0
not-iterable 3 0 0
index-out-of-bounds 2 0 0
missing-argument 0 2 0
possibly-unresolved-reference 0 2 0
call-non-callable 1 0 0
not-subscriptable 1 0 0
Total 188 67 97

Flaky changes detected. This PR summary excludes flaky changes; see the HTML report for details.

Showing a random sample of 253 of 352 changes. See the HTML report for the full diff.

Raw diff sample (253 of 352 changes)
PyGithub (https://github.com/PyGithub/PyGithub)
- tests/Connection.py:76:32 error[invalid-argument-type] Argument to constructor `chain.__new__` is incorrect: Expected `Iterable[str]`, found `tuple[<class 'ReplayingHttpConnection'>, str] | tuple[<class 'ReplayingHttpsConnection'>, str]`

Tanjun (https://github.com/FasterSpeeding/Tanjun)
+ tanjun/commands/slash.py:1785:30 error[not-iterable] Object of type `Sequence[((int, /, *args: Any, **kwargs: Any) -> Coroutine[Any, Any, Any] | Any) | ((str, /, *args: Any, **kwargs: Any) -> Coroutine[Any, Any, Any] | Any)] | ((int, /, *args: Any, **kwargs: Any) -> Coroutine[Any, Any, Any] | Any) | ((str, /, *args: Any, **kwargs: Any) -> Coroutine[Any, Any, Any] | Any)` may not be iterable
+ tanjun/commands/slash.py:1843:17 error[invalid-argument-type] Argument to `_TrackedOption.__init__` is incorrect: Expected `list[((int, /, *args: Any, **kwargs: Any) -> Coroutine[Any, Any, Any] | Any) | ((str, /, *args: Any, **kwargs: Any) -> Coroutine[Any, Any, Any] | Any)] | None`, found `Sequence[((int, /, *args: Any, **kwargs: Any) -> Coroutine[Any, Any, Any] | Any) | ((str, /, *args: Any, **kwargs: Any) -> Coroutine[Any, Any, Any] | Any)] | ((int, /, *args: Any, **kwargs: Any) -> Coroutine[Any, Any, Any] | Any) | ((str, /, *args: Any, **kwargs: Any) -> Coroutine[Any, Any, Any] | Any)`

anyio (https://github.com/agronholm/anyio)
+ src/anyio/functools.py:395:43 error[invalid-argument-type] Argument is incorrect: Expected `T@reduce`, found `T@reduce | S@reduce`

bokeh (https://github.com/bokeh/bokeh)
+ src/bokeh/layouts.py:309:34 error[invalid-argument-type] Argument to constructor `enumerate.__new__` is incorrect: Expected `Iterable[Unknown]`, found `Unknown | UIElement | None | list[UIElement | None]`
+ src/bokeh/layouts.py:315:41 error[unresolved-attribute] Object of type `Model` has no attribute `toolbar`
+ src/bokeh/layouts.py:316:25 error[unresolved-attribute] Unresolved attribute `toolbar_location` on type `Model`
+ src/bokeh/plotting/_renderer.py:212:42 error[unsupported-operator] Operator `+` is not supported between objects of type `str` and `None | str`
+ src/bokeh/plotting/_renderer.py:213:34 error[unsupported-operator] Operator `+` is not supported between objects of type `str` and `None | str`
+ src/bokeh/plotting/_renderer.py:228:24 error[invalid-argument-type] Argument to bound method `set.add` is incorrect: Expected `str`, found `None | str`

cloud-init (https://github.com/canonical/cloud-init)
+ cloudinit/sources/DataSourceOracle.py:372:28 error[unresolved-attribute] Object of type `str` has no attribute `get`
+ cloudinit/sources/DataSourceOracle.py:374:23 error[unresolved-attribute] Object of type `str` has no attribute `get`
+ cloudinit/sources/DataSourceOracle.py:384:21 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> LiteralString, (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str]` cannot be called with key of type `Literal["ipv6Addresses"]` on object of type `str`
+ cloudinit/sources/DataSourceOracle.py:387:48 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> LiteralString, (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str]` cannot be called with key of type `Literal["subnetCidrBlock"]` on object of type `str`
+ cloudinit/sources/DataSourceOracle.py:396:20 error[unresolved-attribute] Object of type `str` has no attribute `get`
+ cloudinit/sources/DataSourceOracle.py:406:20 error[unresolved-attribute] Object of type `str` has no attribute `get`
+ tests/unittests/test_ds_identify.py:1007:16 error[unresolved-attribute] Attribute `get` is not defined on `str` in union `str | dict[str, str | int] | dict[str, str | int | Unknown]`
+ tests/unittests/test_ds_identify.py:1485:16 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> LiteralString, (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str]` cannot be called with key of type `Literal["name"]` on object of type `str`
+ tests/unittests/test_ds_identify.py:1012:40 error[unresolved-attribute] Attribute `replace` is not defined on `int` in union `Unknown | str | int`
+ tests/unittests/test_ds_identify.py:1012:40 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> LiteralString, (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str]` cannot be called with key of type `Literal["out"]` on object of type `str`
- tests/unittests/test_net.py:5345:9 error[invalid-assignment] Invalid subscript assignment with key of type `Literal["devices"]` and value of type `set[Unknown]` on object of type `dict[str, list[str] | dict[str, str | None] | dict[Unknown, Unknown]]`
+ tests/unittests/test_net.py:5345:9 error[invalid-assignment] Invalid subscript assignment with key of type `Literal["devices"]` and value of type `set[str | Unknown]` on object of type `dict[str, list[str] | dict[str, str | None] | dict[Unknown, Unknown]]`

core (https://github.com/home-assistant/core)
- homeassistant/components/assist_satellite/__init__.py:124:69 error[invalid-argument-type] Argument to bound method `AssistSatelliteEntity.async_internal_ask_question` is incorrect: Expected `str`, found `Unknown | None`
+ homeassistant/components/assist_satellite/__init__.py:124:69 error[invalid-argument-type] Argument to bound method `AssistSatelliteEntity.async_internal_ask_question` is incorrect: Expected `str`, found `Any | None`
- homeassistant/components/icloud/config_flow.py:218:36 error[invalid-argument-type] Argument to constructor `enumerate.__new__` is incorrect: Expected `Iterable[Unknown]`, found `Any | None | bool | list[Any] | dict[Any, Any]`
+ homeassistant/components/icloud/config_flow.py:218:36 error[invalid-argument-type] Argument to constructor `enumerate.__new__` is incorrect: Expected `Iterable[Any]`, found `Any | None | bool | list[Any] | dict[Any, Any]`
- homeassistant/components/philips_js/light.py:304:13 error[invalid-assignment] Invalid subscript assignment with key of type `Literal["colorSettings"]` and value of type `dict[str, str | None | dict[str, Unknown | int] | dict[str, int]]` on object of type `dict[str, str | bool]`
+ homeassistant/components/philips_js/light.py:304:13 error[invalid-assignment] Invalid subscript assignment with key of type `Literal["colorSettings"]` and value of type `dict[str, str | None | dict[str, int]]` on object of type `dict[str, str | bool]`
- homeassistant/components/template/light.py:310:20 error[invalid-return-type] Return type does not match returned value: expected `list[int] | None`, found `list[_T@list]`
+ homeassistant/components/template/light.py:310:20 error[invalid-return-type] Return type does not match returned value: expected `list[int] | None`, found `list[int | float]`
- homeassistant/components/template/light.py:310:25 error[invalid-argument-type] Argument to `list.__init__` is incorrect: Expected `Iterable[int]`, found `(Any & Top[list[Unknown]]) | (Any & tuple[object, ...]) | list[int | float]`

cwltool (https://github.com/common-workflow-language/cwltool)
+ cwltool/command_line_tool.py:1251:46 error[invalid-argument-type] Argument to function `shortname` is incorrect: Expected `str`, found `Unknown | int | str | ... omitted 6 union elements`
+ cwltool/process.py:448:46 error[invalid-argument-type] Argument to function `avroize_type` is incorrect: Expected `MutableMapping[str, int | str | float | ... omitted 5 union elements] | MutableSequence[Any] | int | ... omitted 7 union elements`, found `object`

dd-trace-py (https://github.com/DataDog/dd-trace-py)
- ddtrace/_trace/processor/__init__.py:387:13 error[invalid-argument-type] Argument to constructor `chain.__new__` is incorrect: Expected `Iterable[TraceSamplingProcessor | TraceTagsProcessor | ServiceNameProcessor]`, found `list[TraceProcessor] | list[Unknown]`
- ddtrace/_trace/processor/__init__.py:391:25 error[unresolved-attribute] Object of type `_T@chain` has no attribute `process_trace`
- ddtrace/appsec/_iast/taint_sinks/code_injection.py:113:29 error[invalid-argument-type] Argument to `set.__init__` is incorrect: Expected `Iterable[Unknown]`, found `None | Unknown | dict[str, Any]`
+ ddtrace/appsec/_iast/taint_sinks/code_injection.py:113:29 error[invalid-argument-type] Argument to `set.__init__` is incorrect: Expected `Iterable[str]`, found `None | Unknown | dict[str, Any]`
- ddtrace/contrib/internal/ray/span_manager.py:104:17 error[invalid-argument-type] Argument to constructor `chain.__new__` is incorrect: Expected `Iterable[TraceSamplingProcessor | TraceTagsProcessor | ServiceNameProcessor]`, found `list[TraceProcessor] | list[Unknown]`
- ddtrace/contrib/internal/ray/span_manager.py:108:25 error[unresolved-attribute] Object of type `_T@chain` has no attribute `process_trace`
- ddtrace/contrib/internal/subprocess/patch.py:327:40 error[invalid-argument-type] Argument to `deque.__init__` is incorrect: Expected `Iterable[Unknown]`, found `list[Unknown] | None | list[str] | Unknown`
+ ddtrace/contrib/internal/subprocess/patch.py:327:40 error[invalid-argument-type] Argument to `deque.__init__` is incorrect: Expected `Iterable[Unknown | str]`, found `list[Unknown] | None | list[str] | Unknown`

dedupe (https://github.com/dedupeio/dedupe)
+ dedupe/api.py:551:34 error[invalid-assignment] Object of type `list[tuple[tuple[int, int], int | float] | tuple[tuple[str, str], int | float] | ndarray[Unknown, dtype[Any]]]` is not assignable to `Iterable[ndarray[Unknown, dtype[Any]]] | Iterable[tuple[tuple[int, int], int | float]] | Iterable[tuple[tuple[str, str], int | float]]`

discord.py (https://github.com/Rapptz/discord.py)
+ discord/utils.py:1106:16 error[invalid-return-type] Return type does not match returned value: expected `Iterable[list[T@as_chunks]] | AsyncIterable[list[T@as_chunks]]`, found `AsyncIterator[list[object]]`

dulwich (https://github.com/dulwich/dulwich)
- dulwich/client.py:5202:17 error[invalid-assignment] Invalid subscript assignment with key of type `Literal["timeout"]` and value of type `int | float` on object of type `dict[str, dict[Unknown, Unknown] | bool]`
+ dulwich/client.py:5202:17 error[invalid-assignment] Invalid subscript assignment with key of type `Literal["timeout"]` and value of type `int | float` on object of type `dict[str, dict[str | Unknown, str | Unknown] | bool]`
- dulwich/client.py:5205:62 error[invalid-argument-type] Argument to bound method `RequestMethods.request` is incorrect: Expected `bytes | IO[Any] | Iterable[bytes] | str | None`, found `dict[Unknown, Unknown] | bool`
+ dulwich/client.py:5205:62 error[invalid-argument-type] Argument to bound method `RequestMethods.request` is incorrect: Expected `bytes | IO[Any] | Iterable[bytes] | str | None`, found `dict[str | Unknown, str | Unknown] | bool`
- dulwich/client.py:5208:63 error[invalid-argument-type] Argument to bound method `RequestMethods.request` is incorrect: Expected `bytes | IO[Any] | Iterable[bytes] | str | None`, found `dict[Unknown, Unknown] | bool`
+ dulwich/client.py:5208:63 error[invalid-argument-type] Argument to bound method `RequestMethods.request` is incorrect: Expected `bytes | IO[Any] | Iterable[bytes] | str | None`, found `dict[str | Unknown, str | Unknown] | bool`
- dulwich/pack.py:3290:33 warning[unused-type-ignore-comment] Unused blanket `type: ignore` directive
+ dulwich/walk.py:184:24 error[invalid-argument-type] Argument to bound method `_CommitTimeQueue._push` is incorrect: Expected `ObjectID`, found `ObjectID | int | Unknown`

graphql-core (https://github.com/graphql-python/graphql-core)
+ src/graphql/language/visitor.py:229:43 error[invalid-argument-type] Argument expression after ** must be a mapping with `str` key type: Found `Any | str | int`
+ src/graphql/language/visitor.py:229:43 error[invalid-argument-type] Argument expression after ** must be a mapping with `str` key type: Found `Any | str | int`
+ src/graphql/language/visitor.py:229:43 error[invalid-argument-type] Argument expression after ** must be a mapping with `str` key type: Found `Any | str | int`

hydpy (https://github.com/hydpy-dev/hydpy)
+ hydpy/auxs/interptools.py:166:36 error[invalid-argument-type] Argument to constructor `enumerate.__new__` is incorrect: Expected `Iterable[Unknown]`, found `int | (Sequence[int | float] & ~float) | (ndarray[tuple[int], dtype[float64]] & ~float)`
+ hydpy/core/objecttools.py:2034:25 error[invalid-argument-type] Argument to function `is_equal` is incorrect: Expected `int | float | ndarray[tuple[Any, ...], dtype[float64]] | Mapping[str, Divergent] | Sequence[Divergent]`, found `object`

ibis (https://github.com/ibis-project/ibis)
+ ibis/common/egraph.py:396:32 error[invalid-argument-type] Argument to `Variable.__init__` is incorrect: Expected `str`, found `int`
- ibis/util.py:261:45 error[invalid-argument-type] Argument to function `reduce` is incorrect: Expected `Iterable[SupportsRMul[Literal[1], Literal[1]]]`, found `tuple[Literal[7, 24, 60, 1000], ...] | tuple[Literal[4, 3], ...]`
- ibis/util.py:133:22 error[invalid-argument-type] Argument to class `tuple` is incorrect: Expected `Iterable[Unknown]`, found `(V@promote_tuple & ~tuple[object, ...]) | (Iterable[V@promote_tuple] & ~tuple[object, ...])`
+ ibis/util.py:133:22 error[invalid-argument-type] Argument to class `tuple` is incorrect: Expected `Iterable[V@promote_tuple]`, found `(V@promote_tuple & ~tuple[object, ...]) | (Iterable[V@promote_tuple] & ~tuple[object, ...])`

ignite (https://github.com/pytorch/ignite)
+ tests/ignite/contrib/engines/test_tbptt.py:38:16 error[unresolved-attribute] Attribute `grad_fn` is not defined on `str`, `int` in union `Unknown | str | int`
+ tests/ignite/metrics/vision/test_object_detection_map.py:1005:41 error[invalid-argument-type] Method `__getitem__` of type `bound method dict[str, Unknown].__getitem__(key: str, /) -> Unknown` cannot be called with key of type `tuple[slice[None, None, None], slice[None, Literal[4], None]]` on object of type `dict[str, Unknown]`
+ tests/ignite/metrics/vision/test_object_detection_map.py:1006:49 error[invalid-argument-type] Method `__getitem__` of type `bound method dict[str, Unknown].__getitem__(key: str, /) -> Unknown` cannot be called with key of type `tuple[slice[None, None, None], Literal[4]]` on object of type `dict[str, Unknown]`
+ tests/ignite/metrics/vision/test_object_detection_map.py:1017:44 error[invalid-argument-type] Method `__getitem__` of type `bound method dict[str, Unknown].__getitem__(key: str, /) -> Unknown` cannot be called with key of type `tuple[slice[None, None, None], Literal[4]]` on object of type `dict[str, Unknown]`
+ tests/ignite/metrics/vision/test_object_detection_map.py:1018:46 error[invalid-argument-type] Method `__getitem__` of type `bound method dict[str, Unknown].__getitem__(key: str, /) -> Unknown` cannot be called with key of type `tuple[slice[None, None, None], Literal[5]]` on object of type `dict[str, Unknown]`

jax (https://github.com/google/jax)
+ jax/_src/export/serialization.py:378:60 error[invalid-argument-type] Argument to function `named_to_hlo_sharding` is incorrect: Expected `NamedSharding | None`, found `Unknown | HloSharding | NamedSharding | None`
+ jax/_src/export/serialization.py:380:61 error[invalid-argument-type] Argument to function `named_to_hlo_sharding` is incorrect: Expected `NamedSharding | None`, found `Unknown | HloSharding | NamedSharding | None`
- jax/_src/internal_test_util/test_harnesses.py:2218:47 error[invalid-argument-type] Argument to constructor `map.__new__` is incorrect: Expected `Iterable[SupportsSub[SupportsRSub[Never, Unknown], Unknown]]`, found `Unknown | tuple[Literal[2]]`
- jax/_src/interpreters/partial_eval.py:2443:13 error[invalid-argument-type] Argument to function `foreach` is incorrect: Expected `(Var, None | DynamicJaxprTracer, /) -> Any`, found `Overload[[_T](key: Var, default: None = None, /) -> _T | None, (key: Var, default: DynamicJaxprTracer, /) -> DynamicJaxprTracer]`
+ jax/_src/interpreters/partial_eval.py:2443:13 error[invalid-argument-type] Argument to function `foreach` is incorrect: Expected `(Var, None | DynamicJaxprTracer | Unknown, /) -> Any`, found `Overload[[_T](key: Var, default: None = None, /) -> _T | None, (key: Var, default: DynamicJaxprTracer, /) -> DynamicJaxprTracer]`
+ jax/_src/numpy/lax_numpy.py:2213:31 error[unsupported-operator] Operator `-` is not supported between objects of type `int | Any | Sequence[int | Any]` and `Literal[1]`
+ jax/_src/numpy/lax_numpy.py:3680:34 error[invalid-argument-type] Argument to function `where` is incorrect: Expected `Array | ndarray[tuple[Any, ...], dtype[Any]] | numpy.bool[builtins.bool] | ... omitted 4 union elements`, found `object`

kopf (https://github.com/nolar/kopf)
- kopf/_cogs/clients/api.py:72:16 error[invalid-assignment] Object of type `_T@chain` is not assignable to `int | float | None`
+ kopf/_cogs/clients/api.py:72:16 error[invalid-assignment] Object of type `object` is not assignable to `int | float | None`
- kopf/_cogs/clients/api.py:72:53 error[invalid-argument-type] Argument to constructor `chain.__new__` is incorrect: Expected `Iterable[None]`, found `(int & Iterable[object]) | (float & Iterable[object]) | Iterable[int | float]`

meson (https://github.com/mesonbuild/meson)
+ mesonbuild/backend/ninjabackend.py:1257:27 error[unresolved-attribute] Attribute `get_outputs` is not defined on `str`, `File`, `ExtractedObjects`, `StructuredSources` in union `str | File | CustomTarget | ... omitted 6 union elements`
- mesonbuild/build.py:3032:9 error[invalid-assignment] Object of type `list[_T@list]` is not assignable to attribute `depend_files` of type `list[File]`
+ mesonbuild/build.py:3032:9 error[invalid-assignment] Object of type `list[File | str | Unknown]` is not assignable to attribute `depend_files` of type `list[File]`

mitmproxy (https://github.com/mitmproxy/mitmproxy)
+ test/mitmproxy/proxy/tutils.py:68:24 error[invalid-argument-type] Argument to function `_eq` is incorrect: Expected `Command | Event`, found `object`
+ test/mitmproxy/proxy/tutils.py:68:27 error[invalid-argument-type] Argument to function `_eq` is incorrect: Expected `Command | Event`, found `object`

mongo-python-driver (https://github.com/mongodb/mongo-python-driver)
+ pymongo/read_preferences.py:77:12 error[invalid-return-type] Return type does not match returned value: expected `Sequence[Mapping[str, Any]] | None`, found `list[object]`
+ pymongo/helpers_shared.py:160:20 error[invalid-return-type] Return type does not match returned value: expected `Sequence[tuple[str, int | str | Mapping[str, Any]]]`, found `list[str | tuple[object, object]]`
+ pymongo/helpers_shared.py:346:16 error[invalid-return-type] Return type does not match returned value: expected `Mapping[str, Any]`, found `dict[object, int]`

nox (https://github.com/wntrblm/nox)
- nox/_parametrize.py:153:37 error[invalid-argument-type] Argument to `list.__init__` is incorrect: Expected `Iterable[Param | Iterable[Any | Param | Iterable[Any]]]`, found `(Iterable[Param | Iterable[Any]] & tuple[object, ...]) | (Param & tuple[object, ...]) | (Iterable[Any] & tuple[object, ...]) | ... omitted 3 union elements`

pandas (https://github.com/pandas-dev/pandas)
+ pandas/core/frame.py:7211:36 error[no-matching-overload] No overload of function `maybe_convert_objects` matches arguments
- pandas/core/frame.py:5373:32 error[invalid-argument-type] Argument to constructor `frozenset.__new__` is incorrect: Expected `Iterable[Unknown]`, found `Unknown | None | tuple[Unknown & ~None] | tuple[()]`
+ pandas/core/frame.py:5373:32 error[invalid-argument-type] Argument to constructor `frozenset.__new__` is incorrect: Expected `Iterable[Unknown & ~None]`, found `Unknown | None | tuple[Unknown & ~None] | tuple[()]`
- pandas/core/frame.py:5373:52 error[invalid-argument-type] Argument to constructor `frozenset.__new__` is incorrect: Expected `Iterable[Unknown]`, found `Unknown | None | tuple[Unknown & ~None] | tuple[()]`
+ pandas/core/frame.py:5373:52 error[invalid-argument-type] Argument to constructor `frozenset.__new__` is incorrect: Expected `Iterable[Unknown & ~None]`, found `Unknown | None | tuple[Unknown & ~None] | tuple[()]`
+ pandas/core/groupby/grouper.py:901:28 error[unresolved-attribute] Attribute `name` is not defined on `None`, `ndarray[tuple[Any, ...], dtype[Any]]` in union `Unknown | None | ndarray[tuple[Any, ...], dtype[Any]]`
- pandas/core/strings/accessor.py:382:30 error[unresolved-attribute] Attribute `dtype` is not defined on `dict[Unknown, ArrowExtensionArray]`, `list[Unknown]` in union `(Unknown & <Protocol with members 'ndim'> & <Protocol with members 'dtype'>) | dict[Unknown, ArrowExtensionArray] | list[Unknown]`
+ pandas/core/strings/accessor.py:382:30 error[unresolved-attribute] Attribute `dtype` is not defined on `dict[int, ArrowExtensionArray]`, `list[Unknown]` in union `(Unknown & <Protocol with members 'ndim'> & <Protocol with members 'dtype'>) | dict[int, ArrowExtensionArray] | list[Unknown]`
- pandas/io/formats/style_render.py:1875:33 warning[possibly-unresolved-reference] Name `last_label` used when possibly not defined
+ pandas/io/parsers/base_parser.py:245:37 error[invalid-argument-type] Argument to bound method `list.insert` is incorrect: Expected `tuple[Any, ...]`, found `int | integer[Any] | Unknown`
+ pandas/io/sql.py:1056:41 error[unresolved-attribute] Object of type `dtype[Any] | ExtensionDtype` has no attribute `pyarrow_dtype`
+ pandas/plotting/_matplotlib/core.py:1614:17 error[invalid-argument-type] Argument to bound method `LinePlot._plot` is incorrect: Expected `ndarray[tuple[Any, ...], dtype[Any]]`, found `Series | ndarray[tuple[Any, ...], dtype[Any]]`
+ pandas/plotting/_matplotlib/core.py:1614:17 error[invalid-argument-type] Argument to bound method `LinePlot._ts_plot` is incorrect: Expected `Series`, found `Series | ndarray[tuple[Any, ...], dtype[Any]]`

pandas-stubs (https://github.com/pandas-dev/pandas-stubs)
- tests/indexes/bool/test_add.py:38:11 error[type-assertion-failure] Type `Index[Unknown]` does not match asserted type `Index[int | float]`
+ tests/indexes/bool/test_add.py:38:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Index[int | float]`
+ tests/indexes/bool/test_add.py:38:23 error[unsupported-operator] Operator `+` is not supported between objects of type `Index[bool]` and `list[int | float]`
- tests/indexes/bool/test_add.py:39:11 error[type-assertion-failure] Type `Index[Unknown]` does not match asserted type `Index[int | float | complex]`
+ tests/indexes/bool/test_add.py:39:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Index[int | float | complex]`
- tests/indexes/bool/test_add.py:43:11 error[type-assertion-failure] Type `Index[Unknown]` does not match asserted type `Index[int | float]`
+ tests/indexes/bool/test_add.py:43:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Index[int | float]`
+ tests/indexes/bool/test_add.py:43:23 error[unsupported-operator] Operator `+` is not supported between objects of type `list[int | float]` and `Index[bool]`
- tests/indexes/bool/test_add.py:44:11 error[type-assertion-failure] Type `Index[Unknown]` does not match asserted type `Index[int | float | complex]`
+ tests/indexes/bool/test_add.py:44:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Index[int | float | complex]`
+ tests/indexes/bool/test_add.py:44:23 error[unsupported-operator] Operator `+` is not supported between objects of type `list[int | float | complex]` and `Index[bool]`
- tests/indexes/bool/test_mul.py:64:11 error[type-assertion-failure] Type `Index[Unknown]` does not match asserted type `Index[int | float]`
+ tests/indexes/bool/test_mul.py:64:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Index[int | float]`
+ tests/indexes/bool/test_mul.py:64:23 error[unsupported-operator] Operator `*` is not supported between objects of type `Index[bool]` and `list[int | float]`
+ tests/indexes/bool/test_mul.py:65:23 error[unsupported-operator] Operator `*` is not supported between objects of type `Index[bool]` and `list[int | float | complex]`
- tests/indexes/bool/test_mul.py:72:11 error[type-assertion-failure] Type `Index[Unknown]` does not match asserted type `Index[int | float]`
+ tests/indexes/bool/test_mul.py:72:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Index[int | float]`
- tests/indexes/bool/test_mul.py:73:11 error[type-assertion-failure] Type `Index[Unknown]` does not match asserted type `Index[int | float | complex]`
+ tests/indexes/bool/test_mul.py:73:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Index[int | float | complex]`
+ tests/indexes/bool/test_mul.py:73:23 error[unsupported-operator] Operator `*` is not supported between objects of type `list[int | float | complex]` and `Index[bool]`
- tests/indexes/int/test_add.py:39:11 error[type-assertion-failure] Type `Index[Unknown]` does not match asserted type `Index[int | float]`
- tests/indexes/int/test_add.py:45:11 error[type-assertion-failure] Type `Index[Unknown]` does not match asserted type `Index[int | float | complex]`
- tests/indexes/int/test_mul.py:65:11 error[type-assertion-failure] Type `Index[Unknown]` does not match asserted type `Index[int | float]`
- tests/indexes/int/test_mul.py:66:11 error[type-assertion-failure] Type `Index[Unknown]` does not match asserted type `Index[int | float | complex]`
- tests/indexes/int/test_mul.py:73:11 error[type-assertion-failure] Type `Index[Unknown]` does not match asserted type `Index[int | float]`
- tests/indexes/int/test_mul.py:74:11 error[type-assertion-failure] Type `Index[Unknown]` does not match asserted type `Index[int | float | complex]`
+ tests/indexes/test_add.py:41:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Index[Any]`
+ tests/indexes/test_add.py:42:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Index[Any]`
+ tests/indexes/test_add.py:46:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Index[Any]`
+ tests/indexes/test_add.py:47:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Index[Any]`
+ tests/indexes/test_mul.py:45:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Index[Any]`
+ tests/indexes/test_mul.py:46:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Index[Any]`
+ tests/indexes/test_mul.py:51:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Index[Any]`
+ tests/series/bool/test_add.py:50:23 error[unsupported-operator] Operator `+` is not supported between objects of type `Series[bool]` and `list[int | float]`
+ tests/series/bool/test_add.py:51:23 error[unsupported-operator] Operator `+` is not supported between objects of type `Series[bool]` and `list[int | float | complex]`
- tests/series/bool/test_add.py:55:11 error[type-assertion-failure] Type `Series[Unknown]` does not match asserted type `Series[int | float]`
+ tests/series/bool/test_add.py:55:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Series[int | float]`
+ tests/series/bool/test_add.py:55:23 error[unsupported-operator] Operator `+` is not supported between objects of type `list[int | float]` and `Series[bool]`
- tests/series/bool/test_add.py:56:11 error[type-assertion-failure] Type `Series[Unknown]` does not match asserted type `Series[int | float | complex]`
+ tests/series/bool/test_add.py:56:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Series[int | float | complex]`
+ tests/series/bool/test_add.py:56:23 error[unsupported-operator] Operator `+` is not supported between objects of type `list[int | float | complex]` and `Series[bool]`
- tests/series/bool/test_add.py:60:11 error[type-assertion-failure] Type `Series[Unknown]` does not match asserted type `Series[int | float]`
+ tests/series/bool/test_add.py:60:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Series[int | float]`
+ tests/series/bool/test_add.py:60:23 error[no-matching-overload] No overload of bound method `Series.add` matches arguments
- tests/series/bool/test_add.py:61:11 error[type-assertion-failure] Type `Series[Unknown]` does not match asserted type `Series[int | float | complex]`
+ tests/series/bool/test_add.py:61:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Series[int | float | complex]`
+ tests/series/bool/test_add.py:61:23 error[no-matching-overload] No overload of bound method `Series.add` matches arguments
- tests/series/bool/test_add.py:67:9 error[type-assertion-failure] Type `Series[Unknown]` does not match asserted type `Series[int | float | complex]`
+ tests/series/bool/test_add.py:67:9 error[type-assertion-failure] Type `Unknown` does not match asserted type `Series[int | float | complex]`
+ tests/series/bool/test_add.py:67:21 error[no-matching-overload] No overload of bound method `Series.radd` matches arguments
- tests/series/bool/test_mul.py:83:11 error[type-assertion-failure] Type `Series[Unknown]` does not match asserted type `Series[int | float]`
+ tests/series/bool/test_mul.py:83:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Series[int | float]`
+ tests/series/bool/test_mul.py:83:23 error[unsupported-operator] Operator `*` is not supported between objects of type `Series[bool]` and `list[int | float]`
- tests/series/bool/test_mul.py:84:11 error[type-assertion-failure] Type `Series[Unknown]` does not match asserted type `Series[int | float | complex]`
+ tests/series/bool/test_mul.py:84:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Series[int | float | complex]`
+ tests/series/bool/test_mul.py:84:23 error[unsupported-operator] Operator `*` is not supported between objects of type `Series[bool]` and `list[int | float | complex]`
- tests/series/bool/test_mul.py:91:11 error[type-assertion-failure] Type `Series[Unknown]` does not match asserted type `Series[int | float]`
+ tests/series/bool/test_mul.py:91:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Series[int | float]`
+ tests/series/bool/test_mul.py:91:23 error[unsupported-operator] Operator `*` is not supported between objects of type `list[int | float]` and `Series[bool]`
- tests/series/bool/test_mul.py:92:11 error[type-assertion-failure] Type `Series[Unknown]` does not match asserted type `Series[int | float | complex]`
+ tests/series/bool/test_mul.py:92:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Series[int | float | complex]`
+ tests/series/bool/test_mul.py:99:23 error[no-matching-overload] No overload of bound method `Series.mul` matches arguments
+ tests/series/bool/test_mul.py:100:23 error[no-matching-overload] No overload of bound method `Series.mul` matches arguments
+ tests/series/bool/test_mul.py:107:23 error[no-matching-overload] No overload of bound method `Series.rmul` matches arguments
+ tests/series/bool/test_mul.py:109:21 error[no-matching-overload] No overload of bound method `Series.rmul` matches arguments
- tests/series/int/test_add.py:50:11 error[type-assertion-failure] Type `Series[Unknown]` does not match asserted type `Series[int | float]`
- tests/series/int/test_add.py:56:11 error[type-assertion-failure] Type `Series[Unknown]` does not match asserted type `Series[int | float | complex]`
- tests/series/int/test_add.py:61:11 error[type-assertion-failure] Type `Series[Unknown]` does not match asserted type `Series[int | float | complex]`
- tests/series/int/test_mul.py:83:11 error[type-assertion-failure] Type `Series[Unknown]` does not match asserted type `Series[int | float]`
- tests/series/int/test_mul.py:84:11 error[type-assertion-failure] Type `Series[Unknown]` does not match asserted type `Series[int | float | complex]`
- tests/series/int/test_mul.py:92:11 error[type-assertion-failure] Type `Series[Unknown]` does not match asserted type `Series[int | float | complex]`
- tests/series/int/test_mul.py:100:11 error[type-assertion-failure] Type `Series[Unknown]` does not match asserted type `Series[int | float | complex]`
- tests/series/int/test_mul.py:107:11 error[type-assertion-failure] Type `Series[Unknown]` does not match asserted type `Series[int | float]`
- tests/series/int/test_mul.py:109:9 error[type-assertion-failure] Type `Series[Unknown]` does not match asserted type `Series[int | float | complex]`
+ tests/series/test_add.py:55:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Series[Any]`
+ tests/series/test_add.py:56:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Series[Any]`
+ tests/series/test_add.py:67:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Series[Any]`
+ tests/series/test_add.py:68:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Series[Any]`
+ tests/series/test_add.py:73:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Series[Any]`
+ tests/series/test_add.py:74:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Series[Any]`
+ tests/series/test_mul.py:55:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Series[Any]`
+ tests/series/test_mul.py:56:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Series[Any]`
+ tests/series/test_mul.py:65:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Series[Any]`

pip (https://github.com/pypa/pip)
+ src/pip/_vendor/rich/_ratio.py:69:17 error[invalid-assignment] Invalid subscript assignment with key of type `int` and value of type `int | float` on object of type `list[int | None]`

prefect (https://github.com/PrefectHQ/prefect)
+ src/prefect/cli/artifact.py:96:45 error[unresolved-attribute] Attribute `latest_id` is not defined on `Artifact` in union `Artifact | ArtifactCollection | UnspecializedTypeVar`
- src/prefect/server/models/flow_runs.py:624:15 error[missing-argument] No argument provided for required parameter `db`
- src/prefect/server/models/task_runs.py:556:15 error[missing-argument] No argument provided for required parameter `db`
+ src/prefect/tasks.py:955:17 error[invalid-assignment] Invalid subscript assignment with key of type `str | Unknown` and value of type `set[RunInput]` on object of type `dict[str, set[TaskRunResult | FlowRunResult]]`
+ src/prefect/tasks.py:1060:17 error[invalid-assignment] Invalid subscript assignment with key of type `str | Unknown` and value of type `set[RunInput]` on object of type `dict[str, set[TaskRunResult | FlowRunResult]]`

psycopg (https://github.com/psycopg/psycopg)
- psycopg/psycopg/waiting.py:266:17 error[invalid-argument-type] Argument to function `select` is incorrect: Expected `Iterable[Never]`, found `tuple[int] | tuple[()]`
- psycopg/psycopg/waiting.py:267:17 error[invalid-argument-type] Argument to function `select` is incorrect: Expected `Iterable[Never]`, found `tuple[int] | tuple[()]`

pwndbg (https://github.com/pwndbg/pwndbg)
+ pwndbg/emu/emulator.py:551:36 error[invalid-assignment] Object of type `tuple[UnspecializedTypeVar | str | None, ...]` is not assignable to `tuple[str]`
+ pwndbg/enhance.py:164:16 error[invalid-return-type] Return type does not match returned value: expected `str`, found `UnspecializedTypeVar | str | None`

pycryptodome (https://github.com/Legrandin/pycryptodome)
+ lib/Crypto/SelfTest/Hash/test_CMAC.py:434:9 error[invalid-assignment] Invalid subscript assignment with key of type `Literal[4]` and value of type `dict[str, str | <module 'Crypto.Cipher.AES'> | <module 'Crypto.Cipher.DES3'>]` on object of type `list[str | <module 'Crypto.Cipher.AES'> | <module 'Crypto.Cipher.DES3'>]`

pydantic (https://github.com/pydantic/pydantic)
- pydantic/_internal/_utils.py:285:48 warning[unused-type-ignore-comment] Unused blanket `type: ignore` directive

pywin32 (https://github.com/mhammond/pywin32)
- Pythonwin/pywin/scintilla/view.py:518:22 error[invalid-argument-type] Argument to constructor `map.__new__` is incorrect: Expected `Iterable[Buffer]`, found `dict[Unknown, Unknown] | dict[str, Any | None]`
- Pythonwin/pywin/scintilla/view.py:520:20 error[unresolved-attribute] Object of type `_S@map` has no attribute `startswith`
- Pythonwin/pywin/scintilla/view.py:558:13 error[invalid-argument-type] Argument to bound method `list.sort` is incorrect: Argument type `_S@map` does not satisfy upper bound `SupportsDunderLT[Any] | SupportsDunderGT[Any]` of type variable `SupportsRichComparisonT`

rotki (https://github.com/rotki/rotki)
+ rotkehlchen/chain/decoding/tools.py:81:9 error[invalid-assignment] Object of type `frozenset[BTCAddress | ChecksumAddress | SubstrateAddress | SolanaAddress]` is not assignable to attribute `_tracked_addresses_for_chain` of type `frozenset[A@BaseDecoderTools]`
- rotkehlchen/utils/misc.py:400:12 error[invalid-return-type] Return type does not match returned value: expected `list[tuple[str, bool]] | None`, found `list[tuple[Unknown | bool, Unknown | bool]]`
+ rotkehlchen/utils/misc.py:400:12 error[invalid-return-type] Return type does not match returned value: expected `list[tuple[str, bool]] | None`, found `list[tuple[str | bool, bool | Unknown]]`

schema_salad (https://github.com/common-workflow-language/schema_salad)
+ schema_salad/schema.py:411:20 error[unsupported-operator] Operator `in` is not supported between objects of type `str` and `object`
+ schema_salad/sourceline.py:224:28 error[invalid-argument-type] Argument to function `cmap` is incorrect: Expected `int | float | str | ... omitted 3 union elements`, found `object`

scikit-learn (https://github.com/scikit-learn/scikit-learn)
- sklearn/externals/array_api_extra/_lib/_lazy.py:215:18 error[invalid-assignment] Object of type `list[_T@list]` is not assignable to `list[tuple[int | None, ...]]`
+ sklearn/externals/array_api_extra/_lib/_lazy.py:215:18 error[invalid-assignment] Object of type `list[int | None | tuple[int | None, ...]]` is not assignable to `list[tuple[int | None, ...]]`
- sklearn/externals/array_api_extra/_lib/_lazy.py:215:23 error[invalid-argument-type] Argument to `list.__init__` is incorrect: Expected `Iterable[tuple[int | None, ...]]`, found `tuple[int | None, ...] | Sequence[tuple[int | None, ...]]`
+ sklearn/inspection/_plot/partial_dependence.py:1486:32 error[index-out-of-bounds] Index 1 is out of bounds for tuple `tuple[bool]` with length 1
+ sklearn/neighbors/_classification.py:307:28 error[unresolved-attribute] Attribute `take` is not defined on `list[Unknown]` in union `Unknown | list[Unknown]`
+ sklearn/neighbors/_classification.py:402:44 error[unresolved-attribute] Attribute `size` is not defined on `list[Unknown]` in union `Unknown | list[Unknown]`
+ sklearn/neighbors/_classification.py:711:55 error[unresolved-attribute] Attribute `dtype` is not defined on `list[Unknown]` in union `Unknown | list[Unknown]`
+ sklearn/neighbors/_classification.py:848:44 error[unresolved-attribute] Attribute `size` is not defined on `list[Unknown]` in union `Unknown | list[Unknown]`
+ sklearn/neighbors/_classification.py:854:66 error[unresolved-attribute] Attribute `size` is not defined on `list[Unknown]` in union `Unknown | list[Unknown]`
+ sklearn/neighbors/_classification.py:858:52 error[unresolved-attribute] Attribute `size` is not defined on `list[Unknown]` in union `Unknown | list[Unknown]`

scipy (https://github.com/scipy/scipy)
- scipy/_lib/_bunch.py:206:9 error[invalid-assignment] Invalid subscript assignment with key of type `str` and value of type `property` on object of type `dict[str, str | tuple[str, ...] | ([_T_co](self: type[tuple[Unknown, ...]], iterable: Iterable[Unknown] = ..., /) -> Unknown) | ... omitted 4 union elements]`
+ scipy/_lib/_bunch.py:206:9 error[invalid-assignment] Invalid subscript assignment with key of type `str` and value of type `property` on object of type `dict[str, str | tuple[str | Unknown, ...] | ([_T_co](self: type[tuple[Unknown, ...]], iterable: Iterable[Unknown] = ..., /) -> Unknown) | ... omitted 4 union elements]`
+ scipy/signal/tests/test_short_time_fft.py:650:58 error[invalid-argument-type] Argument to `ShortTimeFFT.__init__` is incorrect: Expected `int | None`, found `Any | None | int | str`
+ scipy/signal/tests/test_short_time_fft.py:651:46 error[invalid-argument-type] Argument to `ShortTimeFFT.__init__` is incorrect: Expected `int | None`, found `Any | None | int | str`
- scipy/signal/tests/test_signaltools.py:3552:18 error[no-matching-overload] No overload of bound method `str.join` matches arguments
- scipy/special/tests/test_cdflib.py:117:37 error[invalid-argument-type] Argument to constructor `zip.__new__` is incorrect: Expected `Iterable[Unknown]`, found `None | (Unknown & Top[list[Unknown]]) | list[Unknown | None]`
+ scipy/special/tests/test_cdflib.py:117:37 error[invalid-argument-type] Argument to constructor `zip.__new__` is incorrect: Expected `Iterable[Unknown | None]`, found `None | (Unknown & Top[list[Unknown]]) | list[Unknown | None]`
- scipy/special/tests/test_cdflib.py:117:54 error[invalid-argument-type] Argument to constructor `zip.__new__` is incorrect: Expected `Iterable[Unknown]`, found `None | (Unknown & Top[list[Unknown]]) | list[Unknown | None]`
+ scipy/special/tests/test_cdflib.py:117:54 error[invalid-argument-type] Argument to constructor `zip.__new__` is incorrect: Expected `Iterable[Unknown | None]`, found `None | (Unknown & Top[list[Unknown]]) | list[Unknown | None]`
- subprojects/array_api_extra/src/array_api_extra/_lib/_lazy.py:215:18 error[invalid-assignment] Object of type `list[_T@list]` is not assignable to `list[tuple[int | None, ...]]`
+ subprojects/array_api_extra/src/array_api_extra/_lib/_lazy.py:215:18 error[invalid-assignment] Object of type `list[int | None | tuple[int | None, ...]]` is not assignable to `list[tuple[int | None, ...]]`
+ subprojects/highs/highs/highspy/highs.py:1003:39 error[invalid-argument-type] Argument to bound method `Highs.__addRow` is incorrect: Expected `highs_linear_expression`, found `object`
- subprojects/highs/highs/highspy/highs.py:1164:40 error[invalid-argument-type] Argument to constructor `map.__new__` is incorrect: Expected `Iterable[str | Buffer | SupportsInt | SupportsIndex | SupportsTrunc]`, found `(highs_var & Iterable[object]) | (int & Iterable[object]) | Iterable[highs_var | int]`
+ subprojects/highs/highs/highspy/highs.py:1164:35 error[invalid-argument-type] Argument to constructor `map.__new__` is incorrect: Expected `(object, /) -> int`, found `<class 'int'>`
- subprojects/highs/highs/highspy/highs.py:1177:40 error[invalid-argument-type] Argument to constructor `map.__new__` is incorrect: Expected `Iterable[str | Buffer | SupportsInt | SupportsIndex | SupportsTrunc]`, found `(highs_var & Iterable[object]) | (int & Iterable[object]) | Iterable[highs_var | int]`
+ subprojects/highs/highs/highspy/highs.py:1177:35 error[invalid-argument-type] Argument to constructor `map.__new__` is incorrect: Expected `(object, /) -> int`, found `<class 'int'>`

scipy-stubs (https://github.com/scipy/scipy-stubs)
- tests/spatial/test__rigid_transform.pyi:61:1 error[type-assertion-failure] Type `Unknown` does not match asserted type `RigidTransform[tuple[()]]`
+ tests/spatial/test__rigid_transform.pyi:61:1 error[type-assertion-failure] Type `RigidTransform[tuple[()]] | RigidTransform[tuple[int]]` does not match asserted type `RigidTransform[tuple[()]]`
- tests/spatial/test__rigid_transform.pyi:62:1 error[type-assertion-failure] Type `Unknown` does not match asserted type `RigidTransform[tuple[int]]`
+ tests/spatial/test__rigid_transform.pyi:62:1 error[type-assertion-failure] Type `RigidTransform[tuple[()]] | RigidTransform[tuple[int]]` does not match asserted type `RigidTransform[tuple[int]]`
- tests/spatial/test__rigid_transform.pyi:63:1 error[type-assertion-failure] Type `Unknown` does not match asserted type `RigidTransform[tuple[Any, ...]]`
+ tests/spatial/test__rigid_transform.pyi:63:1 error[type-assertion-failure] Type `RigidTransform[tuple[()]] | RigidTransform[tuple[int]]` does not match asserted type `RigidTransform[tuple[Any, ...]]`

scrapy (https://github.com/scrapy/scrapy)
+ scrapy/core/scraper.py:419:22 error[invalid-assignment] Object of type `AsyncIterator[object]` is not assignable to `Iterable[_T@handle_spider_output_async] | AsyncIterator[_T@handle_spider_output_async]`
+ scrapy/core/scraper.py:427:18 error[invalid-assignment] Object of type `AsyncIterator[object]` is not assignable to `Iterable[_T@handle_spider_output_async] | AsyncIterator[_T@handle_spider_output_async]`
+ scrapy/core/spidermw.py:377:25 error[invalid-assignment] Object of type `MutableChain[object]` is not assignable to `MutableChain[_T@_process_callback_output] | MutableAsyncChain[_T@_process_callback_output]`

setuptools (https://github.com/pypa/setuptools)
- setuptools/config/expand.py:334:16 error[no-matching-overload] No overload of bound method `str.join` matches arguments
- setuptools/config/expand.py:334:34 error[invalid-argument-type] Argument to constructor `map.__new__` is incorrect: Expected `Iterable[Buffer]`, found `(Unknown & <Protocol with members '__iter__'> & ~str) | (Iterable[str | int] & ~Top[(...) -> object] & ~str)`

spack (https://github.com/spack/spack)
+ lib/spack/spack/solver/requirements.py:315:44 error[invalid-argument-type] Argument to bound method `RequirementParser._parse_and_expand` is incorrect: Expected `str`, found `Unknown | list[Unknown & str]`
+ lib/spack/spack/solver/requirements.py:318:40 error[invalid-argument-type] Argument to function `_check_unknown_targets` is incorrect: Expected `list[str]`, found `list[Unknown | list[Unknown & str]]`
- lib/spack/spack/test/concretization/core.py:1605:44 error[invalid-argument-type] Argument to `set.__init__` is incorrect: Expected `Iterable[Unknown]`, found `tuple[bool | str, ...] | bool | str`
+ lib/spack/spack/test/concretization/core.py:1605:44 error[invalid-argument-type] Argument to `set.__init__` is incorrect: Expected `Iterable[bool | str]`, found `tuple[bool | str, ...] | bool | str`
- lib/spack/spack/test/concretization/core.py:1618:20 error[invalid-argument-type] Argument to `set.__init__` is incorrect: Expected `Iterable[Unknown]`, found `tuple[bool | str, ...] | bool | str`
+ lib/spack/spack/test/concretization/core.py:1618:20 error[invalid-argument-type] Argument to `set.__init__` is incorrect: Expected `Iterable[bool | str]`, found `tuple[bool | str, ...] | bool | str`
+ lib/spack/spack/vendor/jinja2/lexer.py:762:35 error[call-non-callable] Object of type `str` is not callable
+ lib/spack/spack/vendor/ruamel/yaml/representer.py:454:21 error[invalid-argument-type] Argument to `list.__init__` is incorrect: Expected `Iterable[Unknown]`, found `str | ((...) -> Any) | tuple[Any, ...] | Any | None`
+ lib/spack/spack/vendor/ruamel/yaml/representer.py:461:12 error[unresolved-attribute] Attribute `__name__` is not defined on `str`, `(...) -> Any`, `tuple[Any, ...]`, `None` in union `str | ((...) -> Any) | tuple[Any, ...] | Any | None`

static-frame (https://github.com/static-frame/static-frame)
+ static_frame/core/db_util.py:525:19 error[not-iterable] Object of type `Hashable` is not iterable
+ static_frame/core/frame.py:742:36 error[invalid-yield] Yield type `tuple[Hashable, Hashable]` does not match annotated yield type `tuple[Hashable, IndexBase]`
+ static_frame/core/frame.py:747:36 error[invalid-yield] Yield type `tuple[Hashable, Hashable]` does not match annotated yield type `tuple[Hashable, IndexBase]`
+ static_frame/core/index_correspondence.py:193:21 error[invalid-assignment] Invalid subscript assignment with key of type `object` and value of type `Unknown` on object of type `ndarray[Any, Any]`
+ static_frame/core/index_correspondence.py:193:38 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: ndarray[tuple[Any, ...], dtype[integer[Any] | numpy.bool[builtins.bool]]] | tuple[ndarray[tuple[Any, ...], dtype[integer[Any] | numpy.bool[builtins.bool]]], ...], /) -> ndarray[tuple[Any, ...], Any], (key: SupportsIndex | tuple[SupportsIndex, ...], /) -> Any, (key: SupportsIndex | slice[Any, Any, Any] | EllipsisType | ... omitted 5 union elements, /) -> ndarray[tuple[Any, ...], Any], (key: str, /) -> ndarray[Any | tuple[Any, ...], dtype[Any]], (key: list[str], /) -> ndarray[Any | tuple[Any, ...], Unknown]]` cannot be called with key of type `object` on object of type `ndarray[Any, Any]`
+ static_frame/core/loc_map.py:419:32 error[not-iterable] Object of type `Hashable` is not iterable
+ static_frame/core/type_blocks.py:2119:58 error[index-out-of-bounds] Index 1 is out of bounds for tuple `tuple[int]` with length 1
- static_frame/core/util.py:3893:57 error[invalid-argument-type] Argument to constructor `chain.__new__` is incorrect: Expected `Iterable[None]`, found `Sequence[int] | ndarray[tuple[Any, ...], Any]`
- static_frame/test/unit/test_frame_iter.py:49:58 warning[unused-type-ignore-comment] Unused blanket `type: ignore` directive
- static_frame/test/unit/test_frame_iter.py:54:58 warning[unused-type-ignore-comment] Unused blanket `type: ignore` directive
- static_frame/test/unit/test_frame_iter.py:847:56 warning[unused-type-ignore-comment] Unused blanket `type: ignore` directive

streamlit (https://github.com/streamlit/streamlit)
+ lib/streamlit/elements/widgets/time_widgets.py:655:31 error[invalid-argument-type] Argument to function `date.strftime` is incorrect: Expected `date`, found `object`

sympy (https://github.com/sympy/sympy)
+ sympy/matrices/common.py:1062:21 error[invalid-assignment] Invalid subscript assignment with key of type `tuple[int | Unknown, int | Unknown]` and value of type `Expr` on object of type `defaultdict[Unknown, int]`
- sympy/matrices/matrixbase.py:2554:45 warning[unused-type-ignore-comment] Unused blanket `type: ignore` directive
- sympy/polys/polyoptions.py:472:61 error[invalid-argument-type] Argument to bound method `Domain.poly_ring` is incorrect: Expected `str | Expr`, found `Basic | int | float | complex | Any`
+ sympy/polys/polyoptions.py:472:61 error[invalid-argument-type] Argument to bound method `Domain.poly_ring` is incorrect: Expected `str | Expr`, found `Basic | int | float | ... omitted 3 union elements`
- sympy/polys/polyoptions.py:476:61 error[invalid-argument-type] Argument to bound method `Domain.poly_ring` is incorrect: Expected `str | Expr`, found `Basic | int | float | complex | Any`
+ sympy/polys/polyoptions.py:476:61 error[invalid-argument-type] Argument to bound method `Domain.poly_ring` is incorrect: Expected `str | Expr`, found `Basic | int | float | ... omitted 3 union elements`
- sympy/polys/polyoptions.py:480:63 error[invalid-argument-type] Argument to bound method `Domain.poly_ring` is incorrect: Expected `str | Expr`, found `Basic | int | float | complex | Any`
+ sympy/polys/polyoptions.py:480:63 error[invalid-argument-type] Argument to bound method `Domain.poly_ring` is incorrect: Expected `str | Expr`, found `Basic | int | float | ... omitted 3 union elements`
- sympy/polys/polyoptions.py:482:61 error[invalid-argument-type] Argument to bound method `Domain.poly_ring` is incorrect: Expected `str | Expr`, found `Basic | int | float | complex | Any`
+ sympy/polys/polyoptions.py:482:61 error[invalid-argument-type] Argument to bound method `Domain.poly_ring` is incorrect: Expected `str | Expr`, found `Basic | int | float | ... omitted 3 union elements`
- sympy/polys/polyoptions.py:492:62 error[invalid-argument-type] Argument to bound method `Domain.frac_field` is incorrect: Expected `str | Expr`, found `Basic | int | float | complex | Any`
+ sympy/polys/polyoptions.py:492:62 error[invalid-argument-type] Argument to bound method `Domain.frac_field` is incorrect: Expected `str | Expr`, found `Basic | int | float | ... omitted 3 union elements`
- sympy/polys/polyoptions.py:494:62 error[invalid-argument-type] Argument to bound method `Domain.frac_field` is incorrect: Expected `str | Expr`, found `Basic | int | float | complex | Any`
+ sympy/polys/polyoptions.py:494:62 error[invalid-argument-type] Argument to bound method `Domain.frac_field` is incorrect: Expected `str | Expr`, found `Basic | int | float | ... omitted 3 union elements`
- sympy/polys/polyroots.py:821:29 error[unsupported-operator] Unary operator `-` is not supported for object of type `None | Unknown`
+ sympy/polys/polyroots.py:821:29 error[unsupported-operator] Unary operator `-` is not supported for object of type `None | Any`
- sympy/polys/polyroots.py:824:32 error[unsupported-operator] Unary operator `-` is not supported for object of type `None | Unknown`
+ sympy/polys/polyroots.py:824:32 error[unsupported-operator] Unary operator `-` is not supported for object of type `None | Any`
- sympy/series/order.py:189:28 error[unsupported-operator] Operator `/` is not supported between objects of type `Literal[1]` and `Unknown | Basic | int | float | complex`
+ sympy/series/order.py:189:28 error[unsupported-operator] Operator `/` is not supported between objects of type `Literal[1]` and `Unknown | Basic | int | ... omitted 3 union elements`
- sympy/series/order.py:193:29 error[unsupported-operator] Operator `/` is not supported between objects of type `Literal[-1]` and `Unknown | Basic | int | float | complex`
+ sympy/series/order.py:193:29 error[unsupported-operator] Operator `/` is not supported between objects of type `Literal[-1]` and `Unknown | Basic | int | ... omitted 3 union elements`
- sympy/series/order.py:270:52 error[invalid-argument-type] Argument to bound method `Expr.as_independent` is incorrect: Expected `Basic | type[Basic]`, found `Basic | int | float | complex | Any`
+ sympy/series/order.py:270:52 error[invalid-argument-type] Argument to bound method `Expr.as_independent` is incorrect: Expected `Basic | type[Basic]`, found `Basic | int | float | ... omitted 3 union elements`
- sympy/series/order.py:288:45 error[unsupported-operator] Unary operator `-` is not supported for object of type `Basic | int | float | complex | Any`
+ sympy/series/order.py:288:45 error[unsupported-operator] Unary operator `-` is not supported for object of type `Basic | int | float | ... omitted 3 union elements`
- sympy/series/order.py:292:49 error[unsupported-operator] Unary operator `-` is not supported for object of type `Basic | int | float | complex | Any`
+ sympy/series/order.py:292:49 error[unsupported-operator] Unary operator `-` is not supported for object of type `Basic | int | float | ... omitted 3 union elements`
- sympy/series/order.py:298:53 error[unsupported-operator] Unary operator `-` is not supported for object of type `Basic | int | float | complex | Any`
+ sympy/series/order.py:298:53 error[unsupported-operator] Unary operator `-` is not supported for object of type `Basic | int | float | ... omitted 3 union elements`
+ sympy/solvers/inequalities.py:959:16 error[unresolved-attribute] Attribute `xreplace` is not defined on `list[Unknown]` in union `Unknown | list[Unknown]`
+ sympy/stats/stochastic_process_types.py:2042:24 error[unresolved-attribute] Attribute `key` is not defined on `Basic` in union `Basic | Unknown`
+ sympy/stats/stochastic_process_types.py:2042:42 error[unresolved-attribute] Attribute `key` is not defined on `Basic` in union `Basic | Unknown`
+ sympy/stats/stochastic_process_types.py:2043:27 error[unresolved-attribute] Attribute `pspace` is not defined on `Basic` in union `Basic | Unknown`
+ sympy/stats/stochastic_process_types.py:2044:16 error[unsupported-operator] Operator `>` is not supported between two objects of type `Basic | Unknown`
+ sympy/stats/stochastic_process_types.py:2056:25 error[unresolved-attribute] Attribute `pspace` is not defined on `Basic` in union `Basic | Unknown`
+ sympy/stats/stochastic_process_types.py:2065:25 error[unresolved-attribute] Attribute `pspace` is not defined on `Basic` in union `Basic | Unknown`
+ sympy/stats/stochastic_process_types.py:2070:25 error[unresolved-attribute] Attribute `pspace` is not defined on `Basic` in union `Basic | Unknown`
+ sympy/stats/stochastic_process_types.py:2073:21 error[unresolved-attribute] Attribute `pspace` is not defined on `Basic` in union `Basic | Unknown`
- sympy/testing/runtests.py:1578:81 error[invalid-argument-type] Argument to constructor `map.__new__` is incorrect: Expected `Iterable[Buffer]`, found `(Unknown & ~AlwaysFalsy) | tuple[Literal[3], Literal[5]]`

tornado (https://github.com/tornadoweb/tornado)
- tornado/gen.py:239:46 error[invalid-argument-type] Argument to `Runner.__init__` is incorrect: Expected `Generator[None | Awaitable[Unknown] | list[Awaitable[Unknown]] | dict[Any, Awaitable[Unknown]] | Future[Unknown], Any, Unknown]`, found `(Generator[Any, Any, _T@coroutine] & Generator[object, None, None]) | (_T@coroutine & Generator[object, None, None])`
+ tornado/gen.py:239:46 error[invalid-argument-type] Argument to `Runner.__init__` is incorrect: Expected `Generator[None | Awaitable[Unknown] | list[Awaitable[Unknown]] | dict[Any, Awaitable[Unknown]] | Future[Unknown], Any, _T@coroutine | Unknown]`, found `(Generator[Any, Any, _T@coroutine] & Generator[object, None, None]) | (_T@coroutine & Generator[object, None, None])`
- tornado/gen.py:516:47 error[invalid-argument-type] Argument to constructor `map.__new__` is incorrect: Expected `Iterable[None | Awaitable[Unknown] | list[Awaitable[Unknown]] | dict[Any, Awaitable[Unknown]] | Future[Unknown]]`, found `dict_values[object, object] | (Sequence[None | Awaitable[Unknown] | list[Awaitable[Unknown]] | dict[Any, Awaitable[Unknown]] | Future[Unknown]] & ~Top[dict[Unknown, Unknown]]) | (Mapping[Any, None | Awaitable[Unknown] | list[Awaitable[Unknown]] | dict[Any, Awaitable[Unknown]] | Future[Unknown]] & ~Top[dict[Unknown, Unknown]])`
+ tornado/gen.py:516:30 error[invalid-argument-type] Argument to constructor `map.__new__` is incorrect: Expected `(object, /) -> _asyncio.Future[Unknown]`, found `def convert_yielded(yielded: None | Awaitable[Unknown] | list[Awaitable[Unknown]] | dict[Any, Awaitable[Unknown]] | concurrent.futures._base.Future[Unknown]) -> _asyncio.Future[Unknown]`

vision (https://github.com/pytorch/vision)
- test/test_transforms.py:324:53 error[invalid-argument-type] Argument to function `RandomResizedCrop.get_params` is incorrect: Expected `list[int | float]`, found `tuple[Unknown | float, Unknown]`
+ test/test_transforms.py:324:53 error[invalid-argument-type] Argument to function `RandomResizedCrop.get_params` is incorrect: Expected `list[int | float]`, found `tuple[int | float, int | float]`
+ torchvision/models/detection/anchor_utils.py:51:35 error[invalid-argument-type] Argument to bound method `AnchorGenerator.generate_anchors` is incorrect: Expected `list[int]`, found `tuple[Literal[128], Literal[256], Literal[512]] | tuple[Unknown | tuple[Literal[128], Literal[256], Literal[512]]]`
+ torchvision/models/detection/anchor_utils.py:51:41 error[invalid-argument-type] Argument to bound method `AnchorGenerator.generate_anchors` is incorrect: Expected `list[int | float]`, found `tuple[float, float, float] | Unknown | tuple[tuple[float, float, float]]`
- torchvision/utils.py:396:75 error[invalid-argument-type] Argument to constructor `zip.__new__` is incorrect: Expected `Iterable[Unknown]`, found `list[str | tuple[int, int, int]] | str | tuple[int, int, int] | None`
+ torchvision/utils.py:396:75 error[invalid-argument-type] Argument to constructor `zip.__new__` is incorrect: Expected `Iterable[str | tuple[int, int, int] | int]`, found `list[str | tuple[int, int, int]] | str | tuple[int, int, int] | None`
- torchvision/utils.py:396:91 error[invalid-argument-type] Argument to constructor `zip.__new__` is incorrect: Expected `Iterable[Unknown]`, found `list[str | tuple[int, int, int]] | str | tuple[int, int, int] | None`
+ torchvision/utils.py:396:91 error[invalid-argument-type] Argument to constructor `zip.__new__` is incorrect: Expected `Iterable[str | tuple[int, int, int] | int]`, found `list[str | tuple[int, int, int]] | str | tuple[int, int, int] | None`
- torchvision/utils.py:396:105 error[invalid-argument-type] Argument to constructor `zip.__new__` is incorrect: Expected `Iterable[Unknown]`, found `list[str | tuple[int, int, int]] | str | tuple[int, int, int] | None`
+ torchvision/utils.py:396:105 error[invalid-argument-type] Argument to constructor `zip.__new__` is incorrect: Expected `Iterable[str | tuple[int, int, int] | int]`, found `list[str | tuple[int, int, int]] | str | tuple[int, int, int] | None`

websockets (https://github.com/aaugustin/websockets)
+ src/websockets/legacy/protocol.py:645:41 error[invalid-argument-type] Argument to function `prepare_data` is incorrect: Expected `str | bytes | bytearray | memoryview[int]`, found `object`
+ src/websockets/legacy/protocol.py:654:57 error[invalid-argument-type] Argument to function `prepare_data` is incorrect: Expected `str | bytes | bytearray | memoryview[int]`, found `object`

werkzeug (https://github.com/pallets/werkzeug)
- src/werkzeug/datastructures/structures.py:349:38 error[invalid-argument-type] Argument to bound method `dict.__setitem__` is incorrect: Expected `V@MultiDict`, found `list[Unknown]`
+ src/werkzeug/datastructures/structures.py:349:38 error[invalid-argument-type] Argument to bound method `dict.__setitem__` is incorrect: Expected `V@MultiDict`, found `list[V@MultiDict]`

xarray (https://github.com/pydata/xarray)
- xarray/core/datatree.py:1564:16 error[invalid-return-type] Return type does not match returned value: expected `set[str]`, found `set[_T@set]`
+ xarray/core/datatree.py:1564:16 error[invalid-return-type] Return type does not match returned value: expected `set[str]`, found `set[Hashable]`
- xarray/core/formatting.py:351:20 error[no-matching-overload] No overload of bound method `str.join` matches arguments
- xarray/core/formatting.py:351:39 error[invalid-argument-type] Argument to constructor `map.__new__` is incorrect: Expected `Iterable[Buffer]`, found `(Any & ~AlwaysFalsy) | (tuple[Hashable, ...] & ~AlwaysFalsy)`
- xarray/core/variable.py:2228:46 error[invalid-argument-type] Argument to constructor `zip.__new__` is incorrect: Expected `Iterable[Unknown]`, found `Unknown | Literal[False] | list[Hashable]`
+ xarray/core/variable.py:2228:46 error[invalid-argument-type] Argument to constructor `zip.__new__` is incorrect: Expected `Iterable[Hashable]`, found `Unknown | Literal[False] | list[Hashable]`

Full report with detailed diff (timing results)

Copy link
Copy Markdown
Member

@charliermarsh charliermarsh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codex suggests the new diagnostics are a mix of a few true positives along with false positives from existing issues made visible by the change (namely, by no longer resolving to Unknown un various cases).

@carljm carljm merged commit 4445998 into main Apr 25, 2026
56 checks passed
@carljm carljm deleted the cjm/union-solve branch April 25, 2026 17:55
carljm added a commit to tamird/ruff that referenced this pull request Apr 27, 2026
* main: (248 commits)
  [ty] bump conformance suite commit (astral-sh#24848)
  [ty] Pass unmapped type variables to `SpecializationBuilder::build_with` (astral-sh#24809)
  [ty] Avoid bookkeeping for unannotated functions (astral-sh#24842)
  [ty] Optimize signature checking based on number of arguments (astral-sh#24674)
  [ty] Avoid eagerly inferring legacy generic context (astral-sh#24841)
  [ty] Skip decorator inference for undecorated functions (astral-sh#24839)
  [ty] solve unions against generic protocols (astral-sh#24837)
  [ty] Lazily allocate parameter type builders (astral-sh#24838)
  [ty] Lazily compute call argument fallbacks (astral-sh#24836)
  [ty] Avoid collecting type context callables (astral-sh#24835)
  Bump ecosystem-analyzer to e7576e6 (astral-sh#24834)
  [ty] Support basic narrowing with aliased conditional expressions (astral-sh#24302)
  [ty] Fix project and workspace selection (astral-sh#24824)
  [ty] Fix missing memory usage attributes (astral-sh#24823)
  Fix setting selection for multi folder workspace (astral-sh#24819)
  Improve diagnostics for implicit calls to a possibly unbound unary operator. (astral-sh#24816)
  [ty] Update review pool (astral-sh#24818)
  Bump 0.15.12 (astral-sh#24815)
  [ty] Complete support for more detailed diagnostics on possibly unbound errors from implicit dunder calls against unions. (astral-sh#24676)
  Implement `#ruff:file-ignore` file-level suppressions (astral-sh#23599)
  ...
carljm added a commit that referenced this pull request Apr 27, 2026
* main: (44 commits)
  Update cargo-bins/cargo-binstall action to v1.18.1 (#24855)
  Update dependency ruff to v0.15.12 (#24857)
  Update taiki-e/install-action action to v2.75.18 (#24864)
  [ty] Model bool-op branch snapshots (#24458)
  [ty] Support `Unpack[TypedDict]` in `**kwargs` signatures (#24653)
  Update prek dependencies (#24858)
  Update Rust crate bitflags to v2.11.1 (#24859)
  Update Rust crate clap to v4.6.1 (#24860)
  Update Rust crate mimalloc to v0.1.49 (#24862)
  Update Rust crate uuid to v1.23.1 (#24863)
  Update Rust crate rayon to v1.12.0 (#24866)
  Update Rust crate libc to v0.2.185 (#24861)
  [ty] Reserve union element storage (#24849)
  [ty] bump conformance suite commit (#24848)
  [ty] Pass unmapped type variables to `SpecializationBuilder::build_with` (#24809)
  [ty] Avoid bookkeeping for unannotated functions (#24842)
  [ty] Optimize signature checking based on number of arguments (#24674)
  [ty] Avoid eagerly inferring legacy generic context (#24841)
  [ty] Skip decorator inference for undecorated functions (#24839)
  [ty] solve unions against generic protocols (#24837)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ty Multi-file analysis & type inference

Projects

None yet

Development

Successfully merging this pull request may close these issues.

abs(float) reveals Unknown for function parameters but int | float at module scope

2 participants