Ecosystem report

Old: main (merge base) c7ba8f78 New: 27031/merge 5ab96df6
Lint Rule Removed Added Changed
Total 181 4 12
invalid-argument-type 153 0 4
unsupported-operator 5 0 7
invalid-assignment 8 0 0
unresolved-attribute 7 0 1
missing-argument 4 0 0
invalid-return-type 3 0 0
redundant-cast 0 2 0
unused-type-ignore-comment 0 2 0
no-matching-overload 1 0 0
Project Removed Added Changed
Total 181 4 12
core 39 0 0
apprise 24 0 0
dd-trace-py 18 0 0
ibis 11 0 0
schema_salad 9 0 0
meson 8 0 0
prefect 6 2 0
scipy 0 0 8
manticore 4 0 2
openlibrary 6 0 0
pandas 6 0 0
pylint 3 0 1
rotki 4 0 0
spack 4 0 0
sympy 2 1 0
zulip 3 0 0
beartype 2 0 0
bokeh 2 0 0
cloud-init 2 0 0
comtypes 2 0 0

CPython (Argument Clinic) (https://github.com/python/cpython)

Tools/clinic/libclinic/converter.py

[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, tuple[str, str]].__getitem__(key: str, /) -> tuple[str, str]` cannot be called with key of type `None` on object of type `dict[str, tuple[str, str]]`

apprise (https://github.com/caronc/apprise)

apprise/plugins/email/base.py

[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, dict[str, int]].__getitem__(key: str, /) -> dict[str, int]` cannot be called with key of type `None` on object of type `dict[str, dict[str, int]]`
[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, dict[str, int]].__getitem__(key: str, /) -> dict[str, int]` cannot be called with key of type `dict[str, dict[str, int]]` on object of type `dict[str, dict[str, int]]`
[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, dict[str, int]].__getitem__(key: str, /) -> dict[str, int]` cannot be called with key of type `int` on object of type `dict[str, dict[str, int]]`
[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, dict[str, int]].__getitem__(key: str, /) -> dict[str, int]` cannot be called with key of type `tuple[str, str, str]` on object of type `dict[str, dict[str, int]]`

apprise/plugins/growl.py

[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[int, str].__getitem__(key: int, /) -> str` cannot be called with key of type `None` on object of type `dict[int, str]`
[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[int, str].__getitem__(key: int, /) -> str` cannot be called with key of type `dict[int, str]` on object of type `dict[int, str]`
[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[int, str].__getitem__(key: int, /) -> str` cannot be called with key of type `str` on object of type `dict[int, str]`
[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[int, str].__getitem__(key: int, /) -> str` cannot be called with key of type `tuple[int, int]` on object of type `dict[int, str]`

apprise/plugins/irc/state.py

[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[int, str].__getitem__(key: int, /) -> str` cannot be called with key of type `None` on object of type `dict[int, str]`
[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[int, str].__getitem__(key: int, /) -> str` cannot be called with key of type `None` on object of type `dict[int, str]`

apprise/plugins/jira.py

[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[int, str].__getitem__(key: int, /) -> str` cannot be called with key of type `None` on object of type `dict[int, str]`
[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[int, str].__getitem__(key: int, /) -> str` cannot be called with key of type `dict[int, str]` on object of type `dict[int, str]`
[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[int, str].__getitem__(key: int, /) -> str` cannot be called with key of type `str` on object of type `dict[int, str]`
[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[int, str].__getitem__(key: int, /) -> str` cannot be called with key of type `tuple[str, str, str, str, str, str]` on object of type `dict[int, str]`
[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[int, str].__getitem__(key: int, /) -> str` cannot be called with key of type `tuple[str, str]` on object of type `dict[int, str]`

apprise/plugins/opsgenie.py

[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[int, str].__getitem__(key: int, /) -> str` cannot be called with key of type `None` on object of type `dict[int, str]`
[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[int, str].__getitem__(key: int, /) -> str` cannot be called with key of type `dict[int, str]` on object of type `dict[int, str]`
[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[int, str].__getitem__(key: int, /) -> str` cannot be called with key of type `str` on object of type `dict[int, str]`
[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[int, str].__getitem__(key: int, /) -> str` cannot be called with key of type `tuple[str, str, str, str, str, str]` on object of type `dict[int, str]`
[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[int, str].__getitem__(key: int, /) -> str` cannot be called with key of type `tuple[str, str]` on object of type `dict[int, str]`

apprise/plugins/pagertree.py

[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, str].__getitem__(key: str, /) -> str` cannot be called with key of type `None` on object of type `dict[str, str]`

apprise/plugins/prowl.py

[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[int, str].__getitem__(key: int, /) -> str` cannot be called with key of type `None` on object of type `dict[int, str]`
[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[int, str].__getitem__(key: int, /) -> str` cannot be called with key of type `dict[int, str]` on object of type `dict[int, str]`
[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[int, str].__getitem__(key: int, /) -> str` cannot be called with key of type `str` on object of type `dict[int, str]`

beartype (https://github.com/beartype/beartype)

beartype/_check/error/_pep/pep484585/errpep484585container.py

[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[HintSign, range].__getitem__(key: HintSign, /) -> range` cannot be called with key of type `None` on object of type `dict[HintSign, range]`

beartype/_check/error/_pep/pep484585/errpep484585mapping.py

[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[HintSign, range].__getitem__(key: HintSign, /) -> range` cannot be called with key of type `None` on object of type `dict[HintSign, range]`

bokeh (https://github.com/bokeh/bokeh)

src/bokeh/plotting/_renderer.py

[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, Any].__getitem__(key: str, /) -> Any` cannot be called with key of type `None` on object of type `dict[str, Any]`
[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, Any].__getitem__(key: str, /) -> Any` cannot be called with key of type `None` on object of type `dict[str, Any]`

cloud-init (https://github.com/canonical/cloud-init)

cloudinit/sources/DataSourceVMware.py

[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, dict[str, Interface]].__getitem__(key: str, /) -> dict[str, Interface]` cannot be called with key of type `None` on object of type `dict[str, dict[str, Interface]]`
[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, dict[str, Interface]].__getitem__(key: str, /) -> dict[str, Interface]` cannot be called with key of type `None` on object of type `dict[str, dict[str, Interface]]`

comtypes (https://github.com/enthought/comtypes)

comtypes/_memberspec.py

[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, Unknown].__getitem__(key: str, /) -> Unknown` cannot be called with key of type `None` on object of type `dict[str, Unknown]`
[error] invalid-assignment - Invalid subscript assignment with key of type `str | None` and value of type `_SimpleCData[Any] | _Pointer[Any] | CFuncPtr | ... omitted 3 union elements` on object of type `dict[str, Unknown]`

core (https://github.com/home-assistant/core)

homeassistant/components/alexa/capabilities.py

[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, str].__getitem__(key: str, /) -> str` cannot be called with key of type `None` on object of type `dict[str, str]`

homeassistant/components/deconz/device_trigger.py

[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, dict[tuple[str, str], dict[str, int]]].__getitem__(key: str, /) -> dict[tuple[str, str], dict[str, int]]` cannot be called with key of type `None` on object of type `dict[str, dict[tuple[str, str], dict[str, int]]]`
[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, dict[tuple[str, str], dict[str, int]]].__getitem__(key: str, /) -> dict[tuple[str, str], dict[str, int]]` cannot be called with key of type `None` on object of type `dict[str, dict[tuple[str, str], dict[str, int]]]`

homeassistant/components/ecobee/climate.py

[error] invalid-argument-type - Argument to function `sorted` is incorrect: Argument type `str | None` does not satisfy upper bound `SupportsDunderLT[Any] | SupportsDunderGT[Any]` of type variable `SupportsRichComparisonT`

homeassistant/components/intent/timers.py

[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, TimerHandler].__getitem__(key: str, /) -> TimerHandler` cannot be called with key of type `None` on object of type `dict[str, TimerHandler]`
[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, TimerHandler].__getitem__(key: str, /) -> TimerHandler` cannot be called with key of type `None` on object of type `dict[str, TimerHandler]`
[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, TimerHandler].__getitem__(key: str, /) -> TimerHandler` cannot be called with key of type `None` on object of type `dict[str, TimerHandler]`
[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, TimerHandler].__getitem__(key: str, /) -> TimerHandler` cannot be called with key of type `None` on object of type `dict[str, TimerHandler]`
[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, TimerHandler].__getitem__(key: str, /) -> TimerHandler` cannot be called with key of type `None` on object of type `dict[str, TimerHandler]`
[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, TimerHandler].__getitem__(key: str, /) -> TimerHandler` cannot be called with key of type `None` on object of type `dict[str, TimerHandler]`

homeassistant/components/network/__init__.py

[error] invalid-return-type - Return type does not match returned value: expected `str`, found `str | None`

homeassistant/components/opnsense/device_tracker.py

[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, DeviceDetails].__getitem__(key: str, /) -> DeviceDetails` cannot be called with key of type `None` on object of type `dict[str, DeviceDetails]`

homeassistant/components/steam_online/sensor.py

[error] invalid-argument-type - Argument to `SteamEntity.__init__` is incorrect: Expected `str`, found `str | None`

homeassistant/components/amberelectric/helpers.py

[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, str].__getitem__(key: str, /) -> str` cannot be called with key of type `None` on object of type `dict[str, str]`

homeassistant/components/bang_olufsen/media_player.py

[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, str].__getitem__(key: str, /) -> str` cannot be called with key of type `None` on object of type `dict[str, str]`

homeassistant/components/deconz/services.py

[error] invalid-argument-type - Argument to bound method `list.remove` is incorrect: Expected `str`, found `str | None`
[error] invalid-argument-type - Argument to bound method `list.remove` is incorrect: Expected `str`, found `str | None`

homeassistant/components/dsmr/sensor.py

[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, UnitOfVolume].__getitem__(key: str, /) -> UnitOfVolume` cannot be called with key of type `None` on object of type `dict[str, UnitOfVolume]`

homeassistant/components/homematic/entity.py

[error] invalid-assignment - Invalid subscript assignment with key of type `str | None` and value of type `Unknown` on object of type `dict[str, Any]`
[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, Any].__getitem__(key: str, /) -> Any` cannot be called with key of type `None` on object of type `dict[str, Any]`

homeassistant/components/huawei_lte/binary_sensor.py

[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, str].__getitem__(key: str, /) -> str` cannot be called with key of type `None` on object of type `dict[str, str]`

homeassistant/components/hue/v1/device_trigger.py

[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, dict[tuple[str, str], dict[str, int]]].__getitem__(key: str, /) -> dict[tuple[str, str], dict[str, int]]` cannot be called with key of type `None` on object of type `dict[str, dict[tuple[str, str], dict[str, int]]]`
[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, dict[tuple[str, str], dict[str, int]]].__getitem__(key: str, /) -> dict[tuple[str, str], dict[str, int]]` cannot be called with key of type `None` on object of type `dict[str, dict[tuple[str, str], dict[str, int]]]`

homeassistant/components/mqtt/tag.py

[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, dict[str, MQTTTagScanner]].__getitem__(key: str, /) -> dict[str, MQTTTagScanner]` cannot be called with key of type `None` on object of type `dict[str, dict[str, MQTTTagScanner]]`
[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, dict[str, MQTTTagScanner]].__getitem__(key: str, /) -> dict[str, MQTTTagScanner]` cannot be called with key of type `None` on object of type `dict[str, dict[str, MQTTTagScanner]]`

homeassistant/components/ps4/media_player.py

[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, JsonValueType].__getitem__(key: str, /) -> JsonValueType` cannot be called with key of type `None` on object of type `dict[str, JsonValueType]`
[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, JsonValueType].__getitem__(key: str, /) -> JsonValueType` cannot be called with key of type `None` on object of type `dict[str, JsonValueType]`
[error] invalid-argument-type - Argument to bound method `dict.pop` is incorrect: Expected `str`, found `str | None`

homeassistant/components/reolink/__init__.py

[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, int].__getitem__(key: str, /) -> int` cannot be called with key of type `None` on object of type `dict[str, int]`

homeassistant/components/screenlogic/coordinator.py

[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, dict[str, Any]].__getitem__(key: str, /) -> dict[str, Any]` cannot be called with key of type `None` on object of type `dict[str, dict[str, Any]]`

homeassistant/components/shelly/event.py

[error] invalid-argument-type - Argument to bound method `EventEntity._trigger_event` is incorrect: Expected `str`, found `Any | None`

homeassistant/components/stream/__init__.py

[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, StreamOutput].__getitem__(key: str, /) -> StreamOutput` cannot be called with key of type `None` on object of type `dict[str, StreamOutput]`
[error] invalid-argument-type - Method `__delitem__` of type `bound method dict[str, StreamOutput].__delitem__(key: str, /) -> None` cannot be called with key of type `str | None` on object of type `dict[str, StreamOutput]`

homeassistant/components/subaru/sensor.py

[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, Unknown].__getitem__(key: str, /) -> Unknown` cannot be called with key of type `None` on object of type `dict[str, Unknown]`
[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, Unknown].__getitem__(key: str, /) -> Unknown` cannot be called with key of type `None` on object of type `dict[str, Unknown]`

homeassistant/components/tibber/sensor.py

[error] unresolved-attribute - Attribute `replace` is not defined on `None` in union `str | None`
[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, str].__getitem__(key: str, /) -> str` cannot be called with key of type `None` on object of type `dict[str, str]`

homeassistant/components/yolink/device_trigger.py

[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, set[str]].__getitem__(key: str, /) -> set[str]` cannot be called with key of type `None` on object of type `dict[str, set[str]]`

homeassistant/components/zeroconf/discovery.py

[error] invalid-argument-type - Argument to function `async_create_issue` is incorrect: Expected `dict[str, str] | None`, found `dict[str, str | Any | None]`

cwltool (https://github.com/common-workflow-language/cwltool)

cwltool/cwlprov/ro.py

[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, str].__getitem__(key: str, /) -> str` cannot be called with key of type `None` on object of type `dict[str, str]`
[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, str].__getitem__(key: str, /) -> str` cannot be called with key of type `None` on object of type `dict[str, str]`

dd-trace-py (https://github.com/DataDog/dd-trace-py)

ddtrace/appsec/_iast/taint_sinks/ast_taint.py

[error] invalid-argument-type - Argument to function `_iast_report_ssrf` is incorrect: Expected `str`, found `Any | None`

tests/appsec/iast/test_overhead_control_engine.py

[error] unsupported-operator - Operator `+` is not supported between objects of type `EnvVariable[int]` and `Literal[1]`

ddtrace/internal/coverage/code.py

[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, CollectInContext].__getitem__(key: str, /) -> CollectInContext` cannot be called with key of type `None` on object of type `dict[str, CollectInContext]`
[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, CoverageLines].__getitem__(key: str, /) -> CoverageLines` cannot be called with key of type `None` on object of type `dict[str, CoverageLines]`
[error] invalid-argument-type - Method `__getitem__` of type `bound method defaultdict[str, CoverageLines].__getitem__(key: str, /) -> CoverageLines` cannot be called with key of type `None` on object of type `defaultdict[str, CoverageLines]`
[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, CoverageLines].__getitem__(key: str, /) -> CoverageLines` cannot be called with key of type `None` on object of type `dict[str, CoverageLines]`
[error] invalid-argument-type - Method `__delitem__` of type `bound method dict[str, CollectInContext].__delitem__(key: str, /) -> None` cannot be called with key of type `str | None` on object of type `dict[str, CollectInContext]`
[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, CollectInContext].__getitem__(key: str, /) -> CollectInContext` cannot be called with key of type `None` on object of type `dict[str, CollectInContext]`
[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, CoverageLines].__getitem__(key: str, /) -> CoverageLines` cannot be called with key of type `None` on object of type `dict[str, CoverageLines]`
[error] invalid-argument-type - Method `__getitem__` of type `bound method defaultdict[str, CoverageLines].__getitem__(key: str, /) -> CoverageLines` cannot be called with key of type `None` on object of type `defaultdict[str, CoverageLines]`
[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, CoverageLines].__getitem__(key: str, /) -> CoverageLines` cannot be called with key of type `None` on object of type `dict[str, CoverageLines]`
[error] invalid-argument-type - Method `__delitem__` of type `bound method dict[str, CollectInContext].__delitem__(key: str, /) -> None` cannot be called with key of type `str | None` on object of type `dict[str, CollectInContext]`

tests/ci_visibility/test_atr.py

[error] invalid-argument-type - Argument to bound method `TestVisibilityTest.atr_finish_retry` is incorrect: Expected `int`, found `int | None`
[error] invalid-argument-type - Argument to bound method `TestVisibilityTest.atr_finish_retry` is incorrect: Expected `int`, found `int | None`

tests/ci_visibility/test_efd.py

[error] invalid-argument-type - Argument to bound method `TestVisibilityTest.efd_start_retry` is incorrect: Expected `int`, found `int | None`
[error] invalid-argument-type - Argument to bound method `TestVisibilityTest.efd_finish_retry` is incorrect: Expected `int`, found `int | None`
[error] invalid-argument-type - Argument to bound method `TestVisibilityTest.efd_finish_retry` is incorrect: Expected `int`, found `int | None`

tests/contrib/patch.py

[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, tuple[str, ...]].__getitem__(key: str, /) -> tuple[str, ...]` cannot be called with key of type `None` on object of type `dict[str, tuple[str, ...]]`

ibis (https://github.com/ibis-project/ibis)

ibis/expr/datatypes/tests/test_core.py

[error] invalid-argument-type - Argument is incorrect: Expected `Literal[0, 1, 2, 3, 4, ... omitted 5 literals] | None`, found `int`
[error] invalid-argument-type - Argument is incorrect: Expected `Literal[0, 1, 2, 3, 4, ... omitted 5 literals] | None`, found `int`
[error] invalid-argument-type - Argument is incorrect: Expected `Literal[0, 1, 2, 3, 4, ... omitted 5 literals] | None`, found `int`

ibis/tests/expr/test_value_exprs.py

[error] missing-argument - No argument provided for required parameter `value_type`
[error] invalid-argument-type - Argument is incorrect: Expected `bool`, found `Array[Unknown]`
[error] missing-argument - No argument provided for required parameter `value_type`
[error] invalid-argument-type - Argument is incorrect: Expected `bool`, found `Float64`
[error] missing-argument - No argument provided for required parameter `value_type`
[error] invalid-argument-type - Argument is incorrect: Expected `bool`, found `Array[Unknown]`
[error] missing-argument - No argument provided for required parameter `value_type`
[error] invalid-argument-type - Argument is incorrect: Expected `bool`, found `Float64`

jax (https://github.com/google/jax)

jax/_src/pallas/mosaic/lowering.py

[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, Overload[[SupportsRichComparisonT](arg1: SupportsRichComparisonT, arg2: SupportsRichComparisonT, /, *_args: SupportsRichComparisonT, *, key: None = None) -> SupportsRichComparisonT, [_T](arg1: _T, arg2: _T, /, *_args: _T, *, key: (_T, /) -> SupportsDunderLT[Any] | SupportsDunderGT[Any]) -> _T, [SupportsRichComparisonT](iterable: Iterable[SupportsRichComparisonT], /, *, key: None = None) -> SupportsRichComparisonT, [_T](iterable: Iterable[_T], /, *, key: (_T, /) -> SupportsDunderLT[Any] | SupportsDunderGT[Any]) -> _T, [SupportsRichComparisonT, _T](iterable: Iterable[SupportsRichComparisonT], /, *, key: None = None, default: _T) -> SupportsRichComparisonT | _T, [_T1, _T2](iterable: Iterable[_T1], /, *, key: (_T1, /) -> SupportsDunderLT[Any] | SupportsDunderGT[Any], default: _T2) -> _T1 | _T2]].__getitem__(key: str, /) -> Overload[(arg1: SupportsRichComparisonT, arg2: SupportsRichComparisonT, /, *_args: SupportsRichComparisonT, *, key: None = None) -> SupportsRichComparisonT, (arg1: _T, arg2: _T, /, *_args: _T, *, key: (_T, /) -> SupportsDunderLT[Any] | SupportsDunderGT[Any]) -> _T, (iterable: Iterable[SupportsRichComparisonT], /, *, key: None = None) -> SupportsRichComparisonT, (iterable: Iterable[_T], /, *, key: (_T, /) -> SupportsDunderLT[Any] | SupportsDunderGT[Any]) -> _T, (iterable: Iterable[SupportsRichComparisonT], /, *, key: None = None, default: _T) -> SupportsRichComparisonT | _T, (iterable: Iterable[_T1], /, *, key: (_T1, /) -> SupportsDunderLT[Any] | SupportsDunderGT[Any], default: _T2) -> _T1 | _T2]` cannot be called with key of type `None` on object of type `dict[str, Overload[[SupportsRichComparisonT](arg1: SupportsRichComparisonT, arg2: SupportsRichComparisonT, /, *_args: SupportsRichComparisonT, *, key: None = None) -> SupportsRichComparisonT, [_T](arg1: _T, arg2: _T, /, *_args: _T, *, key: (_T, /) -> SupportsDunderLT[Any] | SupportsDunderGT[Any]) -> _T, [SupportsRichComparisonT](iterable: Iterable[SupportsRichComparisonT], /, *, key: None = None) -> SupportsRichComparisonT, [_T](iterable: Iterable[_T], /, *, key: (_T, /) -> SupportsDunderLT[Any] | SupportsDunderGT[Any]) -> _T, [SupportsRichComparisonT, _T](iterable: Iterable[SupportsRichComparisonT], /, *, key: None = None, default: _T) -> SupportsRichComparisonT | _T, [_T1, _T2](iterable: Iterable[_T1], /, *, key: (_T1, /) -> SupportsDunderLT[Any] | SupportsDunderGT[Any], default: _T2) -> _T1 | _T2]]`

jax/_src/pallas/mosaic/pipeline.py

[error] unresolved-attribute - Attribute `from_type` is not defined on `CoreMemorySpace` in union `Literal[MemorySpace.SMEM, MemorySpace.VMEM] | CoreMemorySpace`

manticore (https://github.com/trailofbits/manticore)

manticore/wasm/structure.py

[error] invalid-argument-type - Argument to `ConcretizeCondition.__init__` is incorrect: Expected `Bool`, found `bool | Unknown`
[error] invalid-argument-type - Argument to `ConcretizeCondition.__init__` is incorrect: Expected `Bool`, found `Literal[True] | Unknown`
[error] invalid-argument-type - Argument to `ConcretizeCondition.__init__` is incorrect: Expected `Bool`, found `bool | Unknown`
[error] invalid-argument-type - Argument to `ConcretizeCondition.__init__` is incorrect: Expected `Bool`, found `Literal[True] | Unknown`
[error] invalid-argument-type - Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> FuncAddr | None, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[FuncAddr | None]]` cannot be called with key of type `Activation` on object of type `list[FuncAddr | None]`
[error] invalid-argument-type - Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> FuncAddr | None, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[FuncAddr | None]]` cannot be called with key of type `Label` on object of type `list[FuncAddr | None]`
[error] invalid-argument-type - Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> FuncAddr | None, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[FuncAddr | None]]` cannot be called with key of type `Activation` on object of type `list[FuncAddr | None]`
[error] invalid-argument-type - Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> FuncAddr | None, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[FuncAddr | None]]` cannot be called with key of type `Label` on object of type `list[FuncAddr | None]`

materialize (https://github.com/MaterializeInc/materialize)

misc/python/materialize/cli/mzcompose.py

[error] invalid-argument-type - Argument to bound method `Composition.workflow` is incorrect: Expected `str`, found `Any | None`

meson (https://github.com/mesonbuild/meson)

mesonbuild/dependencies/cuda.py

[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, str].__getitem__(key: str, /) -> str` cannot be called with key of type `None` on object of type `dict[str, str]`
[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, str].__getitem__(key: str, /) -> str` cannot be called with key of type `None` on object of type `dict[str, str]`

mesonbuild/mdevenv.py

[error] unsupported-operator - Operator `in` is not supported between objects of type `Literal["bash"]` and `str | None`
[error] unresolved-attribute - Attribute `endswith` is not defined on `None` in union `str | None`
[error] no-matching-overload - No overload of function `run` matches arguments
[error] invalid-argument-type - Argument to function `execvpe` is incorrect: Expected `str | bytes | PathLike[str] | PathLike[bytes]`, found `Any | str | None`
[error] invalid-argument-type - Argument to function `execvpe` is incorrect: Expected `tuple[str | bytes | PathLike[str] | PathLike[bytes], ...] | list[bytes] | list[str] | ... omitted 5 union elements`, found `(Any & ~AlwaysFalsy) | list[str] | list[str | None]`
[error] invalid-argument-type - Argument to function `join_args` is incorrect: Expected `Iterable[str]`, found `(Any & ~AlwaysFalsy) | list[str] | list[str | None]`

mitmproxy (https://github.com/mitmproxy/mitmproxy)

mitmproxy/proxy/events.py

[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[Command, type[CommandCompleted]].__getitem__(key: Command, /) -> type[CommandCompleted]` cannot be called with key of type `None` on object of type `dict[Command, type[CommandCompleted]]`

mitmproxy/addons/core.py

[warning] unused-type-ignore-comment - Unused blanket `type: ignore` directive

mypy (https://github.com/python/mypy)

mypy/stubutil.py

[error] unsupported-operator - Operator `+` is not supported between objects of type `Literal["_"]` and `str | None | Unknown`

openlibrary (https://github.com/internetarchive/openlibrary)

openlibrary/core/experiments.py

[error] invalid-return-type - Return type does not match returned value: expected `dict[str, str]`, found `dict[str, str | None]`

openlibrary/plugins/openlibrary/home.py

[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, str].__getitem__(key: str, /) -> str` cannot be called with key of type `None` on object of type `dict[str, str]`

openlibrary/plugins/upstream/addbook.py

[error] unresolved-attribute - Attribute `startswith` is not defined on `None` in union `str | None`
[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, str].__getitem__(key: str, /) -> str` cannot be called with key of type `None` on object of type `dict[str, str]`

openlibrary/solr/types_generator.py

[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, str].__getitem__(key: str, /) -> str` cannot be called with key of type `None` on object of type `dict[str, str]`
[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, str].__getitem__(key: str, /) -> str` cannot be called with key of type `None` on object of type `dict[str, str]`

optuna (https://github.com/optuna/optuna)

optuna/storages/_cached_storage.py

[error] invalid-argument-type - Method `__delitem__` of type `bound method dict[int, tuple[int, int]].__delitem__(key: int, /) -> None` cannot be called with key of type `int | None` on object of type `dict[int, tuple[int, int]]`

pandas (https://github.com/pandas-dev/pandas)

pandas/io/sas/sas_xport.py

[error] unsupported-operator - Operator `<` is not supported between objects of type `int | bytes` and `Literal[2]`
[error] unsupported-operator - Operator `>` is not supported between objects of type `int | bytes` and `Literal[8]`

pandas/io/stata.py

[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, str].__getitem__(key: str, /) -> str` cannot be called with key of type `int` on object of type `dict[str, str]`
[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, tuple[int, int] | tuple[floating[_32Bit], floating[_32Bit]] | tuple[float64, float64]].__getitem__(key: str, /) -> tuple[int, int] | tuple[floating[_32Bit], floating[_32Bit]] | tuple[float64, float64]` cannot be called with key of type `int` on object of type `dict[str, tuple[int, int] | tuple[floating[_32Bit], floating[_32Bit]] | tuple[float64, float64]]`
[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, tuple[int, int] | tuple[floating[_32Bit], floating[_32Bit]] | tuple[float64, float64]].__getitem__(key: str, /) -> tuple[int, int] | tuple[floating[_32Bit], floating[_32Bit]] | tuple[float64, float64]` cannot be called with key of type `int` on object of type `dict[str, tuple[int, int] | tuple[floating[_32Bit], floating[_32Bit]] | tuple[float64, float64]]`
[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, int | floating[_32Bit] | float64].__getitem__(key: str, /) -> int | floating[_32Bit] | float64` cannot be called with key of type `int` on object of type `dict[str, int | floating[_32Bit] | float64]`

pip (https://github.com/pypa/pip)

src/pip/_vendor/urllib3/util/ssl_.py

[error] invalid-assignment - Object of type `int` is not assignable to attribute `verify_mode` of type `VerifyMode`

poetry (https://github.com/python-poetry/poetry)

src/poetry/mixology/version_solver.py

[error] invalid-argument-type - Argument to bound method `Term.difference` is incorrect: Expected `Term`, found `None | Term`

tests/console/commands/self/test_show_plugins.py

[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, list[Unknown]].__getitem__(key: str, /) -> list[Unknown]` cannot be called with key of type `None` on object of type `dict[str, list[Unknown]]`

porcupine (https://github.com/Akuli/porcupine)

porcupine/plugins/urls.py

[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, str].__getitem__(key: str, /) -> str` cannot be called with key of type `None` on object of type `dict[str, str]`
[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, str].__getitem__(key: str, /) -> str` cannot be called with key of type `None` on object of type `dict[str, str]`

prefect (https://github.com/PrefectHQ/prefect)

src/integrations/prefect-gcp/tests/test_cloud_storage.py

[error] unresolved-attribute - Attribute `startswith` is not defined on `Coroutine[Any, Any, str]` in union `Literal["alpha/761db2ef8cf25ad06b5203ca47f4f20d"] | Coroutine[Any, Any, str]`

src/prefect/cli/work_pool.py

[error] invalid-argument-type - Argument to function `get_default_base_job_template_for_infrastructure_type` is incorrect: Expected `str`, found `str | None | Unknown`
[error] invalid-argument-type - Argument to function `get_infrastructure_provisioner_for_work_pool_type` is incorrect: Expected `str`, found `str | None | Unknown`
[error] invalid-argument-type - Argument is incorrect: Expected `LaxStr`, found `str | None | Unknown`

src/prefect/context.py

[error] invalid-argument-type - Method `__getitem__` of type `bound method ProfilesCollection.__getitem__(name: str) -> Profile` cannot be called with key of type `None` on object of type `ProfilesCollection`

src/prefect/flows.py

[warning] redundant-cast - Value is already of type `str`
[warning] redundant-cast - Value is already of type `str`

src/prefect/server/events/actions.py

[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, tuple[type[PrefectBaseModel], list[(...) -> Coroutine[Any, Any, Unknown]]]].__getitem__(key: str, /) -> tuple[type[PrefectBaseModel], list[(...) -> Coroutine[Any, Any, Unknown]]]` cannot be called with key of type `None` on object of type `dict[str, tuple[type[PrefectBaseModel], list[(...) -> Coroutine[Any, Any, Unknown]]]]`

pylint (https://github.com/pycqa/pylint)

pylint/checkers/refactoring/implicit_booleaness_checker.py

[error] invalid-argument-type - Argument to bound method `ImplicitBooleanessChecker._get_suggestion` is incorrect: Expected `str`, found `str | NodeNG`
[error] invalid-argument-type - Argument to bound method `ImplicitBooleanessChecker._get_suggestion` is incorrect: Expected `str`, found `str | NodeNG`

pylint/checkers/variables.py

[error] unresolved-attribute - Attribute `parent_of` is not defined on `None` in union `NodeNG | None`
[error] unresolved-attribute - Object of type `NodeNG | None` has no attribute `targets`
[error] unresolved-attribute - Object of type `NodeNG` has no attribute `targets`

pytest (https://github.com/pytest-dev/pytest)

src/_pytest/config/__init__.py

[error] unresolved-attribute - Attribute `replace` is not defined on `None` in union `str | None`

rotki (https://github.com/rotki/rotki)

rotkehlchen/chain/ethereum/modules/eth2/structures.py

[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[int, int].__getitem__(key: int, /) -> int` cannot be called with key of type `None` on object of type `dict[int, int]`

rotkehlchen/chain/evm/decoding/quickswap/utils.py

[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, str].__getitem__(key: str, /) -> str` cannot be called with key of type `None` on object of type `dict[str, str]`

rotkehlchen/exchanges/bitstamp.py

[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, str].__getitem__(key: str, /) -> str` cannot be called with key of type `None` on object of type `dict[str, str]`

rotkehlchen/exchanges/kucoin.py

[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[int, str].__getitem__(key: int, /) -> str` cannot be called with key of type `None` on object of type `dict[int, str]`

schema_salad (https://github.com/common-workflow-language/schema_salad)

src/schema_salad/avro/schema.py

[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, NamedSchema].__getitem__(key: str, /) -> NamedSchema` cannot be called with key of type `None` on object of type `dict[str, NamedSchema]`

src/schema_salad/dotnet_codegen.py

[error] invalid-argument-type - Argument to function `DotNetCodeGen.safe_name` is incorrect: Expected `str`, found `(dict[str, Any] & ~Top[MutableSequence[Unknown]]) | Literal["Expression", "https://w3id.org/cwl/cwl#Expression"]`

src/schema_salad/java_codegen.py

[error] invalid-argument-type - Argument to function `JavaCodeGen.safe_name` is incorrect: Expected `str`, found `(dict[str, Any] & ~Top[MutableSequence[Unknown]]) | Literal["Expression", "https://w3id.org/cwl/cwl#Expression"]`

src/schema_salad/python_codegen.py

[error] invalid-argument-type - Argument to function `PythonCodeGen.safe_name` is incorrect: Expected `str`, found `(dict[str, Any] & ~Top[MutableSequence[Unknown]]) | Literal["Expression", "https://w3id.org/cwl/cwl#Expression"]`

src/schema_salad/tests/test_examples.py

[error] invalid-argument-type - Argument to function `makerdf` is incorrect: Expected `CommentedMap | int | float | str | CommentedSeq`, found `int | float | str | ... omitted 3 union elements`
[error] invalid-argument-type - Argument to function `makerdf` is incorrect: Expected `CommentedMap | int | float | str | CommentedSeq`, found `int | float | str | ... omitted 3 union elements`
[error] invalid-argument-type - Argument to function `makerdf` is incorrect: Expected `CommentedMap | int | float | str | CommentedSeq`, found `int | float | str | ... omitted 3 union elements`
[error] invalid-argument-type - Argument to function `makerdf` is incorrect: Expected `CommentedMap | int | float | str | CommentedSeq`, found `int | float | str | ... omitted 3 union elements`

src/schema_salad/typescript_codegen.py

[error] invalid-argument-type - Argument to function `TypeScriptCodeGen.safe_name` is incorrect: Expected `str`, found `(dict[str, Any] & ~Top[MutableSequence[Unknown]]) | Literal["Expression", "https://w3id.org/cwl/cwl#Expression"]`

schemathesis (https://github.com/schemathesis/schemathesis)

src/schemathesis/specs/openapi/coverage/_schema.py

[error] invalid-argument-type - Argument to function `_supports_format_generation` is incorrect: Expected `str`, found `Any | None`
[error] invalid-argument-type - Argument to function `_get_format_validator` is incorrect: Expected `str`, found `Any | None`

scipy (https://github.com/scipy/scipy)

scipy/special/_basic.py

[error] unsupported-operator - Operator `>` is not supported between two objects of type `generic[Any] | int | float | ... omitted 4 union elements`
[error] unsupported-operator - Operator `>` is not supported between two objects of type `(generic[Any] & ~str & ~bytes) | int | float | complex | memoryview[int]`
[error] unsupported-operator - Operator `<` is not supported between objects of type `generic[Any] | int | float | ... omitted 4 union elements` and `Literal[0]`
[error] unsupported-operator - Operator `<` is not supported between objects of type `(generic[Any] & ~str & ~bytes) | int | float | complex | memoryview[int]` and `Literal[0]`
[error] unsupported-operator - Operator `<` is not supported between objects of type `generic[Any] | int | float | ... omitted 4 union elements` and `Literal[0]`
[error] unsupported-operator - Operator `<` is not supported between objects of type `(generic[Any] & ~str & ~bytes) | int | float | complex | memoryview[int]` and `Literal[0]`

scipy/stats/_distribution_infrastructure.py

[error] unsupported-operator - Operator `%` is not supported between objects of type `generic[Any] | int | float | ... omitted 4 union elements` and `Literal[2]`
[error] unsupported-operator - Operator `%` is not supported between objects of type `(generic[Any] & ~str & ~bytes) | int | float | complex | memoryview[int]` and `Literal[2]`
[error] unsupported-operator - Operator `/` is not supported between objects of type `Literal[1]` and `generic[Any] | int | float | ... omitted 4 union elements`
[error] unsupported-operator - Operator `/` is not supported between objects of type `Literal[1]` and `(generic[Any] & ~str & ~bytes) | int | float | complex | memoryview[int]`
[error] unsupported-operator - Operator `/` is not supported between objects of type `Literal[1]` and `generic[Any] | int | float | ... omitted 4 union elements`
[error] unsupported-operator - Operator `/` is not supported between objects of type `Literal[1]` and `(generic[Any] & ~str & ~bytes) | int | float | complex | memoryview[int]`
[error] unsupported-operator - Operator `/` is not supported between objects of type `Literal[1]` and `generic[Any] | int | float | ... omitted 4 union elements`
[error] unsupported-operator - Operator `/` is not supported between objects of type `Literal[1]` and `(generic[Any] & ~str & ~bytes) | int | float | complex | memoryview[int]`

scipy/stats/_multivariate.py

[error] invalid-argument-type - Argument to constructor `int.__new__` is incorrect: Expected `str | Buffer | SupportsInt | SupportsIndex | SupportsTrunc`, found `generic[Any] | int | float | ... omitted 4 union elements`
[error] invalid-argument-type - Argument to constructor `int.__new__` is incorrect: Expected `str | Buffer | SupportsInt | SupportsIndex | SupportsTrunc`, found `(generic[Any] & ~str & ~bytes) | int | float | complex | memoryview[int]`

scrapy (https://github.com/scrapy/scrapy)

scrapy/utils/deprecate.py

[error] invalid-argument-type - Argument to function `_clspath` is incorrect: Expected `type`, found `type | None`

setuptools (https://github.com/pypa/setuptools)

setuptools/_distutils/compilers/C/unix.py

[error] invalid-argument-type - Argument to bound method `list.remove` is incorrect: Expected `str`, found `int | str | None`

spack (https://github.com/spack/spack)

lib/spack/spack/test/installer/ui.py

[error] invalid-assignment - Object of type `str | None` is not assignable to attribute `tracked_build_id` of type `str`
[error] invalid-assignment - Object of type `str | None` is not assignable to attribute `tracked_build_id` of type `str`
[error] invalid-assignment - Object of type `str | None` is not assignable to attribute `tracked_build_id` of type `str`
[error] invalid-assignment - Object of type `str | None` is not assignable to attribute `tracked_build_id` of type `str`

steam.py (https://github.com/Gobot1234/steam.py)

steam/ext/csgo/state.py

[error] invalid-argument-type - Argument is incorrect: Expected `Literal[0, 1, 2, 3, 4, 5] | None`, found `int | None`
[error] invalid-argument-type - Argument is incorrect: Expected `Literal[0, 1, 2, 3, 4, 5] | None`, found `Literal[1, 2, 3, 4, 5, True] | None`

steam/user.py

flaky
(1/10)
[warning] unsupported-base - Unsupported class base with type `<class 'Messageable[UserMessage[User | Friend | ClientUser]]'> | <class 'Messageable[UserMessage[User | ClientUser]]'>`
flaky
(1/10)
[warning] unsupported-base - Unsupported class base with type `<class 'Messageable[UserMessage[User | Friend | ClientUser]]'> | <class 'Messageable[UserMessage[User | ClientUser]]'>`

streamlit (https://github.com/streamlit/streamlit)

lib/streamlit/elements/heading.py

[error] invalid-return-type - Return type does not match returned value: expected `str`, found `Literal[False] | str | None`

lib/streamlit/elements/lib/built_in_chart_utils.py

[error] invalid-argument-type - Argument to bound method `list.remove` is incorrect: Expected `str`, found `str | None`

sympy (https://github.com/sympy/sympy)

sympy/polys/tests/test_puiseux.py

[warning] unused-type-ignore-comment - Unused blanket `type: ignore` directive

sympy/parsing/latex/__init__.py

[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, str].__getitem__(key: str, /) -> str` cannot be called with key of type `None` on object of type `dict[str, str]`

sympy/utilities/tests/test_lambdify.py

[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, tuple[() -> str | None] | tuple[int, int | float | None, list[str], str]].__getitem__(key: str, /) -> tuple[() -> str | None] | tuple[int, int | float | None, list[str], str]` cannot be called with key of type `None` on object of type `dict[str, tuple[() -> str | None] | tuple[int, int | float | None, list[str], str]]`

trio (https://github.com/python-trio/trio)

src/trio/_highlevel_serve_listeners.py

[error] invalid-argument-type - Method `__getitem__` of type `bound method Mapping[int, str].__getitem__(key: int, /) -> str` cannot be called with key of type `None` on object of type `Mapping[int, str]`
[error] invalid-argument-type - Argument to function `strerror` is incorrect: Expected `int`, found `int | None`

urllib3 (https://github.com/urllib3/urllib3)

src/urllib3/util/ssl_.py

[error] invalid-assignment - Object of type `int` is not assignable to attribute `verify_mode` of type `VerifyMode`

websockets (https://github.com/aaugustin/websockets)

src/websockets/extensions/permessage_deflate.py

[error] invalid-argument-type - Argument to constructor `int.__new__` is incorrect: Expected `str | Buffer | SupportsInt | SupportsIndex | SupportsTrunc`, found `str | None`
[error] invalid-argument-type - Argument to constructor `int.__new__` is incorrect: Expected `str | Buffer | SupportsInt | SupportsIndex | SupportsTrunc`, found `str | None`

zulip (https://github.com/zulip/zulip)

zerver/actions/message_send.py

[error] invalid-argument-type - Argument is incorrect: Expected `list[tuple[int, int]]`, found `list[tuple[int | Unknown, int | None | Unknown]]`

zerver/lib/rest.py

[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, object].__getitem__(key: str, /) -> object` cannot be called with key of type `None` on object of type `dict[str, object]`

zproject/computed_settings.py

[error] invalid-argument-type - Argument to bound method `list.remove` is incorrect: Expected `str`, found `str | None`