Skip to content

[ty] Experiment: Relaxed isinstance narrowing#26361

Draft
sharkdp wants to merge 5 commits into
mainfrom
david/isinstance-relaxed
Draft

[ty] Experiment: Relaxed isinstance narrowing#26361
sharkdp wants to merge 5 commits into
mainfrom
david/isinstance-relaxed

Conversation

@sharkdp

@sharkdp sharkdp commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Summary

Test Plan

@sharkdp sharkdp added the ty Multi-file analysis & type inference label Jun 25, 2026
@astral-sh-bot

astral-sh-bot Bot commented Jun 25, 2026

Copy link
Copy Markdown

Typing conformance results

No changes detected ✅

Current numbers
The percentage of diagnostics emitted that were expected errors held steady at 94.47%. The percentage of expected errors that received a diagnostic held steady at 89.19%. The number of fully passing files held steady at 95/134.

@astral-sh-bot

astral-sh-bot Bot commented Jun 25, 2026

Copy link
Copy Markdown

Memory usage report

Summary

Project Old New Diff Outcome
prefect 448.05MB 448.18MB +0.03% (131.88kB)
trio 70.26MB 70.26MB +0.01% (4.37kB)
flake8 28.94MB 28.94MB -0.01% (2.66kB) ⬇️
sphinx 166.58MB 166.54MB -0.03% (44.21kB) ⬇️

Significant changes

Click to expand detailed breakdown

prefect

Name Old New Diff Outcome
is_redundant_with_impl::interned_arguments 2.35MB 2.38MB +1.09% (26.30kB)
infer_expression_types_impl 37.77MB 37.79MB +0.05% (18.23kB)
all_narrowing_constraints_for_expression 5.19MB 5.20MB +0.34% (18.20kB)
is_redundant_with_impl 1.31MB 1.33MB +1.24% (16.71kB)
IntersectionType 984.23kB 1000.09kB +1.61% (15.87kB)
member_lookup_with_policy_inner 10.21MB 10.22MB +0.09% (9.45kB)
check_file_impl 17.64MB 17.65MB +0.05% (9.38kB)
UnionType 1.07MB 1.08MB +0.77% (8.45kB)
Type<'db>::apply_specialization_inner_::interned_arguments 2.95MB 2.94MB -0.26% (7.89kB)
infer_scope_types_impl 30.11MB 30.12MB +0.03% (7.78kB)
member_lookup_with_policy_inner::interned_arguments 6.73MB 6.74MB +0.09% (6.21kB)
CallableType 2.87MB 2.86MB -0.17% (4.98kB)
FunctionType 4.59MB 4.58MB -0.09% (4.45kB)
when_constraint_set_assignable_to_owned_impl 2.05MB 2.05MB +0.21% (4.42kB)
Type<'db>::apply_specialization_inner_ 2.03MB 2.03MB -0.19% (3.94kB)
... 56 more

trio

Name Old New Diff Outcome
all_narrowing_constraints_for_expression 457.70kB 459.42kB +0.38% (1.72kB)
when_constraint_set_assignable_to_owned_impl 269.52kB 270.48kB +0.36% (984.00B)
member_lookup_with_policy_inner::interned_arguments 765.70kB 766.52kB +0.11% (840.00B)
check_file_impl 1.57MB 1.57MB -0.05% (801.00B)
member_lookup_with_policy_inner 1.03MB 1.03MB +0.07% (720.00B)
StaticClassLiteral<'db>::try_mro_ 527.12kB 526.41kB -0.13% (720.00B)
Specialization 461.33kB 460.66kB -0.15% (688.00B)
infer_expression_types_impl 4.37MB 4.37MB +0.01% (648.00B)
infer_definition_types 3.96MB 3.97MB +0.01% (568.00B)
Type<'db>::apply_specialization_inner_::interned_arguments 507.73kB 507.19kB -0.11% (560.00B)
InferableTypeVarsInner 70.59kB 71.08kB +0.70% (504.00B)
Type<'db>::apply_specialization_inner_ 349.82kB 349.44kB -0.11% (392.00B)
GenericAlias 190.41kB 190.05kB -0.18% (360.00B)
FunctionType 738.11kB 738.42kB +0.04% (320.00B)
GenericContext 131.27kB 131.55kB +0.21% (288.00B)
... 32 more

flake8

Name Old New Diff Outcome
Type<'db>::apply_specialization_inner_::interned_arguments 175.47kB 175.00kB -0.27% (480.00B) ⬇️
when_constraint_set_assignable_to_owned_impl 101.37kB 101.02kB -0.35% (360.00B) ⬇️
Type<'db>::apply_specialization_inner_ 119.18kB 118.90kB -0.24% (288.00B) ⬇️
StaticClassLiteral<'db>::try_mro_ 215.98kB 215.71kB -0.12% (272.00B) ⬇️
Type<'db>::class_member_with_policy_ 235.86kB 235.62kB -0.10% (248.00B) ⬇️
member_lookup_with_policy_inner::interned_arguments 206.13kB 205.90kB -0.11% (240.00B) ⬇️
Specialization 176.09kB 175.88kB -0.12% (224.00B) ⬇️
Type<'db>::class_member_with_policy_::interned_arguments 169.61kB 169.41kB -0.12% (208.00B) ⬇️
member_lookup_with_policy_inner 291.96kB 291.79kB -0.06% (176.00B) ⬇️
when_constraint_set_assignable_to_owned_impl::interned_arguments 28.88kB 28.70kB -0.60% (176.00B) ⬇️
is_possibly_constraint_set_assignable::interned_arguments 19.08kB 18.91kB -0.90% (176.00B) ⬇️
all_narrowing_constraints_for_expression 71.97kB 72.09kB +0.16% (120.00B) ⬇️
UnionType 57.66kB 57.77kB +0.19% (112.00B) ⬇️
UnionType<'db>::from_two_elements_::interned_arguments 10.23kB 10.31kB +0.84% (88.00B) ⬇️
is_possibly_constraint_set_assignable 10.35kB 10.27kB -0.83% (88.00B) ⬇️
... 9 more

sphinx

Name Old New Diff Outcome
Type<'db>::apply_specialization_inner_::interned_arguments 1.54MB 1.53MB -0.46% (7.27kB) ⬇️
all_narrowing_constraints_for_expression 1.93MB 1.93MB +0.27% (5.31kB) ⬇️
FunctionType 1.78MB 1.77MB -0.29% (5.23kB) ⬇️
Type<'db>::apply_specialization_inner_ 1.03MB 1.03MB -0.46% (4.89kB) ⬇️
when_constraint_set_assignable_to_owned_impl 980.04kB 976.48kB -0.36% (3.56kB) ⬇️
member_lookup_with_policy_inner 4.28MB 4.28MB -0.07% (3.28kB) ⬇️
check_file_impl 4.44MB 4.44MB -0.07% (3.12kB) ⬇️
Type<'db>::class_member_with_policy_ 3.60MB 3.59MB -0.08% (3.02kB) ⬇️
Specialization 1.41MB 1.41MB -0.21% (3.00kB) ⬇️
member_lookup_with_policy_inner::interned_arguments 2.70MB 2.70MB -0.10% (2.81kB) ⬇️
Type<'db>::class_member_with_policy_::interned_arguments 2.36MB 2.36MB -0.10% (2.34kB) ⬇️
CallableType 1.44MB 1.44MB -0.13% (1.94kB) ⬇️
BoundMethodType 771.17kB 769.53kB -0.21% (1.64kB) ⬇️
FunctionType<'db>::signature_ 1.61MB 1.61MB -0.09% (1.52kB) ⬇️
when_constraint_set_assignable_to_owned_impl::interned_arguments 289.44kB 287.98kB -0.50% (1.46kB) ⬇️
... 39 more

@astral-sh-bot

astral-sh-bot Bot commented Jun 25, 2026

Copy link
Copy Markdown

ecosystem-analyzer results

Lint rule Added Removed Changed
invalid-argument-type 149 989 144
unresolved-attribute 139 142 103
invalid-assignment 58 221 57
invalid-return-type 53 117 39
no-matching-overload 47 100 0
call-top-callable 129 1 0
invalid-await 110 3 2
unsupported-operator 20 43 6
invalid-key 0 62 0
not-subscriptable 8 49 3
call-non-callable 18 23 1
not-iterable 14 18 8
invalid-yield 2 15 1
index-out-of-bounds 0 14 0
redundant-cast 2 10 0
unused-type-ignore-comment 5 5 0
unused-ignore-comment 8 0 0
invalid-type-form 0 2 2
invalid-raise 0 2 0
possibly-unresolved-reference 0 2 0
unknown-argument 2 0 0
deprecated 1 0 0
too-many-positional-arguments 1 0 0
type-assertion-failure 0 0 1
Total 766 1,818 367

