Skip to content

[ty] Stop widening implicit instance attributes with Unknown#24320

Draft
charliermarsh wants to merge 2 commits intomainfrom
charlie/implicit-instance-attribute
Draft

[ty] Stop widening implicit instance attributes with Unknown#24320
charliermarsh wants to merge 2 commits intomainfrom
charlie/implicit-instance-attribute

Conversation

@charliermarsh
Copy link
Copy Markdown
Member

No description provided.

@astral-sh-bot astral-sh-bot bot added the ty Multi-file analysis & type inference label Mar 31, 2026
@astral-sh-bot
Copy link
Copy Markdown

astral-sh-bot bot commented Mar 31, 2026

Typing conformance results

No changes detected ✅

Current numbers
The percentage of diagnostics emitted that were expected errors held steady at 86.61%. The percentage of expected errors that received a diagnostic held steady at 81.56%. The number of fully passing files held steady at 70/132.

@astral-sh-bot
Copy link
Copy Markdown

astral-sh-bot bot commented Mar 31, 2026

Memory usage report

Summary

Project Old New Diff Outcome
flake8 47.90MB 47.82MB -0.15% (73.46kB) ⬇️
trio 117.64MB 117.50MB -0.12% (142.62kB) ⬇️
sphinx 264.50MB 263.89MB -0.23% (628.36kB) ⬇️
prefect 715.58MB 714.59MB -0.14% (1004.36kB) ⬇️

Significant changes

Click to expand detailed breakdown

flake8

Name Old New Diff Outcome
infer_expression_types_impl 1.07MB 1.06MB -1.11% (12.14kB) ⬇️
Type<'db>::member_lookup_with_policy_ 487.16kB 476.48kB -2.19% (10.68kB) ⬇️
is_redundant_with_impl::interned_arguments 139.56kB 131.05kB -6.10% (8.51kB) ⬇️
infer_scope_types_impl 997.41kB 990.85kB -0.66% (6.56kB) ⬇️
UnionType 101.28kB 95.78kB -5.43% (5.50kB) ⬇️
is_redundant_with_impl 136.72kB 131.29kB -3.98% (5.44kB) ⬇️
StaticClassLiteral<'db>::try_mro_ 321.39kB 316.64kB -1.48% (4.75kB) ⬇️
StaticClassLiteral<'db>::implicit_attribute_inner_ 313.34kB 309.04kB -1.37% (4.29kB) ⬇️
IntersectionType 68.56kB 64.28kB -6.24% (4.28kB) ⬇️
infer_definition_types 1.87MB 1.87MB -0.16% (3.14kB) ⬇️
Type<'db>::member_lookup_with_policy_::interned_arguments 228.11kB 225.06kB -1.34% (3.05kB) ⬇️
Specialization 160.38kB 158.56kB -1.13% (1.81kB) ⬇️
Type<'db>::apply_specialization_ 215.68kB 214.12kB -0.72% (1.56kB) ⬇️
CallableType 167.20kB 168.54kB +0.80% (1.34kB) ⬇️
GenericAlias 70.95kB 69.96kB -1.39% (1008.00B) ⬇️
... 35 more

trio

Name Old New Diff Outcome
Type<'db>::member_lookup_with_policy_ 1.81MB 1.78MB -1.55% (28.77kB) ⬇️
infer_expression_types_impl 7.08MB 7.06MB -0.29% (21.26kB) ⬇️
is_redundant_with_impl::interned_arguments 537.62kB 522.59kB -2.80% (15.04kB) ⬇️
UnionType 304.73kB 292.77kB -3.93% (11.97kB) ⬇️
infer_scope_types_impl 4.79MB 4.77MB -0.23% (11.11kB) ⬇️
IntersectionType 222.34kB 212.10kB -4.60% (10.23kB) ⬇️
StaticClassLiteral<'db>::implicit_attribute_inner_ 750.54kB 740.49kB -1.34% (10.05kB) ⬇️
is_redundant_with_impl 473.21kB 465.26kB -1.68% (7.96kB) ⬇️
infer_definition_types 7.73MB 7.72MB -0.08% (6.48kB) ⬇️
Type<'db>::member_lookup_with_policy_::interned_arguments 909.59kB 903.91kB -0.63% (5.69kB) ⬇️
all_narrowing_constraints_for_expression 589.32kB 584.28kB -0.86% (5.04kB) ⬇️
infer_expression_type_impl 1.32MB 1.31MB -0.28% (3.77kB) ⬇️
UnionType<'db>::from_two_elements_ 281.39kB 278.73kB -0.95% (2.67kB) ⬇️
Type<'db>::apply_specialization_ 728.00kB 725.93kB -0.28% (2.07kB) ⬇️
Type<'db>::apply_specialization_::interned_arguments 640.31kB 641.95kB +0.26% (1.64kB) ⬇️
... 34 more

sphinx

Name Old New Diff Outcome
Type<'db>::member_lookup_with_policy_ 6.51MB 6.30MB -3.22% (214.38kB) ⬇️
infer_expression_types_impl 21.48MB 21.40MB -0.40% (89.07kB) ⬇️
infer_definition_types 23.98MB 23.92MB -0.22% (52.82kB) ⬇️
StaticClassLiteral<'db>::implicit_attribute_inner_ 2.40MB 2.35MB -2.09% (51.33kB) ⬇️
is_redundant_with_impl::interned_arguments 2.02MB 1.98MB -1.98% (40.99kB) ⬇️
UnionType 1.24MB 1.20MB -3.04% (38.67kB) ⬇️
infer_expression_type_impl 2.96MB 2.92MB -1.13% (34.29kB) ⬇️
infer_scope_types_impl 15.49MB 15.47MB -0.17% (26.33kB) ⬇️
is_redundant_with_impl 1.78MB 1.76MB -1.31% (23.95kB) ⬇️
IntersectionType 880.59kB 860.48kB -2.28% (20.11kB) ⬇️
all_narrowing_constraints_for_expression 2.34MB 2.32MB -0.61% (14.49kB) ⬇️
Type<'db>::member_lookup_with_policy_::interned_arguments 2.65MB 2.63MB -0.51% (13.71kB) ⬇️
loop_header_reachability 380.19kB 368.84kB -2.98% (11.34kB) ⬇️
FunctionType<'db>::signature_ 2.26MB 2.27MB +0.32% (7.43kB) ⬇️
CallableType 1.11MB 1.12MB +0.62% (7.03kB) ⬇️
... 34 more

prefect

Name Old New Diff Outcome
infer_expression_types_impl 61.83MB 61.62MB -0.34% (214.43kB) ⬇️
infer_expression_type_impl 13.84MB 13.72MB -0.87% (123.33kB) ⬇️
Type<'db>::member_lookup_with_policy_ 16.20MB 16.08MB -0.71% (117.68kB) ⬇️
infer_definition_types 89.83MB 89.73MB -0.11% (104.51kB) ⬇️
StaticClassLiteral<'db>::implicit_attribute_inner_ 9.94MB 9.84MB -1.02% (103.31kB) ⬇️
is_redundant_with_impl::interned_arguments 5.43MB 5.38MB -0.87% (48.12kB) ⬇️
infer_scope_types_impl 54.15MB 54.11MB -0.08% (45.87kB) ⬇️
is_redundant_with_impl 5.52MB 5.49MB -0.58% (32.88kB) ⬇️
all_narrowing_constraints_for_expression 7.14MB 7.11MB -0.40% (29.56kB) ⬇️
UnionType 3.52MB 3.49MB -0.81% (29.03kB) ⬇️
IntersectionType 2.31MB 2.28MB -1.11% (26.31kB) ⬇️
Type<'db>::class_member_with_policy_ 17.74MB 17.71MB -0.13% (23.13kB) ⬇️
Type<'db>::apply_specialization_ 3.59MB 3.57MB -0.59% (21.65kB) ⬇️
all_negative_narrowing_constraints_for_expression 2.62MB 2.61MB -0.59% (15.84kB) ⬇️
UnionType<'db>::from_two_elements_ 5.24MB 5.23MB -0.21% (11.21kB) ⬇️
... 39 more

@astral-sh-bot
Copy link
Copy Markdown

astral-sh-bot bot commented Mar 31, 2026

ecosystem-analyzer results

Lint rule Added Removed Changed
unresolved-attribute 251 6 2,692
invalid-argument-type 28 50 787
unsupported-operator 18 5 789
invalid-assignment 188 76 244
invalid-return-type 6 5 98
not-iterable 0 2 56
not-subscriptable 19 10 1
call-non-callable 3 12 6
no-matching-overload 15 3 0
invalid-await 0 0 14
division-by-zero 0 10 0
possibly-unresolved-reference 0 10 0
unused-type-ignore-comment 0 8 0
possibly-missing-attribute 0 0 7
invalid-key 6 0 0
type-assertion-failure 0 6 0
call-top-callable 5 0 0
invalid-yield 0 0 4
index-out-of-bounds 0 3 0
missing-argument 1 1 0
missing-typed-dict-key 0 2 0
redundant-cast 2 0 0
unsupported-base 0 1 1
unsupported-dynamic-base 0 0 2
deprecated 1 0 0
invalid-context-manager 0 0 1
Total 543 210 4,702

