[ty] Stop widening implicit instance attributes with Unknown#24320
Draft
charliermarsh wants to merge 2 commits intomainfrom
Draft
[ty] Stop widening implicit instance attributes with Unknown#24320charliermarsh wants to merge 2 commits intomainfrom
charliermarsh wants to merge 2 commits intomainfrom
Conversation
Typing conformance resultsNo changes detected ✅Current numbersThe 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. |
Memory usage reportSummary
Significant changesClick to expand detailed breakdownflake8
trio
sphinx
prefect
|
|
| 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`f9d5566 to
262a8a0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.