Large timing changes:

Project Old Time New Time Change
static-frame 0.75s 1.38s +83%

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

Showing a random sample of 218 of 2951 changes. See the HTML report for the full diff.

Raw diff sample (218 of 2951 changes)
Expression (https://github.com/cognitedata/Expression)
- expression/collections/maptree.py:121:51 error[invalid-argument-type] Argument to function `mk` is incorrect: Argument type `object` does not satisfy upper bound `SupportsLessThan` of type variable `Key`

PyGithub (https://github.com/PyGithub/PyGithub)
- github/RepositoryAdvisory.py:285:92 error[invalid-argument-type] Argument to bound method `AdvisoryVulnerability._validate_vulnerability` is incorrect: Expected `SimpleAdvisoryVulnerability | AdvisoryVulnerability`, found `object`
- github/AdvisoryCredit.py:101:53 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[dict[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["type"]` on object of type `Top[dict[Unknown, Unknown]]`
- github/AdvisoryVulnerability.py:136:31 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[dict[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["patched_versions"]` on object of type `Top[dict[Unknown, Unknown]]`
+ github/AdvisoryVulnerability.py:150:17 error[unresolved-attribute] Attribute `package` is not defined on `SimpleAdvisoryVulnerability & dict[Unknown, Unknown] & ~dict[Unknown, Unknown]` in union `(SimpleAdvisoryVulnerability & dict[Unknown, Unknown] & ~dict[Unknown, Unknown]) | (AdvisoryVulnerability & dict[Unknown, Unknown] & ~dict[Unknown, Unknown]) | (Self@_validate_vulnerability & ~dict[Unknown, Unknown])`
- github/AdvisoryVulnerability.py:173:33 error[unresolved-attribute] Attribute `patched_versions` is not defined on `SimpleAdvisoryVulnerability & ~Top[dict[Unknown, Unknown]]` in union `(SimpleAdvisoryVulnerability & ~Top[dict[Unknown, Unknown]]) | (AdvisoryVulnerability & ~Top[dict[Unknown, Unknown]])`
+ github/AdvisoryVulnerability.py:173:33 error[unresolved-attribute] Attribute `patched_versions` is not defined on `SimpleAdvisoryVulnerability & ~dict[Unknown, Unknown]` in union `(SimpleAdvisoryVulnerability & ~dict[Unknown, Unknown]) | (AdvisoryVulnerability & ~dict[Unknown, Unknown])`

Tanjun (https://github.com/FasterSpeeding/Tanjun)
+ tanjun/commands/message.py:114:16 error[invalid-return-type] Return type does not match returned value: expected `MessageCommand[_MessageCallbackSigT@decorator]`, found `MessageCommand[_MessageCallbackSigT@MessageCommand]`

alerta (https://github.com/alerta/alerta)
+ alerta/models/heartbeat.py:149:48 error[invalid-return-type] Function can implicitly return `None`, which is not assignable to return type `Heartbeat`

altair (https://github.com/vega/altair)
+ altair/vegalite/v6/api.py:2767:63 warning[unused-ignore-comment] Unused blanket `ty: ignore` directive

antidote (https://github.com/Finistere/antidote)
- src/antidote/core/_injection.py:302:42 error[unresolved-attribute] Object of type `((...) -> object) & ~Top[staticmethod[(...), object]] & ~Top[classmethod[Unknown, (...), object]] & ~MethodType` has no attribute `__name__`
+ src/antidote/core/_injection.py:302:42 error[unresolved-attribute] Attribute `__name__` is not defined on `((...) -> object) & ~staticmethod[(...), Unknown] & ~classmethod[Unknown, (...), Unknown] & ~MethodType` in union `(((...) -> object) & ~staticmethod[(...), Unknown] & ~classmethod[Unknown, (...), Unknown] & ~MethodType) | (classmethod[Unknown, (...), Unknown] & ~classmethod[Unknown, (...), Unknown])`

artigraph (https://github.com/artigraph/artigraph)
- src/arti/internal/type_hints.py:161:41 error[invalid-type-form] Variable of type `type` is not allowed in a type expression
+ src/arti/internal/type_hints.py:161:41 error[invalid-type-form] Variable of type `type[Unknown]` is not allowed in a type expression

beartype (https://github.com/beartype/beartype)
- beartype/_check/convert/_reduce/_pep/pep646/redpep484612646typearg.py:1117:59 error[invalid-type-form] Variable of type `HintPep646692UnpackedType` is not allowed in a type expression

bokeh (https://github.com/bokeh/bokeh)
- src/bokeh/util/datatypes.py:70:13 warning[redundant-cast] Value is already of type `set[V@MultiValuedDict]`
+ src/bokeh/core/property/wrappers.py:565:42 error[not-subscriptable] Cannot subscript object of type `slice[Any, Any, Any]` with no `__getitem__` method
- src/bokeh/plotting/_plot.py:93:32 error[invalid-argument-type] Argument to `Range1d.__init__` is incorrect: Expected `Value`, found `int | float | (Unknown & ~None) | str | IntrinsicType`
+ src/bokeh/plotting/_plot.py:93:32 error[invalid-argument-type] Argument to `Range1d.__init__` is incorrect: Expected `Value`, found `(Unknown & ~None) | IntrinsicType`

cloud-init (https://github.com/canonical/cloud-init)
- cloudinit/distros/alpine.py:190:19 error[invalid-argument-type] Argument to function `subp` is incorrect: Expected `str | bytes | list[str] | list[bytes]`, found `list[object]`

core (https://github.com/home-assistant/core)
+ homeassistant/components/isy994/sensor.py:284:50 error[invalid-argument-type] Argument to function `convert_isy_value_to_hass` is incorrect: Expected `str | None`, found `(dict[Unknown, Unknown] & ~dict[Unknown, Unknown]) | (str & ~Literal["25"] & ~Literal["2"]) | None`
- homeassistant/components/nibe_heatpump/coordinator.py:42:17 error[invalid-argument-type] Method `__getitem__` of type `bound method defaultdict[_ContextTypeT@ContextCoordinator, list[CALLBACK_TYPE]].__getitem__(key: _ContextTypeT@ContextCoordinator, /) -> list[CALLBACK_TYPE]` cannot be called with key of type `object` on object of type `defaultdict[_ContextTypeT@ContextCoordinator, list[CALLBACK_TYPE]]`
- homeassistant/components/onvif/device.py:440:17 error[unresolved-attribute] Object of type `object` has no attribute `Name`
- homeassistant/components/ring/binary_sensor.py:170:9 error[invalid-assignment] Cannot assign to a subscript on an object of type `Mapping[str, Any]`
- homeassistant/helpers/redact.py:61:33 error[call-non-callable] Object of type `object` is not callable
- homeassistant/helpers/schema_config_entry_flow.py:168:20 error[invalid-return-type] Return type does not match returned value: expected `Container[str]`, found `Container[str] | (((SchemaCommonFlowHandler, /) -> Coroutine[Any, Any, Container[str]]) & Container[Never])`
- homeassistant/helpers/selector.py:1713:25 error[call-non-callable] Object of type `Selector[Unknown] | (dict[str, Any] & Top[Selector[Unknown]])` is not callable
+ homeassistant/helpers/selector.py:1713:25 error[call-non-callable] Object of type `Selector[Unknown]` is not callable

cwltool (https://github.com/common-workflow-language/cwltool)
- cwltool/builder.py:282:21 error[invalid-argument-type] Argument to bound method `Builder.bind_input` is incorrect: Expected `MutableMapping[str, int | str | float | ... omitted 5 union elements]`, found `(int & Top[MutableMapping[Unknown, Unknown]] & ~Top[MutableSequence[Unknown]]) | (str & Top[MutableMapping[Unknown, Unknown]] & ~Top[MutableSequence[Unknown]]) | (float & Top[MutableMapping[Unknown, Unknown]] & ~Top[MutableSequence[Unknown]]) | ... omitted 3 union elements`
- cwltool/checker.py:115:39 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[MutableMapping[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["type"]` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- cwltool/checker.py:115:39 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[MutableMapping[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["type"]` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- cwltool/checker.py:115:39 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[MutableMapping[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["type"]` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- cwltool/checker.py:117:61 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[MutableMapping[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["items"]` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- cwltool/checker.py:121:12 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[MutableMapping[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["type"]` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- cwltool/checker.py:121:40 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[MutableMapping[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["type"]` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- cwltool/checker.py:133:39 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[MutableMapping[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["type"]` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- cwltool/checker.py:133:43 error[invalid-key] Unknown key "type" for TypedDict `CWLDirectoryType` (subscripted object has type `(int & Top[MutableMapping[Unknown, Unknown]]) | (str & Top[MutableMapping[Unknown, Unknown]]) | (float & Top[MutableMapping[Unknown, Unknown]]) | ... omitted 5 union elements`)
- cwltool/command_line_tool.py:465:20 warning[redundant-cast] Value is already of type `str`
- cwltool/command_line_tool.py:605:33 error[invalid-assignment] Invalid subscript assignment with key of type `Literal["writable"]` and value of type `object` on object of type `MutableMapping[str, int | str | float | ... omitted 5 union elements]`
- cwltool/load_tool.py:178:33 error[invalid-assignment] Invalid subscript assignment with key of type `Literal["stdout", "stderr"]` and value of type `str` on object of type `MutableSequence[MutableMapping[str, int | str | float | ... omitted 5 union elements] | str | int]`
- cwltool/load_tool.py:233:13 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[MutableMapping[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["run"]` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- cwltool/load_tool.py:337: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 `str` on object of type `MutableSequence[Any]`
- cwltool/load_tool.py:337:27 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[MutableMapping[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `str` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- cwltool/pack.py:32:26 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[MutableMapping[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["run"]` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- cwltool/pack.py:94:39 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[MutableMapping[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["id"]` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- cwltool/pack.py:94:39 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `Literal["id"]` on object of type `str`
- cwltool/pack.py:98:25 error[invalid-assignment] Cannot assign to a subscript on an object of type `float`
- cwltool/workflow_job.py:357:36 error[invalid-argument-type] Argument to bound method `list.extend` is incorrect: Expected `Iterable[int | str | float | ... omitted 5 union elements]`, found `(int & Top[MutableSequence[Unknown]]) | (str & Top[MutableSequence[Unknown]]) | (float & Top[MutableSequence[Unknown]]) | MutableSequence[Divergent] | (MutableMapping[str, Divergent] & Top[MutableSequence[Unknown]])`
- tests/test_examples.py:349:12 error[not-subscriptable] Cannot subscript object of type `None` with no `__getitem__` method

dd-trace-py (https://github.com/DataDog/dd-trace-py)
- ddtrace/appsec/_asm_request_context.py:303:32 error[invalid-argument-type] Argument to `Block_config.__init__` is incorrect: Expected `str`, found `Any | str | int | None`
- ddtrace/appsec/ai_guard/_api_client.py:176:44 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `slice[None, EnvVariable[int], None]` on object of type `str`

discord.py (https://github.com/Rapptz/discord.py)
- discord/ext/commands/core.py:2632:32 error[invalid-argument-type] Argument to bound method `Command.before_invoke` is incorrect: Expected `((object, Unknown, /) -> Coroutine[Any, Any, Any]) | ((Unknown, /) -> Coroutine[Any, Any, Any])`, found `((CogT@before_invoke, ContextT@before_invoke, /) -> Coroutine[Any, Any, Any]) | ((ContextT@before_invoke, /) -> Coroutine[Any, Any, Any])`
- discord/ext/commands/core.py:1944:13 error[unresolved-attribute] Object of type `((...) -> Coroutine[Any, Any, Any]) & ~Top[Command[Unknown, (...), Unknown]]` has no attribute `__commands_checks__`
+ discord/ext/commands/core.py:1944:13 error[unresolved-attribute] Object of type `((...) -> Coroutine[Any, Any, Any]) & ~Command[Unknown, (...), Unknown]` has no attribute `__commands_checks__`
- discord/ui/view.py:273:30 error[unresolved-attribute] Object of type `((Any, Interaction[Any], Any, /) -> Coroutine[Any, Any, Any]) & ~Item[object]` has no attribute `__discord_ui_model_type__`
+ discord/ui/view.py:273:30 error[unresolved-attribute] Object of type `(((Any, Interaction[Any], Any, /) -> Coroutine[Any, Any, Any]) & ~Item[Unknown]) | (Item[Any] & ~Item[Unknown])` has no attribute `__discord_ui_model_type__`
- 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/porcelain/__init__.py:1667:25 error[invalid-argument-type] Argument to constructor `Path.__new__` is incorrect: Expected `str | PathLike[str]`, found `str | (PathLike[str] & ~bytes) | int`

graphql-core (https://github.com/graphql-python/graphql-core)
- src/graphql/execution/incremental_graph.py:316:16 error[unresolved-attribute] Object of type `object` has no attribute `item`
- src/graphql/execution/execute.py:2598:38 error[invalid-argument-type] Argument to `ExecutionResult.__init__` is incorrect: Expected `list[GraphQLError] | None`, found `list[GraphQLError] | (Executor & Top[list[Unknown]])`
- src/graphql/execution/execute.py:2946:38 error[invalid-argument-type] Argument to `ExecutionResult.__init__` is incorrect: Expected `list[GraphQLError] | None`, found `list[GraphQLError] | (Executor & Top[list[Unknown]])`
+ src/graphql/validation/rules/overlapping_fields_can_be_merged.py:53:12 error[invalid-return-type] Return type does not match returned value: expected `str`, found `str | (list[tuple[str, Divergent]] & ~list[Unknown])`
- tests/execution/test_subscribe.py:184:31 error[invalid-argument-type] Argument to `ExecutionResult.__init__` is incorrect: Expected `list[GraphQLError] | None`, found `list[GraphQLError] | (Executor & Top[list[Unknown]])`

hydpy (https://github.com/hydpy-dev/hydpy)
- hydpy/core/parametertools.py:1008:20 error[unsupported-operator] Operator `not in` is not supported between objects of type `tuple[str, T_inv@KeywordArguments]` and `Top[KeywordArguments[Unknown]]`

ibis (https://github.com/ibis-project/ibis)
- ibis/expr/types/arrays.py:149:39 error[invalid-argument-type] Argument is incorrect: Expected `Value[Integer, Any]`, found `int | IntegerValue`
+ ibis/expr/types/arrays.py:149:39 error[invalid-argument-type] Argument is incorrect: Expected `Value[Integer, Any]`, found `int | IntegerValue | (slice[Any, Any, Any] & ~slice[Any, Any, Any])`
- ibis/expr/types/relations.py:3223:28 error[unresolved-attribute] Object of type `Expr` has no attribute `type`
+ ibis/legacy/udf/vectorized.py:98:16 error[invalid-return-type] Return type does not match returned value: expected `Series[Any]`, found `(list[Unknown] & ~list[Unknown] & ~ndarray[tuple[Any, ...], dtype[Any]] & ~Series[Any]) | (ndarray[tuple[Any, ...], dtype[Any]] & ~list[Unknown] & ~ndarray[tuple[Any, ...], dtype[Any]] & ~Series[Any]) | (Series[Any] & ~list[Unknown] & ~ndarray[tuple[Any, ...], dtype[Any]] & ~Series[Any])`
- ibis/util.py:137:16 error[invalid-return-type] Return type does not match returned value: expected `tuple[V@promote_tuple]`, found `tuple[(V@promote_tuple & ~tuple[object, ...] & ~None) | (Iterable[V@promote_tuple] & ~tuple[object, ...])]`
+ ibis/util.py:137:16 error[invalid-return-type] Return type does not match returned value: expected `tuple[V@promote_tuple]`, found `tuple[(V@promote_tuple & ~tuple[Unknown, ...] & ~None) | (Iterable[V@promote_tuple] & ~tuple[Unknown, ...])]`

ignite (https://github.com/pytorch/ignite)
- 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]`

jax (https://github.com/google/jax)
- jax/_src/numpy/reductions.py:177:31 error[not-iterable] Object of type `tuple[(int & ~ndarray[tuple[object, ...], dtype[object]]) | (Sequence[int] & ~ndarray[tuple[object, ...], dtype[object]] & ~tuple[object, ...] & ~Top[list[Unknown]])] | (int & ndarray[tuple[object, ...], dtype[object]]) | (Sequence[int] & ndarray[tuple[object, ...], dtype[object]]) | (Sequence[int] & tuple[object, ...]) | (Sequence[int] & Top[list[Unknown]])` may not be iterable
- jax/_src/numpy/reductions.py:801:7 error[invalid-assignment] Object of type `object` is not assignable to `Array | ndarray[tuple[Any, ...], dtype[Any]] | numpy.bool[builtins.bool] | ... omitted 4 union elements`
+ jax/_src/lax/slicing.py:3408:8 error[unresolved-attribute] Attribute `ndim` is not defined on `Sequence[Array | ndarray[tuple[Any, ...], dtype[Any]] | numpy.bool[builtins.bool] | ... omitted 4 union elements] & ~Sequence[Unknown]` in union `(Array & ~Sequence[Unknown]) | (ndarray[tuple[Any, ...], dtype[Any]] & ~Sequence[Unknown]) | (Sequence[Array | ndarray[tuple[Any, ...], dtype[Any]] | numpy.bool[builtins.bool] | ... omitted 4 union elements] & ~Sequence[Unknown])`
+ jax/_src/numpy/index_tricks.py:87:86 error[not-iterable] Object of type `(slice[Any, Any, Any] & ~slice[Any, Any, Any]) | tuple[slice[Any, Any, Any], ...]` may not be iterable
- jax/_src/numpy/indexing.py:353:37 error[unsupported-operator] Operator `<` is not supported between objects of type `Array | (int & ndarray[tuple[object, ...], dtype[object]]) | (integer[Any] & ndarray[tuple[object, ...], dtype[object]]) | (Sequence[int | integer[Any]] & ndarray[tuple[object, ...], dtype[object]]) | ndarray[tuple[Any, ...], dtype[Any]]` and `Literal[0]`
- jax/_src/random/core.py:317:33 error[invalid-argument-type] Argument to function `random_split` is incorrect: Expected `tuple[int, ...]`, found `tuple[object, ...]`
+ jax/_src/random/core.py:317:33 error[invalid-argument-type] Argument to function `random_split` is incorrect: Expected `tuple[int, ...]`, found `tuple[Unknown, ...] | tuple[(int & ~Sequence[Unknown]) | (tuple[int, ...] & ~Sequence[Unknown])]`

koda-validate (https://github.com/keithasaurus/koda-validate)
- koda_validate/serialization/json_schema.py:334:17 error[invalid-return-type] Return type does not match returned value: expected `dict[str, None | int | str | ... omitted 4 union elements]`, found `dict[str, object]`
- koda_validate/serialization/json_schema.py:349:20 error[unresolved-attribute] Object of type `object` has no attribute `isoformat`
- koda_validate/serialization/json_schema.py:362:17 error[invalid-return-type] Return type does not match returned value: expected `dict[str, None | int | str | ... omitted 4 union elements]`, found `dict[str, object]`

meson (https://github.com/mesonbuild/meson)
- mesonbuild/interpreter/interpreter.py:2890:13 error[unresolved-attribute] Unresolved attribute `used` on type `HoldableObject`
- mesonbuild/interpreterbase/helpers.py:62:59 error[invalid-argument-type] Argument to function `stringifyUserArguments` is incorrect: Expected `Sequence[Divergent] | int | dict[str, Divergent] | ... omitted 5 union elements`, found `object`
- mesonbuild/modules/__init__.py:282:79 error[invalid-assignment] Object of type `Sequence[Sequence[Divergent] | int | dict[str, Divergent] | ... omitted 7 union elements] & Top[list[Unknown]]` is not assignable to `list[Sequence[Divergent] | int | dict[str, Divergent] | ... omitted 7 union elements]`: Incompatible value of type `Sequence[Sequence[Divergent] | int | dict[str, Divergent] | ... omitted 7 union elements] & Top[list[Unknown]]`
- mesonbuild/modules/cmake.py:414:9 error[unresolved-attribute] Unresolved attribute `used` on type `HoldableObject`

mkdocs (https://github.com/mkdocs/mkdocs)
- mkdocs/config/config_options.py:834:49 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[dict[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["name"]` on object of type `Top[dict[Unknown, Unknown]]`
- mkdocs/config/config_options.py:851:26 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[dict[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["custom_dir"]` on object of type `Top[dict[Unknown, Unknown]]`
- mkdocs/config/config_options.py:858:28 error[invalid-argument-type] Argument expression after ** must be a mapping with `str` key type: Found `object`
- mkdocs/config/config_options.py:1034:16 error[invalid-return-type] Return type does not match returned value: expected `list[str]`, found `list[object]`

mypy (https://github.com/python/mypy)
- mypy/strconv.py:688:35 error[invalid-argument-type] Argument to function `dump_tagged` is incorrect: Expected `str | None`, found `object`

packaging (https://github.com/pypa/packaging)
- src/packaging/markers.py:436:27 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[dict[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["_markers"]` on object of type `Top[dict[Unknown, Unknown]]`
+ src/packaging/markers.py:211:16 error[invalid-return-type] Return type does not match returned value: expected `str`, found `(list[str] & Any & ~Bottom[list[Unknown]]) | (Sequence[Divergent] & list[Unknown] & ~list[Unknown]) | (tuple[Variable | Value, Op, Variable | Value] & tuple[Unknown, ...] & Any) | (Sequence[Divergent] & tuple[Unknown, ...] & ~tuple[Unknown, ...]) | str`
- src/packaging/tags.py:156:16 error[invalid-return-type] Return type does not match returned value: expected `str`, found `object`
- src/packaging/tags.py:163:16 error[invalid-return-type] Return type does not match returned value: expected `str`, found `object`
- src/packaging/tags.py:202:27 error[not-subscriptable] Cannot subscript object of type `object` with no `__getitem__` method

pandas (https://github.com/pandas-dev/pandas)
- pandas/core/ops/mask_ops.py:59:18 error[unsupported-operator] Operator `|` is not supported between objects of type `ndarray[tuple[Any, ...], dtype[Any]] | (NAType & ndarray[tuple[object, ...], dtype[object]])` and `bool | ndarray[tuple[Any, ...], dtype[Any]] | NAType`
+ pandas/core/algorithms.py:555:16 error[unresolved-attribute] Attribute `isin` is not defined on `ndarray[tuple[Any, ...], dtype[Any]] & ~ndarray[tuple[Any, ...], dtype[Any]]` in union `(ExtensionArray & ~ndarray[tuple[Any, ...], dtype[Any]]) | (ndarray[tuple[Any, ...], dtype[Any]] & ~ndarray[tuple[Any, ...], dtype[Any]])`
- pandas/core/arrays/interval.py:731:27 error[unresolved-attribute] Object of type `ExtensionArray & ~Top[Interval[Unknown]]` has no attribute `categories`
+ pandas/core/arrays/interval.py:731:27 error[unresolved-attribute] Attribute `categories` is not defined on `ExtensionArray & ~Interval[Unknown]` in union `(Unknown & Interval[Unknown] & ~Interval[Unknown]) | (ExtensionArray & ~Interval[Unknown])`
- pandas/core/arrays/interval.py:739:21 error[unresolved-attribute] Object of type `ExtensionArray & ~Top[Interval[Unknown]]` has no attribute `codes`
+ pandas/core/arrays/interval.py:739:21 error[unresolved-attribute] Attribute `codes` is not defined on `ExtensionArray & ~Interval[Unknown]` in union `(Unknown & Interval[Unknown] & ~Interval[Unknown]) | (ExtensionArray & ~Interval[Unknown])`
+ pandas/core/arrays/masked.py:1102:14 error[unresolved-attribute] Attribute `dtype` is not defined on `tuple[ndarray[tuple[Any, ...], dtype[Any]], ndarray[tuple[Any, ...], dtype[Any]]] & ~tuple[Unknown, ...]` in union `(ndarray[tuple[Any, ...], dtype[Any]] & ~tuple[Unknown, ...]) | (tuple[ndarray[tuple[Any, ...], dtype[Any]], ndarray[tuple[Any, ...], dtype[Any]]] & ~tuple[Unknown, ...])`
+ pandas/core/arrays/masked.py:2031:20 error[invalid-return-type] Return type does not match returned value: expected `numpy.bool[builtins.bool] | NAType`, found `(numpy.bool[builtins.bool] & ~ndarray[tuple[Any, ...], dtype[Any]]) | (ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]] & ~ndarray[tuple[Any, ...], dtype[Any]])`
- pandas/core/construction.py:681:47 error[unresolved-attribute] Attribute `storage` is not defined on `dtype[object]` in union `Unknown | dtype[object] | StringDtype`
+ pandas/core/construction.py:681:47 error[unresolved-attribute] Object of type `dtype[Any] | ExtensionDtype` has no attribute `storage`
- pandas/core/groupby/grouper.py:557:50 error[invalid-argument-type] Argument to function `recode_for_groupby` is incorrect: Expected `Categorical`, found `(Unknown & Series & ~Grouper & ~ndarray[tuple[object, ...], dtype[object]]) | (Index & ~ndarray[tuple[object, ...], dtype[object]]) | (Unknown & ExtensionArray & ~Grouper & ~ndarray[tuple[object, ...], dtype[object]]) | (Unknown & BinGrouper & ~ndarray[tuple[object, ...], dtype[object]])`
+ pandas/core/groupby/grouper.py:557:50 error[invalid-argument-type] Argument to function `recode_for_groupby` is incorrect: Expected `Categorical`, found `(Unknown & Series & ~Grouper & ~ndarray[tuple[Any, ...], dtype[Any]]) | (Unknown & Index & ~Grouper & ~ndarray[tuple[Any, ...], dtype[Any]]) | (Unknown & ExtensionArray & ~Grouper & ~ndarray[tuple[Any, ...], dtype[Any]]) | ... omitted 3 union elements`
- pandas/core/groupby/grouper.py:646:46 error[unresolved-attribute] Attribute `codes` is not defined on `Index`, `ndarray[tuple[Any, ...], dtype[Any]]` in union `(Unknown & Series) | Index | (Unknown & ExtensionArray) | ... omitted 4 union elements`
+ pandas/core/groupby/grouper.py:646:46 error[unresolved-attribute] Attribute `codes` is not defined on `Index`, `ndarray[tuple[Any, ...], dtype[Any]]` in union `(Unknown & Series) | Index | (Unknown & ExtensionArray) | ... omitted 3 union elements`
- pandas/core/indexes/base.py:7211:47 error[no-matching-overload] No overload of bound method `ndarray.view` matches arguments
- pandas/io/common.py:273:12 error[no-matching-overload] No overload of function `_expand_user` matches arguments
- pandas/io/excel/_base.py:861:20 error[unsupported-operator] Operator `>` is not supported between objects of type `object` and `int`
- pandas/io/excel/_base.py:870:54 error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> Unknown, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[Unknown]]` cannot be called with key of type `object` on object of type `list[Unknown]`
+ pandas/io/parsers/python_parser.py:1312:44 error[invalid-argument-type] Argument to function `next` is incorrect: Expected `SupportsNext[Unknown]`, found `(Iterator[list[str]] & ~list[Unknown]) | (list[list[str | bytes | date | ... omitted 10 union elements]] & ~list[Unknown])`
- pandas/plotting/_matplotlib/core.py:642:56 error[invalid-argument-type] Argument to function `len` is incorrect: Expected `Sized`, found `bool | tuple[Unknown, ...] | ndarray[tuple[Any, ...], dtype[Any]] | list[Unknown]`
+ pandas/plotting/_matplotlib/core.py:642:56 error[invalid-argument-type] Argument to function `len` is incorrect: Expected `Sized`, found `bool | tuple[Unknown, ...] | list[Unknown] | ndarray[tuple[Any, ...], dtype[Any]]`
- pandas/tests/extension/date/array.py:106:25 error[unresolved-attribute] Attribute `astype` is not defined on `date` in union `date | ndarray[tuple[Any, ...], dtype[Any]] | Any`
- pandas/tests/frame/test_ufunc.py:49:31 error[invalid-argument-type] Argument is incorrect: Expected `DataFrame`, found `ndarray[tuple[Any, ...], dtype[Any]]`
+ pandas/tests/frame/test_ufunc.py:49:31 error[invalid-argument-type] Argument is incorrect: Expected `DataFrame`, found `ndarray[tuple[Any, ...], dtype[Any]] | Unknown`

pandera (https://github.com/pandera-dev/pandera)
- pandera/io/_minimal.py:196:38 error[invalid-argument-type] Argument to function `prune_component_dict` is incorrect: Expected `dict[str, Any]`, found `Top[dict[Unknown, Unknown]]`

pip (https://github.com/pypa/pip)
- src/pip/_vendor/packaging/specifiers.py:787:24 error[unresolved-attribute] Object of type `object` has no attribute `get`
- src/pip/_vendor/packaging/specifiers.py:1461:21 error[invalid-assignment] Object of type `tuple[object, ...]` is not assignable to attribute `_specs` of type `tuple[Specifier, ...]`
- src/pip/_vendor/cachecontrol/controller.py:349:12 error[unresolved-attribute] Object of type `~None` has no attribute `status`
- src/pip/_vendor/cachecontrol/controller.py:426:49 error[invalid-argument-type] Argument to bound method `CacheController._cache_set` is incorrect: Expected `HTTPResponse`, found `~None`
- src/pip/_vendor/packaging/version.py:801:21 error[invalid-assignment] Object of type `object` is not assignable to attribute `_pre` of type `tuple[Literal["a", "b", "rc"], int] | None`
- src/pip/_vendor/packaging/version.py:813:29 error[unresolved-attribute] Object of type `~None` has no attribute `pre`
- src/pip/_vendor/requests/utils.py:402:16 error[invalid-return-type] Return type does not match returned value: expected `list[tuple[_KT@to_key_val_list, _VT@to_key_val_list]] | None`, found `list[tuple[object, object]]`

porcupine (https://github.com/Akuli/porcupine)
- porcupine/plugins/filetypes.py:33:70 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[dict[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `object` on object of type `Top[dict[Unknown, Unknown]]`

prefect (https://github.com/PrefectHQ/prefect)
+ src/prefect/_internal/compatibility/async_dispatch.py:94:20 error[call-non-callable] Object of type `classmethod[type[Any], P@async_dispatch, Coroutine[Any, Any, R@async_dispatch]]` is not callable
+ src/integrations/prefect-databricks/prefect_databricks/jobs.py:173:22 error[call-top-callable] Object of type `Top[(...) -> object]` is not safe to call; its signature is not known
+ src/integrations/prefect-databricks/prefect_databricks/jobs.py:273:22 error[invalid-await] `object` is not awaitable
+ src/integrations/prefect-databricks/prefect_databricks/jobs.py:1043:22 error[call-top-callable] Object of type `Top[(...) -> object]` is not safe to call; its signature is not known
+ src/integrations/prefect-databricks/prefect_databricks/jobs.py:1043:22 error[invalid-await] `object` is not awaitable
+ src/integrations/prefect-dbt/prefect_dbt/cli/commands.py:630:18 error[invalid-await] `object` is not awaitable
+ src/integrations/prefect-dbt/tests/cloud/test_jobs.py:236:32 error[call-top-callable] Object of type `Top[(...) -> object]` is not safe to call; its signature is not known
+ src/integrations/prefect-dbt/tests/cloud/test_jobs.py:236:32 error[invalid-await] `object` is not awaitable
+ src/integrations/prefect-dbt/tests/cloud/test_runs.py:42:23 error[invalid-await] `object` is not awaitable
+ src/integrations/prefect-dbt/tests/cloud/test_runs.py:99:30 error[invalid-await] `object` is not awaitable
- src/integrations/prefect-docker/tests/test_images.py:31:16 error[unresolved-attribute] Attribute `id` is not defined on `list[Unknown]` in union `Unknown | list[Unknown]`
+ src/integrations/prefect-docker/tests/test_images.py:16:23 error[call-top-callable] Object of type `Top[(...) -> object]` is not safe to call; its signature is not known
+ src/integrations/prefect-kubernetes/prefect_kubernetes/jobs.py:383:32 error[invalid-await] `object` is not awaitable
+ src/integrations/prefect-kubernetes/tests/test_custom_objects.py:24:15 error[call-top-callable] Object of type `Top[(...) -> object]` is not safe to call; its signature is not known
+ src/integrations/prefect-kubernetes/tests/test_custom_objects.py:33:15 error[call-top-callable] Object of type `Top[(...) -> object]` is not safe to call; its signature is not known
+ src/integrations/prefect-kubernetes/tests/test_custom_objects.py:46:11 error[call-top-callable] Object of type `Top[(...) -> object]` is not safe to call; its signature is not known
+ src/integrations/prefect-kubernetes/tests/test_custom_objects.py:332:11 error[call-top-callable] Object of type `Top[(...) -> object]` is not safe to call; its signature is not known
+ src/integrations/prefect-kubernetes/tests/test_deployments.py:34:11 error[invalid-await] `object` is not awaitable
+ src/integrations/prefect-kubernetes/tests/test_deployments.py:137:11 error[invalid-await] `object` is not awaitable
+ src/integrations/prefect-kubernetes/tests/test_jobs.py:84:11 error[call-top-callable] Object of type `Top[(...) -> object]` is not safe to call; its signature is not known
+ src/integrations/prefect-kubernetes/tests/test_jobs.py:156:11 error[invalid-await] `object` is not awaitable
+ src/integrations/prefect-kubernetes/tests/test_pods.py:21:15 error[call-top-callable] Object of type `Top[(...) -> object]` is not safe to call; its signature is not known
+ src/integrations/prefect-redis/prefect_redis/tasks.py:88:24 error[call-top-callable] Object of type `Top[(...) -> object]` is not safe to call; its signature is not known
+ src/integrations/prefect-redis/tests/test_tasks.py:122:11 error[call-top-callable] Object of type `Top[(...) -> object]` is not safe to call; its signature is not known
+ src/integrations/prefect-redis/tests/test_tasks.py:123:24 error[invalid-await] `object` is not awaitable
- src/prefect/cache_policies.py:311:25 error[unresolved-attribute] Object of type `(...) -> Any` has no attribute `__code__`
+ src/prefect/cache_policies.py:311:25 error[unresolved-attribute] Object of type `((...) -> Any) | (classmethod[Any, (...), Any] & Top[(...) -> object])` has no attribute `__code__`
- src/prefect/deployments/runner.py:780:13 error[invalid-assignment] Object of type `list[TimeToCompletionSla | LatenessSla | FrequencySla | None]` is not assignable to attribute `_sla` of type `TimeToCompletionSla | LatenessSla | FrequencySla | list[TimeToCompletionSla | LatenessSla | FrequencySla] | None`
+ src/prefect/deployments/runner.py:780:13 error[invalid-assignment] Object of type `list[TimeToCompletionSla | LatenessSla | FrequencySla | (list[TimeToCompletionSla | LatenessSla | FrequencySla] & Any) | None]` is not assignable to attribute `_sla` of type `TimeToCompletionSla | LatenessSla | FrequencySla | list[TimeToCompletionSla | LatenessSla | FrequencySla] | None`
+ src/prefect/flows.py:2103:21 error[call-top-callable] Object of type `Top[(...) -> object]` is not safe to call; its signature is not known
- src/prefect/flows.py:1926:27 error[invalid-await] `R@Flow` is not awaitable
+ src/prefect/flows.py:1926:27 error[invalid-await] `object` is not awaitable
- src/prefect/task_engine.py:609:20 error[invalid-return-type] Return type does not match returned value: expected `R@SyncTaskRunEngine | State[Any] | None`, found `(R@SyncTaskRunEngine & ~<class 'NotSet'> & ~Top[ResultRecord[Unknown]]) | (type[NotSet] & ~<class 'NotSet'>)`
+ src/prefect/task_engine.py:609:20 error[invalid-return-type] Return type does not match returned value: expected `R@SyncTaskRunEngine | State[Any] | None`, found `(R@SyncTaskRunEngine & ~<class 'NotSet'> & ~ResultRecord[Unknown]) | (type[NotSet] & ~<class 'NotSet'>)`

psycopg (https://github.com/psycopg/psycopg)
- psycopg/psycopg/crdb/connection.py:36:21 error[unresolved-attribute] Attribute `parameter_status` is not defined on `Connection[Any] & ~Connection[tuple[object, ...]] & ~AsyncConnection[tuple[object, ...]]`, `AsyncConnection[Any] & ~Connection[tuple[object, ...]] & ~AsyncConnection[tuple[object, ...]]` in union `(Connection[Any] & ~Connection[tuple[object, ...]] & ~AsyncConnection[tuple[object, ...]]) | (AsyncConnection[Any] & ~Connection[tuple[object, ...]] & ~AsyncConnection[tuple[object, ...]]) | PGconn`
+ psycopg/psycopg/crdb/connection.py:36:21 error[unresolved-attribute] Attribute `parameter_status` is not defined on `Connection[Any] & ~Connection[tuple[Any, ...]] & ~AsyncConnection[tuple[Any, ...]]`, `AsyncConnection[Any] & ~Connection[tuple[Any, ...]] & ~AsyncConnection[tuple[Any, ...]]` in union `(Connection[Any] & ~Connection[tuple[Any, ...]] & ~AsyncConnection[tuple[Any, ...]]) | (AsyncConnection[Any] & ~Connection[tuple[Any, ...]] & ~AsyncConnection[tuple[Any, ...]]) | PGconn`

pwndbg (https://github.com/pwndbg/pwndbg)
- pwndbg/aglib/heap/ptmalloc.py:538:34 error[not-subscriptable] Cannot subscript object of type `object` with no `__getitem__` method
- pwndbg/commands/ptmalloc2.py:467:11 error[unresolved-attribute] Object of type `object` has no attribute `value_to_human_readable`
+ pwndbg/commands/ptmalloc2.py:467:11 error[unresolved-attribute] Attribute `value_to_human_readable` is not defined on `None` in union `Unknown | None`

pydantic (https://github.com/pydantic/pydantic)
+ pydantic/main.py:951:67 error[invalid-argument-type] Argument to function `map_generic_model_arguments` is incorrect: Expected `tuple[Any, ...]`, found `tuple[type[Any], ...] | type[Any]`

pyjwt (https://github.com/jpadilla/pyjwt)
- jwt/jwks_client.py:158:35 error[invalid-argument-type] Argument to function `PyJWKSet.from_dict` is incorrect: Expected `dict[str, Any]`, found `(PyJWKSet & Top[dict[Unknown, Unknown]]) | (Any & Top[dict[Unknown, Unknown]])`

pyproject-metadata (https://github.com/pypa/pyproject-metadata)
- pyproject_metadata/pyproject.py:103:14 error[unresolved-attribute] Object of type `object` has no attribute `get`
- pyproject_metadata/pyproject.py:103:44 error[unresolved-attribute] Object of type `object` has no attribute `get`

pytest (https://github.com/pytest-dev/pytest)
- src/_pytest/python.py:1045:34 error[invalid-argument-type] Argument to function `ascii_escaped` is incorrect: Expected `bytes | str`, found `object`

pytest-autoprofile (https://gitlab.com/TTsangSC/pytest-autoprofile)
- src/pytest_autoprofile/_test_utils.py:503:23 error[invalid-argument-type] Argument to constructor `Path.__new__` is incorrect: Expected `str | PathLike[str]`, found `object`

schema_salad (https://github.com/common-workflow-language/schema_salad)
- src/schema_salad/avro/schema.py:804:44 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[dict[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["names"]` on object of type `Top[dict[Unknown, Unknown]]`
- src/schema_salad/avro/schema.py:817:66 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[dict[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["fields"]` on object of type `Top[dict[Unknown, Unknown]]`
- src/schema_salad/jsonld_context.py:211:30 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `str` on object of type `str`
- src/schema_salad/metaschema.py:1047:22 error[invalid-argument-type] Argument to bound method `MutableMapping.pop` is incorrect: Expected `Never`, found `Literal["$schemas"]`
- src/schema_salad/metaschema.py:1047:22 error[invalid-argument-type] Argument to bound method `MutableSequence.pop` is incorrect: Expected `int`, found `Literal["$schemas"]`
- src/schema_salad/ref_resolver.py:397:46 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[MutableMapping[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["mapPredicate"]` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- src/schema_salad/ref_resolver.py:1161:41 error[invalid-argument-type] Argument to function `relname` is incorrect: Expected `str`, found `object`
- src/schema_salad/ref_resolver.py:1164:29 error[invalid-assignment] Invalid subscript assignment with key of type `object` and value of type `str` on object of type `dict[str, str]`
- src/schema_salad/schema.py:541:17 error[invalid-assignment] Invalid subscript assignment with key of type `Literal["name"]` and value of type `str` on object of type `MutableSequence[Any]`
- src/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]`
- src/schema_salad/schema.py:545:31 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[MutableMapping[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["type"]` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- src/schema_salad/schema.py:563:17 error[invalid-assignment] Cannot assign to a subscript on an object of type `str`
- src/schema_salad/schema.py:564:21 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[MutableMapping[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["fields"]` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- src/schema_salad/schema.py:572:64 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[MutableMapping[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["symbols"]` on object of type `Top[MutableMapping[Unknown, Unknown]]`

schemathesis (https://github.com/schemathesis/schemathesis)
- src/schemathesis/core/output/sanitization.py:31:31 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[dict[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `object` on object of type `Top[dict[Unknown, Unknown]]`
- src/schemathesis/specs/openapi/adapter/servers.py:35:13 error[invalid-assignment] Invalid subscript assignment with key of type `object` and value of type `object` on object of type `dict[str, Any]`
+ src/schemathesis/pytest/lazy.py:87:19 error[invalid-yield] Yield type `(Ok[APIOperation[Unknown, Unknown, Unknown, Unknown]] & ~Ok[Unknown]) | Err[InvalidSchema]` does not match annotated yield type `Ok[tuple[APIOperation[Unknown, Unknown, Unknown, Unknown], (...) -> Unknown]] | Err[InvalidSchema]`
- src/schemathesis/specs/openapi/extra_data_source.py:243:50 error[invalid-argument-type] Argument to function `schema_with_bundle` is incorrect: Expected `dict[str, Any] | bool`, found `Top[dict[Unknown, Unknown]]`
- src/schemathesis/transport/requests.py:386:58 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[dict[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `str` on object of type `Top[dict[Unknown, Unknown]]`

scikit-learn (https://github.com/scikit-learn/scikit-learn)
- sklearn/preprocessing/_polynomial.py:444:16 error[unsupported-operator] Operator `<=` is not supported between objects of type `object` and `Literal[1]`
+ sklearn/preprocessing/tests/test_data.py:250:47 error[unresolved-attribute] Attribute `mean` is not defined on `list[list[Unknown]] & ~list[Unknown]` in union `(ndarray[tuple[int, int], dtype[float64]] & ~list[Unknown]) | (list[list[Unknown]] & ~list[Unknown]) | ndarray[tuple[Any, ...], dtype[Unknown]]`

scipy (https://github.com/scipy/scipy)
- subprojects/highs/highs/highspy/highs.py:881:25 error[unresolved-attribute] Object of type `object` has no attribute `index`

scrapy (https://github.com/scrapy/scrapy)
- scrapy/utils/python.py:269:16 error[invalid-return-type] Return type does not match returned value: expected `Iterable[_KT@without_none_values]`, found `dict[object, object]`

spack (https://github.com/spack/spack)
+ lib/spack/spack/vendor/jinja2/compiler.py:1539:46 error[invalid-argument-type] Argument to bound method `CodeGenerator.writeline` is incorrect: Expected `Node | None`, found `(list[Any] & ~list[Unknown]) | (Expr & ~list[Unknown])`
+ lib/spack/spack/vendor/jinja2/compiler.py:1545:28 error[invalid-argument-type] Argument to bound method `NodeVisitor.visit` is incorrect: Expected `Node`, found `(list[Any] & ~list[Unknown]) | (Expr & ~list[Unknown])`

spark (https://github.com/apache/spark)
- python/pyspark/ml/linalg/__init__.py:698:40 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, ...], dtype[object]], (key: SupportsIndex | tuple[SupportsIndex, ...], /) -> Any, (key: SupportsIndex | slice[Any, Any, Any] | EllipsisType | ... omitted 5 union elements, /) -> ndarray[tuple[Any, ...], dtype[object]]]` cannot be called with key of type `ndarray[tuple[Any, ...], dtype[Unknown]]` on object of type `ndarray[tuple[object, ...], dtype[object]]`
- python/pyspark/mllib/linalg/__init__.py:566:45 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, ...], dtype[object]], (key: SupportsIndex | tuple[SupportsIndex, ...], /) -> Any, (key: SupportsIndex | slice[Any, Any, Any] | EllipsisType | ... omitted 5 union elements, /) -> ndarray[tuple[Any, ...], dtype[object]]]` cannot be called with key of type `int` on object of type `ndarray[tuple[object, ...], dtype[object]]`
+ python/pyspark/pandas/series.py:5285:29 error[no-matching-overload] No overload of function `isna` matches arguments
- python/pyspark/sql/classic/table_arg.py:44:20 error[invalid-assignment] Object of type `Column & Top[list[Unknown]]` is not assignable to `tuple[Column | str, ...]`
+ python/pyspark/sql/classic/table_arg.py:44:20 error[invalid-assignment] Object of type `Column & list[Unknown]` is not assignable to `tuple[Column | str, ...]`
- python/pyspark/sql/connect/expressions.py:535:47 error[invalid-argument-type] Argument to bound method `TimestampType.fromInternal` is incorrect: Expected `int`, found `(Any & Top[list[Unknown]]) | (Any & Decimal) | (Any & bytes) | ... omitted 4 union elements`
+ python/pyspark/sql/connect/expressions.py:535:47 error[invalid-argument-type] Argument to bound method `TimestampType.fromInternal` is incorrect: Expected `int`, found `(Any & list[Unknown]) | (Any & Decimal) | (Any & bytes) | ... omitted 4 union elements`
- python/pyspark/sql/connect/readwriter.py:441:30 error[invalid-argument-type] Argument to bound method `DataFrameReader.load` is incorrect: Expected `str | list[str] | None`, found `list[str] | (DataFrame & Top[list[Unknown]])`
- python/pyspark/sql/functions/builtin.py:19001:16 error[invalid-assignment] Object of type `(Column & Top[list[Unknown]]) | (Sequence[Column | str] & Top[list[Unknown]]) | (Column & Top[set[Unknown]]) | (Sequence[Column | str] & Top[set[Unknown]])` is not assignable to `tuple[Column | Sequence[Column | str], ...]`
+ python/pyspark/sql/functions/builtin.py:19001:16 error[invalid-assignment] Object of type `(Column & list[Unknown]) | (Sequence[Column | str] & list[Unknown]) | (Column & set[Unknown]) | (Sequence[Column | str] & set[Unknown])` is not assignable to `tuple[Column | Sequence[Column | str], ...]`
+ python/pyspark/sql/types.py:2446:17 error[no-matching-overload] No overload of bound method `Pattern.match` matches arguments
+ python/pyspark/sql/types.py:2456:14 error[no-matching-overload] No overload of bound method `Pattern.match` matches arguments
- python/pyspark/testing/sqlutils.py:298:25 error[invalid-argument-type] Method `__delitem__` of type `bound method _Environ[str].__delitem__(key: str) -> None` cannot be called with key of type `object` on object of type `_Environ[str]`
- python/pyspark/testing/utils.py:1036:45 error[invalid-argument-type] Argument to function `rename_dataframe_columns` is incorrect: Expected `pyspark.sql.dataframe.DataFrame`, found `pyspark.sql.dataframe.DataFrame | (pandas.core.frame.DataFrame & Top[list[Unknown]]) | (pyspark.pandas.frame.DataFrame[Unknown] & Top[list[Unknown]]) | list[Row] | Unknown`
+ python/pyspark/testing/utils.py:1036:45 error[invalid-argument-type] Argument to function `rename_dataframe_columns` is incorrect: Expected `pyspark.sql.dataframe.DataFrame`, found `pyspark.sql.dataframe.DataFrame | (pandas.core.frame.DataFrame & list[Unknown]) | (pyspark.pandas.frame.DataFrame[Unknown] & list[Unknown]) | list[Row] | Unknown`
- python/pyspark/worker_util.py:275:13 error[invalid-assignment] Object of type `dict[str, str] | (IO[Unknown] & Top[dict[Unknown, Unknown]])` is not assignable to attribute `_conf` of type `dict[str, Any]`

static-frame (https://github.com/static-frame/static-frame)
- static_frame/core/container_util.py:1758:19 error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int, /) -> Sequence[Hashable | int | integer[Any] | ... omitted 10 union elements], (index: slice[int | None, int | None, int | None], /) -> Sequence[Sequence[Hashable | int | integer[Any] | ... omitted 10 union elements]]]` cannot be called with key of type `Top[integer[Any]]` on object of type `Sequence[Sequence[Hashable | int | integer[Any] | ... omitted 10 union elements]]`
+ static_frame/core/container_util.py:1758:19 error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int, /) -> Sequence[Hashable | int | integer[Any] | ... omitted 10 union elements], (index: slice[int | None, int | None, int | None], /) -> Sequence[Sequence[Hashable | int | integer[Any] | ... omitted 10 union elements]]]` cannot be called with key of type `integer[Any]` on object of type `Sequence[Sequence[Hashable | int | integer[Any] | ... omitted 10 union elements]]`
- static_frame/core/frame.py:5598:44 error[invalid-argument-type] Argument to bound method `IndexBase._drop_iloc` is incorrect: Expected `int | integer[Any] | ndarray[Any, Any] | ... omitted 3 union elements`, found `object`
+ static_frame/core/frame.py:10483:19 error[invalid-assignment] Object of type `tuple[int | (integer[Any] & ~tuple[Unknown, ...]) | (ndarray[Any, Any] & ~tuple[Unknown, ...]) | ... omitted 4 union elements, None]` is not assignable to `tuple[int | integer[Any] | ndarray[Any, Any] | ... omitted 3 union elements, int | integer[Any] | ndarray[Any, Any] | ... omitted 3 union elements]`
- static_frame/core/series.py:1177:25 error[invalid-assignment] Object of type `list[int | integer[Any] | (ndarray[Any, Any] & Top[integer[Any]]) | (list[int] & Top[integer[Any]])]` is not assignable to `ndarray[Any, Any] | list[int] | slice[Any, Any, Any] | None`
+ static_frame/core/series.py:1177:25 error[invalid-assignment] Object of type `list[int | integer[Any]]` is not assignable to `ndarray[Any, Any] | list[int] | slice[Any, Any, Any] | None`
- static_frame/core/type_blocks.py:3564:24 error[invalid-return-type] Return type does not match returned value: expected `None | int | float | ndarray[Any, Any]`, found `object`
- static_frame/test/unit/test_index.py:906:26 error[no-matching-overload] No overload of bound method `ndarray.tolist` matches arguments
- static_frame/test/unit/test_util.py:1318:26 error[no-matching-overload] No overload of bound method `ndarray.tolist` matches arguments

strawberry (https://github.com/strawberry-graphql/strawberry)
+ strawberry/relay/types.py:851:51 error[invalid-argument-type] Argument to constructor `enumerate.__new__` is incorrect: Expected `Iterable[Unknown]`, found `(AsyncIterable[NodeType@ListConnection] & Any & ~AsyncIterable[Never]) | (AsyncIterator[Unknown] & ~AsyncIterable[Unknown])`
- strawberry/types/fields/resolver.py:419:20 error[invalid-return-type] Return type does not match returned value: expected `(...) -> T@StrawberryResolver`, found `(...) -> object`

sympy (https://github.com/sympy/sympy)
- sympy/printing/pretty/pretty_symbology.py:357:19 error[index-out-of-bounds] Index 3 is out of bounds for tuple `tuple[tuple[Unknown, Unknown, Unknown, Unknown], str]` with length 2
- sympy/printing/pretty/pretty_symbology.py:357:19 error[index-out-of-bounds] Index 3 is out of bounds for tuple `tuple[tuple[Unknown, Unknown, Unknown], str]` with length 2

trio (https://github.com/python-trio/trio)
- src/trio/_core/_run.py:1974:45 error[unresolved-attribute] Object of type `(~None & ~Top[partial[Unknown]] & ~str) | (((...) -> object) & ~str)` has no attribute `__qualname__`
+ src/trio/_core/_run.py:1974:45 error[unresolved-attribute] Object of type `(~None & ~partial[Unknown] & ~str) | (((...) -> Awaitable[object]) & ~partial[Unknown] & ~str) | (((...) -> Unknown) & ~str)` has no attribute `__qualname__`

urllib3 (https://github.com/urllib3/urllib3)
- src/urllib3/_collections.py:357:26 error[invalid-argument-type] Argument to bound method `HTTPHeaderDict.add` is incorrect: Expected `str`, found `object`

vision (https://github.com/pytorch/vision)
+ torchvision/utils.py:76:30 error[unresolved-attribute] Attribute `size` is not defined on `list[Unknown] & ~list[Unknown]` in union `Unknown | (list[Unknown] & ~list[Unknown])`

werkzeug (https://github.com/pallets/werkzeug)
- src/werkzeug/http.py:372:12 error[no-matching-overload] No overload of bound method `str.join` matches arguments

xarray (https://github.com/pydata/xarray)
- xarray/core/dataarray.py:1503:51 error[invalid-argument-type] Argument to function `either_dict_or_kwargs` is incorrect: Expected `Mapping[Any, Resampler | str | int | tuple[int, ...] | None] | None`, found `int | None | (Mapping[Any, Resampler | str | int | tuple[int, ...] | None] & ~float & ~str & ~tuple[object, ...] & ~Top[list[Unknown]])`
+ xarray/core/dataarray.py:1503:51 error[invalid-argument-type] Argument to function `either_dict_or_kwargs` is incorrect: Expected `Mapping[Any, Resampler | str | int | tuple[int, ...] | None] | None`, found `int | (tuple[int, ...] & Any & ~tuple[()]) | None | (Mapping[Any, Resampler | str | int | tuple[int, ...] | None] & ~float & ~str & ~tuple[Unknown, ...] & ~list[Unknown])`
- xarray/core/dataset.py:4752:41 error[invalid-argument-type] Argument to bound method `list.insert` is incorrect: Expected `SupportsIndex`, found `object`
- xarray/core/utils.py:356:35 error[invalid-argument-type] Argument to function `flat_items` is incorrect: Expected `Mapping[str, dict[str, Divergent] | Unknown]`, found `dict[str, Divergent] | (T@flat_items & Top[dict[Unknown, Unknown]])`
- xarray/core/utils.py:257:34 error[invalid-argument-type] Argument to function `list_equiv` is incorrect: Expected `Sequence[Unknown]`, found `T@equivalent & ~ndarray[tuple[object, ...], dtype[object]]`
+ xarray/core/utils.py:257:34 error[invalid-argument-type] Argument to function `list_equiv` is incorrect: Expected `Sequence[Unknown]`, found `T@equivalent & ~ndarray[tuple[Any, ...], dtype[Any]]`
- xarray/core/variable.py:730:35 error[unresolved-attribute] Attribute `dims` is not defined on `_arrayfunction[Any, Any]`, `_arrayapi[Any, Any]`, `ndarray[tuple[Any, ...], dtype[Unknown]]` in union `(Unknown & Variable & ~Top[integer[Any]]) | _arrayfunction[Any, Any] | _arrayapi[Any, Any] | ndarray[tuple[Any, ...], dtype[Unknown]]`
+ xarray/core/variable.py:730:35 error[unresolved-attribute] Attribute `dims` is not defined on `_arrayfunction[Any, Any]`, `_arrayapi[Any, Any]`, `ndarray[tuple[Any, ...], dtype[Unknown]]` in union `(Unknown & Variable & ~integer[Any]) | _arrayfunction[Any, Any] | _arrayapi[Any, Any] | ndarray[tuple[Any, ...], dtype[Unknown]]`
- xarray/core/variable.py:755:35 error[invalid-argument-type] Argument to `OuterIndexer.__init__` is incorrect: Expected `tuple[int | integer[Any] | slice[Any, Any, Any] | ndarray[Any, dtype[generic[Any]]], ...]`, found `tuple[(Unknown & int) | (Unknown & Top[integer[Any]]) | (Unknown & slice[object, object, object]) | ... omitted 5 union elements, ...]`
+ xarray/core/variable.py:755:35 error[invalid-argument-type] Argument to `OuterIndexer.__init__` is incorrect: Expected `tuple[int | integer[Any] | slice[Any, Any, Any] | ndarray[Any, dtype[generic[Any]]], ...]`, found `tuple[(Unknown & int) | (Unknown & integer[Any]) | (Unknown & slice[Any, Any, Any]) | ... omitted 5 union elements, ...]`
+ xarray/groupers.py:323:28 error[unresolved-attribute] Attribute `variable` is not defined on `_DummyGroup[Unknown] & ~_DummyGroup[Unknown]` in union `(Unknown & ~_DummyGroup[Unknown]) | (_DummyGroup[Unknown] & ~_DummyGroup[Unknown])`
+ xarray/groupers.py:451:55 error[unresolved-attribute] Attribute `dtype` is not defined on `_DummyGroup[Unknown] & ~_DummyGroup[Unknown]` in union `(Unknown & ~_DummyGroup[Unknown]) | (_DummyGroup[Unknown] & ~_DummyGroup[Unknown]) | DataArray`
- xarray/namedarray/core.py:818:44 error[invalid-argument-type] Argument to function `either_dict_or_kwargs` is incorrect: Expected `Mapping[Any, Any] | None`, found `int | (Mapping[Any, str | int | tuple[int, ...] | None] & ~float & ~str & ~tuple[object, ...] & ~Top[list[Unknown]]) | dict[Any, Unknown]`
+ xarray/namedarray/core.py:818:44 error[invalid-argument-type] Argument to function `either_dict_or_kwargs` is incorrect: Expected `Mapping[Any, Any] | None`, found `int | (tuple[int, ...] & Any & ~tuple[()]) | (Mapping[Any, str | int | tuple[int, ...] | None] & ~float & ~str & ~tuple[Unknown, ...] & ~list[Unknown]) | dict[Any, Unknown]`

xarray-dataclasses (https://github.com/astropenguin/xarray-dataclasses)
- xarray_dataclasses/dataarray.py:187:27 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[dict[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `str` on object of type `Top[dict[Unknown, Unknown]]`

zulip (https://github.com/zulip/zulip)
- scripts/lib/supervisor.py:52:42 error[not-subscriptable] Cannot subscript object of type `object` with no `__getitem__` method
- zerver/lib/event_schema.py:442:16 error[not-subscriptable] Cannot subscript object of type `object` with no `__getitem__` method
- zerver/lib/export.py:2619:9 error[invalid-assignment] Cannot assign to a subscript on an object of type `object`
- zerver/lib/validator.py:443:18 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[dict[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["extra_data"]` on object of type `Top[dict[Unknown, Unknown]]`
- zerver/lib/validator.py:547:8 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[dict[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["type"]` on object of type `Top[dict[Unknown, Unknown]]`
- zerver/lib/validator.py:557:8 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[dict[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["type"]` on object of type `Top[dict[Unknown, Unknown]]`

Full report with detailed diff (timing results)

@sharkdp sharkdp force-pushed the david/isinstance-relaxed branch from 9cc03e4 to 28eb49f Compare June 25, 2026 16:30
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.

1 participant