Showing a random sample of 176 of 5455 changes. See the HTML report for the full diff.

Raw diff sample (176 of 5455 changes)
Tanjun (https://github.com/FasterSpeeding/Tanjun)
- tanjun/commands/slash.py:1716:13 error[unresolved-attribute] Attribute `set_is_dm_enabled` is not defined on `_SlashCommandBuilder` in union `Unknown | _SlashCommandBuilder`
+ tanjun/commands/slash.py:1716:13 error[unresolved-attribute] Object of type `_SlashCommandBuilder` has no attribute `set_is_dm_enabled`

alerta (https://github.com/alerta/alerta)
+ alerta/views/keys.py:33:5 error[invalid-assignment] Object of type `str | None` is not assignable to attribute `customer` of type `str`

altair (https://github.com/vega/altair)
- tests/vegalite/v6/test_params.py:105:12 error[unresolved-attribute] Attribute `name` is not defined on `UndefinedType` in union `Unknown | VariableParameter | TopLevelSelectionParameter | SelectionParameter | UndefinedType`
+ tests/vegalite/v6/test_params.py:105:12 error[unresolved-attribute] Attribute `name` is not defined on `UndefinedType` in union `VariableParameter | TopLevelSelectionParameter | SelectionParameter | UndefinedType`

apprise (https://github.com/caronc/apprise)
- apprise/apprise_attachment.py:225:56 error[unresolved-attribute] Attribute `location` is not defined on `list[Unknown]` in union `AttachBase | Unknown | list[Unknown]`
+ apprise/apprise_attachment.py:225:56 error[unresolved-attribute] Attribute `location` is not defined on `list[Unknown]` in union `AttachBase | list[Unknown]`
- apprise/persistent_store.py:912:25 error[unresolved-attribute] Attribute `keys` is not defined on `None` in union `Unknown | None | dict[Unknown, Unknown]`
+ apprise/persistent_store.py:912:25 error[unresolved-attribute] Attribute `keys` is not defined on `None` in union `None | dict[Unknown, Unknown]`
- apprise/plugins/dingtalk.py:185:22 error[unresolved-attribute] Attribute `encode` is not defined on `None` in union `Unknown | None`
+ apprise/plugins/dingtalk.py:185:22 error[unresolved-attribute] Attribute `encode` is not defined on `None` in union `None | Unknown`
- apprise/plugins/email/base.py:697:17 error[invalid-argument-type] Argument to function `formataddr` is incorrect: Expected `tuple[str | None, str]`, found `tuple[Literal[False], Unknown | bool | str]`
+ apprise/plugins/email/base.py:697:17 error[invalid-argument-type] Argument to function `formataddr` is incorrect: Expected `tuple[str | None, str]`, found `tuple[Literal[False], bool | str | Unknown]`
+ apprise/plugins/fluxer.py:472:17 error[invalid-assignment] Invalid subscript assignment with key of type `Literal["embeds"]` and value of type `list[dict[str, Any]]` on object of type `dict[str, bool]`
- apprise/plugins/notifiarr.py:230:13 error[invalid-assignment] Invalid subscript assignment with key of type `Literal["event"]` and value of type `(Unknown & ~AlwaysFalsy) | (int & ~AlwaysFalsy)` on object of type `dict[str, str]`
+ apprise/plugins/notifiarr.py:230:13 error[invalid-assignment] Invalid subscript assignment with key of type `Literal["event"]` and value of type `int & ~AlwaysFalsy` on object of type `dict[str, str]`
- tests/helpers/asyncio.py:46:9 error[unresolved-attribute] Attribute `close` is not defined on `None` in union `Unknown | None | AbstractEventLoop`
+ tests/helpers/asyncio.py:46:9 error[unresolved-attribute] Attribute `close` is not defined on `None` in union `None | AbstractEventLoop`

build (https://github.com/pypa/build)
- tests/test_projectbuilder.py:361:5 error[unresolved-attribute] Attribute `assert_called_with` is not defined on `bound method BuildBackendHookCaller.build_sdist(sdist_directory: str, config_settings: Mapping[str, Any] | None = None) -> str` in union `Unknown | (bound method BuildBackendHookCaller.build_sdist(sdist_directory: str, config_settings: Mapping[str, Any] | None = None) -> str)`
+ tests/test_projectbuilder.py:361:5 error[unresolved-attribute] Object of type `bound method BuildBackendHookCaller.build_sdist(sdist_directory: str, config_settings: Mapping[str, Any] | None = None) -> str` has no attribute `assert_called_with`
- tests/test_projectbuilder.py:440:5 error[unresolved-attribute] Attribute `assert_called_with` is not defined on `bound method BuildBackendHookCaller.prepare_metadata_for_build_wheel(metadata_directory: str, config_settings: Mapping[str, Any] | None = None, _allow_fallback: bool = True) -> str` in union `Unknown | (bound method BuildBackendHookCaller.prepare_metadata_for_build_wheel(metadata_directory: str, config_settings: Mapping[str, Any] | None = None, _allow_fallback: bool = True) -> str)`
+ tests/test_projectbuilder.py:440:5 error[unresolved-attribute] Object of type `bound method BuildBackendHookCaller.prepare_metadata_for_build_wheel(metadata_directory: str, config_settings: Mapping[str, Any] | None = None, _allow_fallback: bool = True) -> str` has no attribute `assert_called_with`

cloud-init (https://github.com/canonical/cloud-init)
- cloudinit/distros/parsers/hostname.py:25:38 error[not-iterable] Object of type `Unknown | None` may not be iterable
+ cloudinit/distros/parsers/hostname.py:25:38 error[not-iterable] Object of type `None | Unknown` may not be iterable

comtypes (https://github.com/enthought/comtypes)
- comtypes/test/test_typeinfo_create.py:249:9 error[unresolved-attribute] Attribute `SaveAllChanges` is not defined on `ICreateTypeLib2` in union `Unknown | ICreateTypeLib2`
+ comtypes/test/test_typeinfo_create.py:249:9 error[unresolved-attribute] Object of type `ICreateTypeLib2` has no attribute `SaveAllChanges`

core (https://github.com/home-assistant/core)
- homeassistant/components/digital_ocean/binary_sensor.py:81:16 error[unresolved-attribute] Attribute `name` is not defined on `None` in union `Unknown | None`
+ homeassistant/components/digital_ocean/binary_sensor.py:81:16 error[unresolved-attribute] Attribute `name` is not defined on `None` in union `None | Unknown`
- homeassistant/components/digital_ocean/binary_sensor.py:97:32 error[unresolved-attribute] Attribute `ip_v6_address` is not defined on `None` in union `Unknown | None`
+ homeassistant/components/digital_ocean/binary_sensor.py:97:32 error[unresolved-attribute] Attribute `ip_v6_address` is not defined on `None` in union `None | Unknown`
- homeassistant/components/google_assistant/report_state.py:107:47 error[unresolved-attribute] Attribute `entity_id` is not defined on `None` in union `Unknown | State | None`
+ homeassistant/components/google_assistant/report_state.py:107:47 error[unresolved-attribute] Attribute `entity_id` is not defined on `None` in union `State | None`
- homeassistant/components/google_wifi/sensor.py:199:20 error[unsupported-operator] Operator `in` is not supported between objects of type `str` and `Unknown | None`
+ homeassistant/components/google_wifi/sensor.py:199:20 error[unsupported-operator] Operator `in` is not supported between objects of type `str` and `None | Any`
- homeassistant/components/input_datetime/__init__.py:405:20 error[unresolved-attribute] Attribute `time` is not defined on `None` in union `Unknown | None | datetime`
+ homeassistant/components/input_datetime/__init__.py:405:20 error[unresolved-attribute] Attribute `time` is not defined on `None` in union `None | datetime`
- homeassistant/components/kostal_plenticore/select.py:74:17 error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `DeviceInfo`, found `Unknown | dict[Unknown, Unknown] | DeviceInfo`
+ homeassistant/components/kostal_plenticore/select.py:74:17 error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `DeviceInfo`, found `dict[Unknown, Unknown] | DeviceInfo`
- homeassistant/components/owntracks/device_tracker.py:88:16 error[invalid-return-type] Return type does not match returned value: expected `dict[str, Any] | None`, found `Unknown | None | str | tuple[Any | None, Any | None]`
+ homeassistant/components/owntracks/device_tracker.py:88:16 error[invalid-return-type] Return type does not match returned value: expected `dict[str, Any] | None`, found `Any | None | str | tuple[Any | None, Any | None]`
- homeassistant/components/songpal/media_player.py:247:12 error[unresolved-attribute] Attribute `macAddr` is not defined on `None` in union `Unknown | None`
+ homeassistant/components/songpal/media_player.py:247:12 error[unresolved-attribute] Attribute `macAddr` is not defined on `None` in union `None | Unknown`
- homeassistant/components/soundtouch/media_player.py:190:16 error[unresolved-attribute] Attribute `image` is not defined on `None` in union `Unknown | None`
+ homeassistant/components/soundtouch/media_player.py:190:16 error[unresolved-attribute] Attribute `image` is not defined on `None` in union `None | Unknown`
- homeassistant/components/soundtouch/media_player.py:210:16 error[unresolved-attribute] Attribute `artist` is not defined on `None` in union `Unknown | None`
+ homeassistant/components/soundtouch/media_player.py:210:16 error[unresolved-attribute] Attribute `artist` is not defined on `None` in union `None | Unknown`
- homeassistant/components/websocket_api/http.py:281:9 error[unresolved-attribute] Attribute `error` is not defined on `None` in union `Unknown | WebSocketAdapter | None`
+ homeassistant/components/websocket_api/http.py:281:9 error[unresolved-attribute] Attribute `error` is not defined on `None` in union `WebSocketAdapter | None`
- homeassistant/components/zestimate/sensor.py:98:32 error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `str | Buffer | SupportsFloat | SupportsIndex`, found `Unknown | None`
+ homeassistant/components/zestimate/sensor.py:98:32 error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `str | Buffer | SupportsFloat | SupportsIndex`, found `None | Unknown`
- homeassistant/helpers/template/__init__.py:603:13 error[unresolved-attribute] Attribute `loop` is not defined on `None` in union `Unknown | HomeAssistant | None`
+ homeassistant/helpers/template/__init__.py:603:13 error[unresolved-attribute] Attribute `loop` is not defined on `None` in union `HomeAssistant | None`

dd-trace-py (https://github.com/DataDog/dd-trace-py)
- ddtrace/llmobs/_experiment.py:2447:9 error[unresolved-attribute] Attribute `_dne_client` is not defined on `None` in union `Unknown | LLMObs | None`
+ ddtrace/llmobs/_experiment.py:2447:9 error[unresolved-attribute] Attribute `_dne_client` is not defined on `None` in union `LLMObs | None`
- ddtrace/llmobs/_prompt_optimization.py:1022:22 error[unresolved-attribute] Attribute `experiment` is not defined on `None` in union `Unknown | LLMObs | None`
+ ddtrace/llmobs/_prompt_optimization.py:1022:22 error[unresolved-attribute] Attribute `experiment` is not defined on `None` in union `LLMObs | None`
- ddtrace/propagation/_database_monitoring.py:136:13 error[invalid-assignment] Invalid subscript assignment with key of type `Literal["ddsh"]` and value of type `LiteralString` on object of type `dict[Literal["ddps", "dde", "ddpv", "dddbs"], Unknown | str]`
+ ddtrace/propagation/_database_monitoring.py:136:13 error[invalid-assignment] Invalid subscript assignment with key of type `Literal["ddsh"]` and value of type `LiteralString` on object of type `dict[Literal["ddps", "dde", "ddpv", "dddbs"], Any | str]`
- ddtrace/vendor/psutil/__init__.py:1204:18 warning[possibly-missing-attribute] Attribute `memory_maps` may be missing on object of type `Unknown | Process`
+ ddtrace/vendor/psutil/__init__.py:1204:18 warning[possibly-missing-attribute] Attribute `memory_maps` may be missing on object of type `Process`
- tests/ci_visibility/test_recorder_coverage_upload.py:213:9 error[invalid-assignment] Object of type `None` is not assignable to attribute `_git_data` on type `Unknown | CIVisibility`
+ tests/ci_visibility/test_recorder_coverage_upload.py:213:9 error[invalid-assignment] Object of type `None` is not assignable to attribute `_git_data` of type `GitData`
- tests/testing/internal/test_telemetry.py:193:16 error[unresolved-attribute] Attribute `call_args_list` is not defined on `bound method TelemetryWriter.add_count_metric(namespace: TELEMETRY_NAMESPACE, name: str, value: int = 1, tags: tuple[tuple[str, str], ...] | None = None) -> None` in union `Unknown | (bound method TelemetryWriter.add_count_metric(namespace: TELEMETRY_NAMESPACE, name: str, value: int = 1, tags: tuple[tuple[str, str], ...] | None = None) -> None)`
+ tests/testing/internal/test_telemetry.py:193:16 error[unresolved-attribute] Attribute `call_args_list` is not defined on `bound method TelemetryWriter.add_count_metric(namespace: TELEMETRY_NAMESPACE, name: str, value: int = 1, tags: tuple[tuple[str, str], ...] | None = None) -> None` in union `(bound method TelemetryWriter.add_count_metric(namespace: TELEMETRY_NAMESPACE, name: str, value: int = 1, tags: tuple[tuple[str, str], ...] | None = None) -> None) | Unknown`
+ tests/tracer/test_processors.py:295:5 error[invalid-assignment] Object of type `DummyWriter` is not assignable to attribute `writer` of type `TraceWriter`
- tests/tracer/test_single_span_sampling_rules.py:79:16 error[unresolved-attribute] Attribute `pattern` is not defined on `None` in union `Unknown | GlobMatcher | None`
+ tests/tracer/test_single_span_sampling_rules.py:79:16 error[unresolved-attribute] Attribute `pattern` is not defined on `None` in union `GlobMatcher | None`
- tests/tracer/test_single_span_sampling_rules.py:155:16 error[unresolved-attribute] Attribute `pattern` is not defined on `None` in union `Unknown | GlobMatcher | None`
+ tests/tracer/test_single_span_sampling_rules.py:155:16 error[unresolved-attribute] Attribute `pattern` is not defined on `None` in union `GlobMatcher | None`

dragonchain (https://github.com/dragonchain/dragonchain)
- dragonchain/job_processor/contract_job_utest.py:456:9 error[invalid-assignment] Object of type `MagicMock` is not assignable to attribute `create_openfaas_secrets` on type `Unknown | ContractJob`
+ dragonchain/job_processor/contract_job_utest.py:456:9 error[invalid-assignment] Object of type `MagicMock` is not assignable to attribute `create_openfaas_secrets` of type `def create_openfaas_secrets(self) -> None`
- dragonchain/job_processor/contract_job_utest.py:513:9 error[invalid-assignment] Object of type `MagicMock` is not assignable to attribute `save` on type `Unknown | SmartContractModel`
+ dragonchain/job_processor/contract_job_utest.py:513:9 error[invalid-assignment] Object of type `MagicMock` is not assignable to attribute `save` of type `def save(self) -> None`
- dragonchain/lib/dto/bnb_utest.py:84:9 error[invalid-assignment] Object of type `MagicMock` is not assignable to attribute `_fetch_account` on type `Unknown | BinanceNetwork`
+ dragonchain/lib/dto/bnb_utest.py:84:9 error[invalid-assignment] Object of type `MagicMock` is not assignable to attribute `_fetch_account` of type `def _fetch_account(self) -> Unknown`
+ dragonchain/lib/dto/eth_utest.py:120:9 error[unresolved-attribute] Object of type `bound method EthereumNetwork.get_current_block() -> int` has no attribute `assert_called_once`

freqtrade (https://github.com/freqtrade/freqtrade)
- freqtrade/freqai/freqai_interface.py:908:38 error[unresolved-attribute] Attribute `data` is not defined on `None` in union `Unknown | FreqaiDataKitchen | None`
+ freqtrade/freqai/freqai_interface.py:908:38 error[unresolved-attribute] Attribute `data` is not defined on `None` in union `FreqaiDataKitchen | None`
- freqtrade/rpc/external_message_consumer.py:149:9 error[unresolved-attribute] Attribute `stop` is not defined on `None` in union `Unknown | None | AbstractEventLoop`
+ freqtrade/rpc/external_message_consumer.py:149:9 error[unresolved-attribute] Attribute `stop` is not defined on `None` in union `None | AbstractEventLoop`

ignite (https://github.com/pytorch/ignite)
- examples/reinforcement_learning/actor_critic.py:160:9 error[invalid-assignment] Object of type `Unknown` is not assignable to attribute `running_reward` on type `Unknown | State`
- ignite/handlers/tqdm_logger.py:309:13 error[unresolved-attribute] Attribute `set_postfix` is not defined on `None` in union `Unknown | None`
+ ignite/handlers/tqdm_logger.py:309:13 error[unresolved-attribute] Attribute `set_postfix` is not defined on `None` in union `None | Unknown`
- tests/ignite/handlers/test_lr_finder.py:596:5 error[invalid-assignment] Object of type `int | float` is not assignable to attribute `output` on type `Unknown | State`
+ tests/ignite/handlers/test_lr_finder.py:596:5 error[invalid-assignment] Object of type `int | float` is not assignable to attribute `output` of type `int | None`

manticore (https://github.com/trailofbits/manticore)
- manticore/core/plugin.py:270:14 error[unresolved-attribute] Attribute `locked_context` is not defined on `None` in union `Unknown | None`
+ manticore/core/plugin.py:270:14 error[unresolved-attribute] Object of type `None` has no attribute `locked_context`
- manticore/core/smtlib/constraints.py:81:9 error[invalid-assignment] Object of type `None` is not assignable to attribute `_parent` on type `Unknown | None | Self@__exit__`
+ manticore/core/smtlib/constraints.py:81:9 error[invalid-assignment] Object of type `None` is not assignable to attribute `_parent` on type `None | Self@__exit__`
- manticore/ethereum/plugins.py:220:33 error[unresolved-attribute] Attribute `_ready_states` is not defined on `None` in union `Unknown | None`
+ manticore/ethereum/plugins.py:220:33 error[unresolved-attribute] Object of type `None` has no attribute `_ready_states`
- server/tests/test_ethereum.py:331:60 error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `str`, found `Unknown | str | None`
+ server/tests/test_ethereum.py:331:60 error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `str`, found `str | None`
- tests/ethereum/test_general.py:1269:25 error[unresolved-attribute] Attribute `shutdown` is not defined on `None` in union `Unknown | None`
+ tests/ethereum/test_general.py:1269:25 error[unresolved-attribute] Object of type `None` has no attribute `shutdown`
- tests/native/test_state.py:356:17 error[unresolved-attribute] Attribute `count_busy_states` is not defined on `None` in union `Unknown | None`
+ tests/native/test_state.py:356:17 error[unresolved-attribute] Object of type `None` has no attribute `count_busy_states`
- tests/native/test_unicorn_concrete.py:20:23 error[unresolved-attribute] Attribute `terminated_states` is not defined on `None` in union `Unknown | None`
+ tests/native/test_unicorn_concrete.py:20:23 error[unresolved-attribute] Object of type `None` has no attribute `terminated_states`
- tests/native/test_x86_pcmpxstrx.py:12704:29 error[unsupported-operator] Operator `+` is not supported between objects of type `Unknown | int | Expression | None` and `int`
+ tests/native/test_x86_pcmpxstrx.py:12704:29 error[unsupported-operator] Operator `+` is not supported between objects of type `int | Expression | Unknown | None` and `int`
- tests/native/test_x86_pcmpxstrx.py:13400:29 error[unsupported-operator] Operator `+` is not supported between objects of type `Unknown | int | Expression | None` and `int`
+ tests/native/test_x86_pcmpxstrx.py:13400:29 error[unsupported-operator] Operator `+` is not supported between objects of type `int | Expression | Unknown | None` and `int`
- tests/native/test_x86_pcmpxstrx.py:14353:34 error[unsupported-operator] Operator `+` is not supported between objects of type `Unknown | int | Expression | None` and `int`
+ tests/native/test_x86_pcmpxstrx.py:14353:34 error[unsupported-operator] Operator `+` is not supported between objects of type `int | Expression | Unknown | None` and `int`
- tests/native/test_x86_pcmpxstrx.py:15530:34 error[unsupported-operator] Operator `+` is not supported between objects of type `Unknown | int | Expression | None` and `int`
+ tests/native/test_x86_pcmpxstrx.py:15530:34 error[unsupported-operator] Operator `+` is not supported between objects of type `int | Expression | Unknown | None` and `int`
- tests/native/test_x86_pcmpxstrx.py:15702:29 error[unsupported-operator] Operator `+` is not supported between objects of type `Unknown | int | Expression | None` and `int`
+ tests/native/test_x86_pcmpxstrx.py:15702:29 error[unsupported-operator] Operator `+` is not supported between objects of type `int | Expression | Unknown | None` and `int`
- tests/native/test_x86_pcmpxstrx.py:16118:34 error[unsupported-operator] Operator `+` is not supported between objects of type `Unknown | int | Expression | None` and `int`
+ tests/native/test_x86_pcmpxstrx.py:16118:34 error[unsupported-operator] Operator `+` is not supported between objects of type `int | Expression | Unknown | None` and `int`
- tests/native/test_x86_pcmpxstrx.py:20302:29 error[unsupported-operator] Operator `+` is not supported between objects of type `Unknown | int | Expression | None` and `int`
+ tests/native/test_x86_pcmpxstrx.py:20302:29 error[unsupported-operator] Operator `+` is not supported between objects of type `int | Expression | Unknown | None` and `int`
- tests/native/test_x86_pcmpxstrx.py:20788:29 error[unsupported-operator] Operator `+` is not supported between objects of type `Unknown | int | Expression | None` and `int`
+ tests/native/test_x86_pcmpxstrx.py:20788:29 error[unsupported-operator] Operator `+` is not supported between objects of type `int | Expression | Unknown | None` and `int`
- tests/native/test_x86_pcmpxstrx.py:24126:34 error[unsupported-operator] Operator `+` is not supported between objects of type `Unknown | int | Expression | None` and `int`
+ tests/native/test_x86_pcmpxstrx.py:24126:34 error[unsupported-operator] Operator `+` is not supported between objects of type `int | Expression | Unknown | None` and `int`
- tests/native/test_x86_pcmpxstrx.py:24693:34 error[unsupported-operator] Operator `+` is not supported between objects of type `Unknown | int | Expression | None` and `int`
+ tests/native/test_x86_pcmpxstrx.py:24693:34 error[unsupported-operator] Operator `+` is not supported between objects of type `int | Expression | Unknown | None` and `int`
- tests/native/test_x86_pcmpxstrx.py:24774:34 error[unsupported-operator] Operator `+` is not supported between objects of type `Unknown | int | Expression | None` and `int`
+ tests/native/test_x86_pcmpxstrx.py:24774:34 error[unsupported-operator] Operator `+` is not supported between objects of type `int | Expression | Unknown | None` and `int`
- tests/native/test_x86_pcmpxstrx.py:25961:29 error[unsupported-operator] Operator `+` is not supported between objects of type `Unknown | int | Expression | None` and `int`
+ tests/native/test_x86_pcmpxstrx.py:25961:29 error[unsupported-operator] Operator `+` is not supported between objects of type `int | Expression | Unknown | None` and `int`
- tests/native/test_x86_pcmpxstrx.py:26039:29 error[unsupported-operator] Operator `+` is not supported between objects of type `Unknown | int | Expression | None` and `int`
+ tests/native/test_x86_pcmpxstrx.py:26039:29 error[unsupported-operator] Operator `+` is not supported between objects of type `int | Expression | Unknown | None` and `int`
- tests/native/test_x86_pcmpxstrx.py:27599:29 error[unsupported-operator] Operator `+` is not supported between objects of type `Unknown | int | Expression | None` and `int`
+ tests/native/test_x86_pcmpxstrx.py:27599:29 error[unsupported-operator] Operator `+` is not supported between objects of type `int | Expression | Unknown | None` and `int`

meson (https://github.com/mesonbuild/meson)
- mesonbuild/backend/xcodebackend.py:718:30 error[unresolved-attribute] Attribute `frameworks` is not defined on `Dependency` in union `Unknown | Dependency`
+ mesonbuild/backend/xcodebackend.py:718:30 error[unresolved-attribute] Object of type `Dependency` has no attribute `frameworks`
- mesonbuild/build.py:1817:20 error[unresolved-attribute] Attribute `is_darwin` is not defined on `None` in union `Unknown | MachineInfo | None`
+ mesonbuild/build.py:1817:20 error[unresolved-attribute] Attribute `is_darwin` is not defined on `None` in union `MachineInfo | None`
- mesonbuild/cmake/toolchain.py:258:25 error[unresolved-attribute] Attribute `split` is not defined on `None` in union `Unknown | str | None`
+ mesonbuild/cmake/toolchain.py:258:25 error[unresolved-attribute] Attribute `split` is not defined on `None` in union `str | None`
- mesonbuild/compilers/detect.py:1410:10 error[unresolved-attribute] Attribute `cpu_family` is not defined on `None` in union `Unknown | MachineInfo | None`
+ mesonbuild/compilers/detect.py:1410:10 error[unresolved-attribute] Attribute `cpu_family` is not defined on `None` in union `MachineInfo | None`
- mesonbuild/compilers/mixins/clike.py:1306:16 error[unresolved-attribute] Attribute `fatal_warnings` is not defined on `None` in union `Unknown | DynamicLinker | None`
+ mesonbuild/compilers/mixins/clike.py:1306:16 error[unresolved-attribute] Attribute `fatal_warnings` is not defined on `None` in union `DynamicLinker | None`
- mesonbuild/compilers/mixins/visualstudio.py:501:95 error[unresolved-attribute] Attribute `id` is not defined on `None` in union `(Unknown & ~ClangClDynamicLinker) | (DynamicLinker & ~ClangClDynamicLinker) | None`
+ mesonbuild/compilers/mixins/visualstudio.py:501:95 error[unresolved-attribute] Attribute `id` is not defined on `None` in union `(DynamicLinker & ~ClangClDynamicLinker) | None`
- mesonbuild/compilers/rust.py:454:32 error[unresolved-attribute] Attribute `export_dynamic_args` is not defined on `None` in union `Unknown | DynamicLinker | None`
+ mesonbuild/compilers/rust.py:454:32 error[unresolved-attribute] Attribute `export_dynamic_args` is not defined on `None` in union `DynamicLinker | None`
- mesonbuild/dependencies/boost.py:623:51 error[invalid-argument-type] Argument to bound method `arch_matches` is incorrect: Expected `str`, found `Unknown | str | None`
+ mesonbuild/dependencies/boost.py:623:51 error[invalid-argument-type] Argument to bound method `arch_matches` is incorrect: Expected `str`, found `str | None`
- mesonbuild/dependencies/dev.py:607:76 error[invalid-argument-type] Argument to function `__machine_info_to_platform_include_dir` is incorrect: Expected `MachineInfo`, found `Unknown | MachineInfo | None`
+ mesonbuild/dependencies/dev.py:607:76 error[invalid-argument-type] Argument to function `__machine_info_to_platform_include_dir` is incorrect: Expected `MachineInfo`, found `MachineInfo | None`
- mesonbuild/interpreter/interpreterobjects.py:967:16 error[invalid-return-type] Return type does not match returned value: expected `Sequence[Divergent] | int | dict[str, Divergent] | ... omitted 5 union elements`, found `Unknown | Sequence[Divergent] | int | ... omitted 7 union elements`
+ mesonbuild/interpreter/interpreterobjects.py:967:16 error[invalid-return-type] Return type does not match returned value: expected `Sequence[Divergent] | int | dict[str, Divergent] | ... omitted 5 union elements`, found `Sequence[Divergent] | int | dict[str, Divergent] | ... omitted 6 union elements`
- mesonbuild/interpreter/interpreterobjects.py:1028:16 error[unresolved-attribute] Attribute `get_target_dir` is not defined on `None` in union `Unknown | Backend | None`
+ mesonbuild/interpreter/interpreterobjects.py:1028:16 error[unresolved-attribute] Attribute `get_target_dir` is not defined on `None` in union `Backend | None`
- mesonbuild/interpreterbase/decorators.py:554:45 error[invalid-argument-type] Argument to function `check_value_type` is incorrect: Expected `tuple[type | ContainerTypeInfo, ...]`, found `(Unknown & tuple[object, ...]) | tuple[type[Unknown] | ContainerTypeInfo, ...] | (ContainerTypeInfo & tuple[object, ...]) | tuple[(Unknown & ~tuple[object, ...]) | type[Unknown] | (ContainerTypeInfo & ~tuple[object, ...])]`
+ mesonbuild/interpreterbase/decorators.py:554:45 error[invalid-argument-type] Argument to function `check_value_type` is incorrect: Expected `tuple[type | ContainerTypeInfo, ...]`, found `tuple[type[Unknown] | ContainerTypeInfo, ...] | (ContainerTypeInfo & tuple[object, ...])`
- mesonbuild/linkers/linkers.py:716:12 error[unresolved-attribute] Attribute `is_windows` is not defined on `None` in union `Unknown | MachineInfo | None`
+ mesonbuild/linkers/linkers.py:716:12 error[unresolved-attribute] Attribute `is_windows` is not defined on `None` in union `MachineInfo | None`
- mesonbuild/mformat.py:787:27 error[unsupported-operator] Operator `%` is not supported between objects of type `Unknown | int` and `Unknown | int | None`
+ mesonbuild/mformat.py:787:27 error[unsupported-operator] Operator `%` is not supported between objects of type `int | Unknown` and `int | None`
- mesonbuild/modules/i18n.py:176:13 error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Sequence[str | BuildTarget | CustomTarget | ... omitted 4 union elements]`, found `Unknown | list[Any] | list[Any | str] | list[str | None]`
+ mesonbuild/modules/i18n.py:176:13 error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Sequence[str | BuildTarget | CustomTarget | ... omitted 4 union elements]`, found `list[Any] | Unknown | list[Any | str] | list[str | None]`
- mesonbuild/msetup.py:274:39 error[unresolved-attribute] Attribute `cmd_line_options` is not defined on `None` in union `Unknown | SharedCMDOptions | None`
+ mesonbuild/msetup.py:274:39 error[unresolved-attribute] Attribute `cmd_line_options` is not defined on `None` in union `SharedCMDOptions | None`
- mesonbuild/programs.py:379:16 error[invalid-return-type] Return type does not match returned value: expected `list[str]`, found `Unknown | list[Any] | list[Any | str] | list[str | None]`
+ mesonbuild/programs.py:379:16 error[invalid-return-type] Return type does not match returned value: expected `list[str]`, found `list[Any] | Unknown | list[Any | str] | list[str | None]`
- mesonbuild/scripts/depfixer.py:282:13 error[unresolved-attribute] Attribute `seek` is not defined on `None` in union `Unknown | None | BufferedRandom`
+ mesonbuild/scripts/depfixer.py:282:13 error[unresolved-attribute] Attribute `seek` is not defined on `None` in union `None | BufferedRandom`

mongo-python-driver (https://github.com/mongodb/mongo-python-driver)
- pymongo/asynchronous/bulk.py:457:17 error[invalid-argument-type] Argument to bound method `command` is incorrect: Expected `AsyncClientSession | None`, found `Unknown | AsyncClientSession | ClientSession | None`
+ pymongo/asynchronous/bulk.py:457:17 error[invalid-argument-type] Argument to bound method `command` is incorrect: Expected `AsyncClientSession | None`, found `AsyncClientSession | ClientSession | None`
+ pymongo/asynchronous/encryption.py:420:13 error[invalid-assignment] Object of type `AsyncMongoClient[Unknown]` is not assignable to attribute `_internal_client` of type `None`
- pymongo/message.py:1797:31 error[invalid-argument-type] Argument to bound method `validate_session` is incorrect: Expected `AsyncMongoClient[Any] | None`, found `Unknown | AsyncMongoClient[Unknown] | MongoClient[Unknown]`
+ pymongo/message.py:1797:31 error[invalid-argument-type] Argument to bound method `validate_session` is incorrect: Expected `AsyncMongoClient[Any] | None`, found `AsyncMongoClient[Unknown] | MongoClient[Unknown]`
- pymongo/message.py:1797:44 error[invalid-argument-type] Argument to bound method `validate_session` is incorrect: Expected `AsyncClientSession | None`, found `Unknown | AsyncClientSession | ClientSession | None`
+ pymongo/message.py:1797:44 error[invalid-argument-type] Argument to bound method `validate_session` is incorrect: Expected `AsyncClientSession | None`, found `AsyncClientSession | ClientSession | None`
- pymongo/synchronous/bulk.py:464:16 error[invalid-return-type] Return type does not match returned value: expected `tuple[dict[str, Any], list[Mapping[str, Any]]]`, found `tuple[Unknown | CoroutineType[Any, Any, dict[str, Any]] | dict[str, Any], list[Mapping[str, Any]]]`
+ pymongo/synchronous/bulk.py:464:16 error[invalid-return-type] Return type does not match returned value: expected `tuple[dict[str, Any], list[Mapping[str, Any]]]`, found `tuple[CoroutineType[Any, Any, dict[str, Any]] | dict[str, Any], list[Mapping[str, Any]]]`
+ pymongo/synchronous/server.py:277:17 error[invalid-assignment] Invalid subscript assignment with key of type `Literal["nextBatch"]` and value of type `list[MutableMapping[str, Any] | RawBSONDocument]` on object of type `dict[str, Int64 | str]`

paasta (https://github.com/yelp/paasta)
- paasta_tools/config_utils.py:195:18 error[invalid-argument-type] Argument to function `chdir` is incorrect: Expected `int | str | bytes | PathLike[str] | PathLike[bytes]`, found `Unknown | str | None`
+ paasta_tools/config_utils.py:195:18 error[invalid-argument-type] Argument to function `chdir` is incorrect: Expected `int | str | bytes | PathLike[str] | PathLike[bytes]`, found `str | None`
- paasta_tools/tron_tools.py:1098:45 error[unresolved-attribute] Attribute `pop` is not defined on `None` in union `Unknown | None | dict[str, str]`
+ paasta_tools/tron_tools.py:1098:45 error[unresolved-attribute] Attribute `pop` is not defined on `None` in union `None | dict[str, str]`

parso (https://github.com/davidhalter/parso)
- parso/python/pep8.py:362:17 error[unresolved-attribute] Attribute `type` is not defined on `None` in union `Unknown | IndentationNode | None`
+ parso/python/pep8.py:362:17 error[unresolved-attribute] Attribute `type` is not defined on `None` in union `IndentationNode | Unknown | None`
- parso/python/pep8.py:492:42 error[unresolved-attribute] Attribute `type` is not defined on `None` in union `Unknown | IndentationNode | None`
+ parso/python/pep8.py:492:42 error[unresolved-attribute] Attribute `type` is not defined on `None` in union `IndentationNode | Unknown | None`
- parso/python/pep8.py:537:24 error[unresolved-attribute] Attribute `type` is not defined on `None` in union `Unknown | IndentationNode | None`
+ parso/python/pep8.py:537:24 error[unresolved-attribute] Attribute `type` is not defined on `None` in union `IndentationNode | Unknown | None`

pip (https://github.com/pypa/pip)
- src/pip/_internal/operations/prepare.py:387:52 error[invalid-argument-type] Argument to bound method `_fetch_metadata_using_lazy_wheel` is incorrect: Expected `Link`, found `Unknown | Link | None`
+ src/pip/_internal/operations/prepare.py:387:52 error[invalid-argument-type] Argument to bound method `_fetch_metadata_using_lazy_wheel` is incorrect: Expected `Link`, found `Link | None`
- src/pip/_internal/operations/prepare.py:609:12 error[unresolved-attribute] Attribute `is_existing_dir` is not defined on `None` in union `(Unknown & ~AlwaysFalsy) | Link | None`
+ src/pip/_internal/operations/prepare.py:609:12 error[unresolved-attribute] Attribute `is_existing_dir` is not defined on `None` in union `Link | None`
- src/pip/_vendor/distlib/resources.py:245:18 error[unresolved-attribute] Attribute `archive` is not defined on `None` in union `Unknown | None`
+ src/pip/_vendor/distlib/resources.py:245:18 error[unresolved-attribute] Attribute `archive` is not defined on `None` in union `Any | None`

psycopg (https://github.com/psycopg/psycopg)
- psycopg/psycopg/types/range.py:195:18 error[unsupported-operator] Operator `>=` is not supported between objects of type `T@Range` and `(Unknown & ~None) | (T@Range & ~None)`
+ psycopg/psycopg/types/range.py:195:18 error[unsupported-operator] Operator `>=` is not supported between objects of type `T@Range` and `T@Range & ~None`

pwndbg (https://github.com/pwndbg/pwndbg)
- pwndbg/aglib/kernel/nftables.py:96:49 error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `str | Buffer | SupportsInt | SupportsIndex | SupportsTrunc`, found `Unknown | Value | None`
+ pwndbg/aglib/kernel/nftables.py:96:49 error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `str | Buffer | SupportsInt | SupportsIndex | SupportsTrunc`, found `Value | None`
- pwndbg/commands/context.py:288:20 error[unresolved-attribute] Attribute `flush` is not defined on `(str, /) -> None` in union `Unknown | ((str, /) -> None)`
+ pwndbg/commands/context.py:288:20 error[unresolved-attribute] Object of type `(str, /) -> None` has no attribute `flush`
- pwndbg/dbg_mod/lldb/pset.py:73:12 error[unsupported-operator] Operator `not in` is not supported between objects of type `str` and `Unknown | Sequence[str] | None`
+ pwndbg/dbg_mod/lldb/pset.py:73:12 error[unsupported-operator] Operator `not in` is not supported between objects of type `str` and `Sequence[str] | None`

pycryptodome (https://github.com/Legrandin/pycryptodome)
- lib/Crypto/PublicKey/ElGamal.py:197:58 error[unresolved-attribute] Object of type `Self@_decrypt & <Protocol with members 'x'>` has no attribute `p`
+ lib/Crypto/PublicKey/ElGamal.py:197:58 error[unresolved-attribute] Object of type `Self@_decrypt` has no attribute `p`

pylox (https://github.com/sco1/pylox)
- pylox/interpreter.py:184:9 error[unresolved-attribute] Attribute `define` is not defined on `None` in union `Unknown | Environment | None`
+ pylox/interpreter.py:184:9 error[unresolved-attribute] Attribute `define` is not defined on `None` in union `Environment | None`

pywin32 (https://github.com/mhammond/pywin32)
- Pythonwin/pywin/docking/DockingBar.py:589:12 error[unresolved-attribute] Attribute `dwStyle` is not defined on `None` in union `Unknown | None`
+ Pythonwin/pywin/docking/DockingBar.py:589:12 error[unresolved-attribute] Object of type `None` has no attribute `dwStyle`
- Pythonwin/pywin/framework/editor/editor.py:254:16 error[unresolved-attribute] Attribute `GetLine` is not defined on `None` in union `Unknown | None`
+ Pythonwin/pywin/framework/editor/editor.py:254:16 error[unresolved-attribute] Object of type `None` has no attribute `GetLine`
- Pythonwin/pywin/framework/editor/editor.py:304:23 error[unresolved-attribute] Attribute `LineIndex` is not defined on `None` in union `Unknown | None`
+ Pythonwin/pywin/framework/editor/editor.py:304:23 error[unresolved-attribute] Object of type `None` has no attribute `LineIndex`
- Pythonwin/pywin/framework/editor/editor.py:322:29 error[unresolved-attribute] Attribute `Clear` is not defined on `None` in union `Unknown | None`
+ Pythonwin/pywin/framework/editor/editor.py:322:29 error[unresolved-attribute] Object of type `None` has no attribute `Clear`
- Pythonwin/pywin/framework/editor/editor.py:328:9 error[unresolved-attribute] Attribute `SetSel` is not defined on `None` in union `Unknown | None`
+ Pythonwin/pywin/framework/editor/editor.py:328:9 error[unresolved-attribute] Object of type `None` has no attribute `SetSel`
- Pythonwin/pywin/framework/sgrepmdi.py:587:9 error[unresolved-attribute] Attribute `data` is not defined on `None` in union `Unknown | None`
+ Pythonwin/pywin/framework/sgrepmdi.py:587:9 error[unresolved-attribute] Object of type `None` has no attribute `data`
- Pythonwin/pywin/scintilla/formatter.py:48:20 error[invalid-argument-type] Argument to function `len` is incorrect: Expected `Sized`, found `Unknown | None`
+ Pythonwin/pywin/scintilla/formatter.py:48:20 error[invalid-argument-type] Argument to function `len` is incorrect: Expected `Sized`, found `None | Unknown`
- adodbapi/adodbapi.py:851:43 error[unresolved-attribute] Attribute `Parameters` is not defined on `None` in union `Unknown | None | CDispatch`
+ adodbapi/adodbapi.py:851:43 error[unresolved-attribute] Attribute `Parameters` is not defined on `None` in union `None | CDispatch`
- win32/test/test_odbc.py:237:30 error[unresolved-attribute] Attribute `fetchone` is not defined on `None` in union `Unknown | None`
+ win32/test/test_odbc.py:237:30 error[unresolved-attribute] Object of type `None` has no attribute `fetchone`
- win32/test/test_odbc.py:247:26 error[unresolved-attribute] Attribute `execute` is not defined on `None` in union `Unknown | None`
+ win32/test/test_odbc.py:247:26 error[unresolved-attribute] Object of type `None` has no attribute `execute`

rotki (https://github.com/rotki/rotki)
- rotkehlchen/chain/ethereum/modules/aave/v2/accountant.py:72:52 error[invalid-argument-type] Argument to function `string_to_evm_address` is incorrect: Expected `str`, found `Unknown | str | None`
+ rotkehlchen/chain/ethereum/modules/aave/v2/accountant.py:72:52 error[invalid-argument-type] Argument to function `string_to_evm_address` is incorrect: Expected `str`, found `str | None`
- rotkehlchen/chain/evm/decoding/zerox/decoder.py:176:17 error[invalid-assignment] Invalid subscript assignment with key of type `Unknown | ChecksumAddress | None` and value of type `EvmEvent` on object of type `dict[ChecksumAddress, EvmEvent]`
+ rotkehlchen/chain/evm/decoding/zerox/decoder.py:176:17 error[invalid-assignment] Invalid subscript assignment with key of type `ChecksumAddress | None` and value of type `EvmEvent` on object of type `dict[ChecksumAddress, EvmEvent]`
- rotkehlchen/externalapis/monerium.py:232:56 warning[unused-type-ignore-comment] Unused blanket `type: ignore` directive
+ rotkehlchen/tests/api/test_historical_balances.py:836:16 error[unresolved-attribute] Object of type `RotkiNotifier | None` has no attribute `messages`
- rotkehlchen/tests/db/test_db_accounting_rules.py:482:9 error[invalid-argument-type] Argument to bound method `add_accounting_rule` is incorrect: Expected `list[int] | None`, found `list[int | Unknown | None]`
+ rotkehlchen/tests/db/test_db_accounting_rules.py:482:9 error[invalid-argument-type] Argument to bound method `add_accounting_rule` is incorrect: Expected `list[int] | None`, found `list[int | None]`

scikit-learn (https://github.com/scikit-learn/scikit-learn)
- sklearn/cluster/_kmeans.py:2116:31 error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `SupportsIndex`, found `Unknown | Literal[1] | None`
+ sklearn/cluster/_kmeans.py:2116:31 error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `SupportsIndex`, found `int | Unknown | None`
- sklearn/gaussian_process/_gpc.py:839:16 error[unresolved-attribute] Attribute `predict_proba` is not defined on `OneVsOneClassifier` in union `Unknown | _BinaryGaussianProcessClassifierLaplace | OneVsRestClassifier | OneVsOneClassifier`
+ sklearn/gaussian_process/_gpc.py:839:16 error[unresolved-attribute] Attribute `predict_proba` is not defined on `OneVsOneClassifier` in union `_BinaryGaussianProcessClassifierLaplace | OneVsRestClassifier | OneVsOneClassifier`
+ sklearn/linear_model/_glm/glm.py:317:25 error[invalid-argument-type] Argument to function `issubclass` is incorrect: Expected `type`, found `(Unknown & ~Literal["lbfgs"] & ~Literal["newton-cholesky"]) | (str & ~Literal["lbfgs"] & ~Literal["newton-cholesky"])`
- sklearn/linear_model/_stochastic_gradient.py:648:28 error[unresolved-attribute] Attribute `shape` is not defined on `None` in union `Unknown | None | ndarray[tuple[int, int], dtype[Unknown]] | ndarray[tuple[Any, ...], dtype[Unknown]] | ndarray[tuple[int], dtype[Unknown]]`
+ sklearn/linear_model/_stochastic_gradient.py:648:28 error[unresolved-attribute] Attribute `shape` is not defined on `None` in union `None | Unknown | ndarray[tuple[int, int], dtype[Unknown]] | ndarray[tuple[Any, ...], dtype[Unknown]] | ndarray[tuple[int], dtype[Unknown]]`
- sklearn/linear_model/_stochastic_gradient.py:2362:25 error[unsupported-operator] Operator `-` is not supported between objects of type `Literal[1]` and `Unknown | ndarray[tuple[Any, ...], Unknown] | None | ndarray[tuple[int], dtype[Unknown]]`
+ sklearn/linear_model/_stochastic_gradient.py:2362:25 error[unsupported-operator] Operator `-` is not supported between objects of type `Literal[1]` and `ndarray[tuple[Any, ...], Unknown] | None | ndarray[tuple[int], dtype[Unknown]] | Unknown`
- sklearn/linear_model/tests/test_logistic.py:714:20 error[unresolved-attribute] Attribute `shape` is not defined on `dict[Unknown, Unknown]` in union `Unknown | dict[Unknown, Unknown] | ndarray[tuple[Any, ...], dtype[Unknown]]`
+ sklearn/linear_model/tests/test_logistic.py:714:20 error[unresolved-attribute] Attribute `shape` is not defined on `dict[Unknown, Unknown]` in union `dict[Unknown, Unknown] | ndarray[tuple[Any, ...], dtype[Unknown]]`
+ 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:630:54 error[invalid-argument-type] Argument to function `assert_array_almost_equal` is incorrect: Expected `_SupportsArray[dtype[numpy.bool[builtins.bool] | number[Any, int | float | complex]]] | _NestedSequence[_SupportsArray[dtype[numpy.bool[builtins.bool] | number[Any, int | float | complex]]]] | int | ... omitted 5 union elements`, found `Unknown | None | float`
+ sklearn/preprocessing/tests/test_data.py:630:54 error[invalid-argument-type] Argument to function `assert_array_almost_equal` is incorrect: Expected `_SupportsArray[dtype[numpy.bool[builtins.bool] | number[Any, int | float | complex]]] | _NestedSequence[_SupportsArray[dtype[numpy.bool[builtins.bool] | number[Any, int | float | complex]]]] | int | ... omitted 5 union elements`, found `Unknown | None | int | float`

scipy (https://github.com/scipy/scipy)
- scipy/integrate/_rules/_gauss_legendre.py:60:42 error[unresolved-attribute] Attribute `float64` is not defined on `None` in union `Unknown | ModuleType | None`
+ scipy/integrate/_rules/_gauss_legendre.py:60:42 error[unresolved-attribute] Attribute `float64` is not defined on `None` in union `ModuleType | None`
- scipy/io/matlab/_mio4.py:429:21 error[unresolved-attribute] Attribute `shape_from_header` is not defined on `None` in union `Unknown | None | VarReader4`
+ scipy/io/matlab/_mio4.py:429:21 error[unresolved-attribute] Attribute `shape_from_header` is not defined on `None` in union `None | VarReader4`
- scipy/io/matlab/_mio5.py:263:13 error[unresolved-attribute] Attribute `set_stream` is not defined on `None` in union `Unknown | None`
+ scipy/io/matlab/_mio5.py:263:13 error[unresolved-attribute] Attribute `set_stream` is not defined on `None` in union `None | Unknown`
- scipy/optimize/_nonlin.py:1359:19 error[unresolved-attribute] Attribute `conj` is not defined on `None` in union `Unknown | None`
+ scipy/optimize/_nonlin.py:1359:19 error[unresolved-attribute] Attribute `conj` is not defined on `None` in union `None | Unknown`
- scipy/optimize/_shgo.py:798:16 error[unsupported-operator] Operator `in` is not supported between objects of type `str` and `Unknown | str | ndarray[tuple[Any, ...], dtype[Any]] | dict[Unknown, Unknown] | None`
+ scipy/optimize/_shgo.py:798:16 error[unsupported-operator] Operator `in` is not supported between objects of type `str` and `str | ndarray[tuple[Any, ...], dtype[Any]] | dict[Unknown, Unknown] | Unknown | None`
- scipy/optimize/_shgo.py:1141:9 error[unresolved-attribute] Attribute `process_pools` is not defined on `VertexCacheIndex` in union `Unknown | VertexCacheField | VertexCacheIndex`
+ scipy/optimize/_shgo.py:1141:9 error[unresolved-attribute] Attribute `process_pools` is not defined on `VertexCacheIndex` in union `VertexCacheField | VertexCacheIndex`
- scipy/optimize/_zeros_py.py:1175:25 error[not-iterable] Object of type `Unknown | None | tuple[()]` may not be iterable
+ scipy/optimize/_zeros_py.py:1175:25 error[not-iterable] Object of type `None | Unknown | tuple[()]` may not be iterable
- scipy/sparse/_compressed.py:1145:22 error[not-iterable] Object of type `object` is not iterable
- scipy/special/tests/test_cdflib.py:117:54 error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `Iterable[Unknown]`, found `Unknown | None | list[Unknown | None]`
+ scipy/special/tests/test_cdflib.py:117:54 error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `Iterable[Unknown]`, found `None | (Unknown & Top[list[Unknown]]) | list[Unknown | None]`

scrapy (https://github.com/scrapy/scrapy)
+ scrapy/contracts/__init__.py:44:21 error[unresolved-attribute] Object of type `Self@add_pre_hook` has no attribute `pre_process`
- scrapy/spiders/feed.py:59:20 error[call-non-callable] Object of type `object` is not callable
- tests/test_logstats.py:57:16 error[unresolved-attribute] Attribute `get_value` is not defined on `None` in union `Unknown | StatsCollector | None`
+ tests/test_logstats.py:57:16 error[unresolved-attribute] Attribute `get_value` is not defined on `None` in union `StatsCollector | None`
- tests/test_scheduler_base.py:94:13 error[unresolved-attribute] Attribute `close` is not defined on `MinimalScheduler` in union `Unknown | MinimalScheduler`
+ tests/test_scheduler_base.py:94:13 error[unresolved-attribute] Object of type `MinimalScheduler` has no attribute `close`

setuptools (https://github.com/pypa/setuptools)
- setuptools/_distutils/command/install.py:681:29 error[invalid-argument-type] Argument to function `makedirs` is incorrect: Expected `str | bytes | PathLike[str] | PathLike[bytes]`, found `Unknown | str | int`
+ setuptools/_distutils/command/install.py:681:29 error[invalid-argument-type] Argument to function `makedirs` is incorrect: Expected `str | bytes | PathLike[str] | PathLike[bytes]`, found `str | int | Any`
+ setuptools/_vendor/backports/tarfile/__init__.py:2107:9 error[invalid-assignment] Object of type `int | float` is not assignable to attribute `mtime` on type `Unknown | TarInfo`
- setuptools/_vendor/wheel/_bdist_wheel.py:442:23 error[invalid-argument-type] Argument to bound method `egg2dist` is incorrect: Expected `str`, found `Unknown | None`
+ setuptools/_vendor/wheel/_bdist_wheel.py:442:23 error[invalid-argument-type] Argument to bound method `egg2dist` is incorrect: Expected `str`, found `None`

sockeye (https://github.com/awslabs/sockeye)
- sockeye/training.py:500:64 error[unresolved-attribute] Attribute `best_metric` is not defined on `None` in union `Unknown | None | TrainState`
+ sockeye/training.py:500:64 error[unresolved-attribute] Attribute `best_metric` is not defined on `None` in union `None | TrainState`
- sockeye/training.py:507:21 error[invalid-assignment] Object of type `Literal[0]` is not assignable to attribute `num_not_improved` on type `Unknown | None | TrainState`
+ sockeye/training.py:507:21 error[invalid-assignment] Object of type `Literal[0]` is not assignable to attribute `num_not_improved` on type `None | TrainState`
- sockeye/training.py:510:13 error[unresolved-attribute] Attribute `num_not_improved` is not defined on `None` in union `Unknown | None | TrainState`
+ sockeye/training.py:510:13 error[unresolved-attribute] Attribute `num_not_improved` is not defined on `None` in union `None | TrainState`
- sockeye/training.py:817:53 error[unresolved-attribute] Attribute `best_checkpoint` is not defined on `None` in union `Unknown | None | TrainState`
+ sockeye/training.py:817:53 error[unresolved-attribute] Attribute `best_checkpoint` is not defined on `None` in union `None | TrainState`

spack (https://github.com/spack/spack)
- lib/spack/spack/fetch_strategy.py:1325:12 error[unresolved-attribute] Attribute `expanded` is not defined on `None` in union `Unknown | None`
+ lib/spack/spack/fetch_strategy.py:1325:12 error[unresolved-attribute] Object of type `None` has no attribute `expanded`
- lib/spack/spack/graph.py:219:28 error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `SupportsIndex`, found `Unknown | None | Literal[0]`
+ lib/spack/spack/graph.py:219:28 error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `SupportsIndex`, found `None | int`
+ lib/spack/spack/spec.py:2406:17 error[unresolved-attribute] Object of type `Self@to_node_dict` has no attribute `_package_hash`
+ lib/spack/spack/spec.py:3733:9 error[unresolved-attribute] Unresolved attribute `spec` on type `VariantMap`
- lib/spack/spack/test/cmd/dependencies.py:62:40 error[unresolved-attribute] Attribute `dependencies` is not defined on `None` in union `Unknown | Spec | None`
+ lib/spack/spack/test/cmd/dependencies.py:62:40 error[unresolved-attribute] Attribute `dependencies` is not defined on `None` in union `Spec | None`
- lib/spack/spack/test/spec_syntax.py:1767:12 error[unresolved-attribute] Attribute `platform` is not defined on `None` in union `Unknown | None | ArchSpec`
+ lib/spack/spack/test/spec_syntax.py:1767:12 error[unresolved-attribute] Attribute `platform` is not defined on `None` in union `None | ArchSpec | Unknown`
- lib/spack/spack/vendor/ruamel/yaml/emitter.py:950:12 error[unresolved-attribute] Attribute `comment` is not defined on `None` in union `Unknown | None`
+ lib/spack/spack/vendor/ruamel/yaml/emitter.py:950:12 error[unresolved-attribute] Attribute `comment` is not defined on `None` in union `None | Unknown`

sphinx (https://github.com/sphinx-doc/sphinx)
- sphinx/domains/c/_ast.py:375:16 error[unresolved-attribute] Attribute `get_id` is not defined on `ASTExpression` in union `Unknown | ASTExpression`
+ sphinx/domains/c/_ast.py:375:16 error[unresolved-attribute] Object of type `ASTExpression` has no attribute `get_id`

static-frame (https://github.com/static-frame/static-frame)
- static_frame/core/display.py:622:28 warning[possibly-unresolved-reference] Name `index_depth_extend` used when possibly not defined
- static_frame/core/node_selector.py:536:39 error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `(Hashable, /) -> Unknown`, found `Unknown | TLocSelectorFunc@__init__`
+ static_frame/core/node_selector.py:536:39 error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `(Hashable, /) -> Unknown`, found `TLocSelectorFunc@__init__`

stone (https://github.com/dropbox/stone)
- stone/backends/js_client.py:98:30 error[unresolved-attribute] Attribute `attribute_comment` is not defined on `None` in union `Unknown | None`
+ stone/backends/js_client.py:98:30 error[unresolved-attribute] Attribute `attribute_comment` is not defined on `None` in union `None | (Unknown & Namespace)`
- stone/backends/obj_c_client.py:228:17 error[unresolved-attribute] Attribute `class_name` is not defined on `None` in union `Unknown | None`
+ stone/backends/obj_c_client.py:228:17 error[unresolved-attribute] Attribute `class_name` is not defined on `None` in union `None | (Unknown & Namespace)`
- stone/backends/obj_c_client.py:405:35 error[unresolved-attribute] Attribute `transport_client_name` is not defined on `None` in union `Unknown | None`
+ stone/backends/obj_c_client.py:405:35 error[unresolved-attribute] Attribute `transport_client_name` is not defined on `None` in union `None | (Unknown & Namespace)`
- stone/backends/obj_c_client.py:416:54 error[unresolved-attribute] Attribute `auth_type` is not defined on `None` in union `Unknown | None`
+ stone/backends/obj_c_client.py:416:54 error[unresolved-attribute] Attribute `auth_type` is not defined on `None` in union `None | (Unknown & Namespace)`
- stone/backends/obj_c_types.py:235:20 error[unresolved-attribute] Attribute `documentation` is not defined on `None` in union `Unknown | None`
+ stone/backends/obj_c_types.py:235:20 error[unresolved-attribute] Attribute `documentation` is not defined on `None` in union `None | (Unknown & Namespace)`
- stone/backends/python_client.py:121:53 error[unresolved-attribute] Attribute `module_name` is not defined on `None` in union `Unknown | None`
+ stone/backends/python_client.py:121:53 error[unresolved-attribute] Attribute `module_name` is not defined on `None` in union `None | (Unknown & Namespace)`
- stone/backends/swift_client.py:166:67 error[unresolved-attribute] Attribute `module_name` is not defined on `None` in union `Unknown | None`
+ stone/backends/swift_client.py:166:67 error[unresolved-attribute] Attribute `module_name` is not defined on `None` in union `None | (Unknown & Namespace)`
- stone/backends/tsd_client.py:112:24 error[unresolved-attribute] Attribute `indent_level` is not defined on `None` in union `Unknown | None`
+ stone/backends/tsd_client.py:112:24 error[unresolved-attribute] Attribute `indent_level` is not defined on `None` in union `None | (Unknown & Namespace)`
- stone/frontend/lexer.py:73:46 error[unresolved-attribute] Attribute `lineno` is not defined on `None` in union `Unknown | None`
+ stone/frontend/lexer.py:73:46 error[unresolved-attribute] Attribute `lineno` is not defined on `None` in union `None | Unknown`

sympy (https://github.com/sympy/sympy)
- sympy/core/evalf.py:1348:32 error[invalid-argument-type] Argument to function `fastlog` is incorrect: Expected `tuple[int, int, int, int] | None`, found `Unknown | mpf`
+ sympy/core/evalf.py:1348:32 error[invalid-argument-type] Argument to function `fastlog` is incorrect: Expected `tuple[int, int, int, int] | None`, found `mpf`
- sympy/core/evalf.py:1712:28 error[invalid-argument-type] Argument to function `evalf` is incorrect: Expected `Expr`, found `Self@_to_mpmath & ~<Protocol with members '_as_mpf_val'>`
+ sympy/core/evalf.py:1712:28 error[invalid-argument-type] Argument to function `evalf` is incorrect: Expected `Expr`, found `Self@_to_mpmath`
- sympy/matrices/common.py:3098:50 error[invalid-argument-type] Argument to bound method `indices` is incorrect: Expected `SupportsIndex`, found `Unknown | None | int`
+ sympy/matrices/common.py:3098:50 error[invalid-argument-type] Argument to bound method `indices` is incorrect: Expected `SupportsIndex`, found `Any | None | int`
- sympy/physics/biomechanics/tests/test_activation.py:265:13 error[invalid-assignment] Object of type `None` is not assignable to attribute `b` on type `Unknown | FirstOrderActivationDeGroote2016`
+ sympy/physics/biomechanics/tests/test_activation.py:265:13 error[invalid-assignment] Cannot assign to read-only property `b` on object of type `FirstOrderActivationDeGroote2016`: Attempted assignment to `FirstOrderActivationDeGroote2016.b` here
- sympy/polys/rings.py:970:38 error[invalid-argument-type] Argument to bound method `_rsub_ground` is incorrect: Argument type `object` does not satisfy upper bound `RingElement` of type variable `Er`
- sympy/printing/llvmjitcode.py:316:17 error[unresolved-attribute] Attribute `args` is not defined on `None` in union `Unknown | None`
+ sympy/printing/llvmjitcode.py:316:17 error[unresolved-attribute] Attribute `args` is not defined on `None` in union `None | Unknown`
- sympy/printing/pretty/stringpict.py:452:12 error[unsupported-operator] Operator `>` is not supported between objects of type `Unknown | Literal[0] | None` and `Unknown | int`
+ sympy/printing/pretty/stringpict.py:452:12 error[unsupported-operator] Operator `>` is not supported between objects of type `Unknown | int | None` and `Unknown | int`
- sympy/printing/pretty/stringpict.py:495:12 error[unsupported-operator] Operator `>` is not supported between objects of type `Unknown | Literal[0] | None` and `Unknown | int`
+ sympy/printing/pretty/stringpict.py:495:12 error[unsupported-operator] Operator `>` is not supported between objects of type `Unknown | int | None` and `Unknown | int`

tornado (https://github.com/tornadoweb/tornado)
- tornado/web.py:218:59 error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `dict[str, type[UIModule]]`, found `Unknown | dict[str, <class '_linkify'> | <class '_xsrf_form_html'> | <class 'TemplateModule'>]`
+ tornado/web.py:218:59 error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `dict[str, type[UIModule]]`, found `dict[str, <class '_linkify'> | <class '_xsrf_form_html'> | <class 'TemplateModule'>]`

urllib3 (https://github.com/urllib3/urllib3)
- src/urllib3/util/timeout.py:243:35 error[invalid-argument-type] Argument to function `min` is incorrect: Argument type `(Unknown & ~None) | int | float | _TYPE_DEFAULT` does not satisfy upper bound `SupportsDunderLT[Any] | SupportsDunderGT[Any]` of type variable `SupportsRichComparisonT`
+ src/urllib3/util/timeout.py:243:35 error[invalid-argument-type] Argument to function `min` is incorrect: Argument type `int | float | _TYPE_DEFAULT` does not satisfy upper bound `SupportsDunderLT[Any] | SupportsDunderGT[Any]` of type variable `SupportsRichComparisonT`

Full report with detailed diff (timing results)

@charliermarsh charliermarsh force-pushed the charlie/implicit-instance-attribute branch from f9d5566 to 262a8a0 Compare March 31, 2026 13:46
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