Ecosystem report

Old: main (merge base) 89b88c55 New: 22929/merge afadfb29
Lint Rule Removed Added Changed
Total 49 20 12
possibly-missing-attribute 14 0 1
unresolved-attribute 8 7 0
invalid-assignment 9 4 1
invalid-argument-type 2 2 4
not-subscriptable 8 0 0
invalid-return-type 0 1 4
division-by-zero 0 3 0
too-many-positional-arguments 3 0 0
unsupported-operator 0 1 2
call-non-callable 2 0 0
type-assertion-failure 2 0 0
unused-type-ignore-comment 0 2 0
unknown-argument 1 0 0
Project Removed Added Changed
Total 49 20 12
sympy 15 5 0
prefect 0 6 5
pandas 7 0 3
ignite 9 0 0
apprise 6 0 0
setuptools 2 2 0
rotki 0 3 0
dd-trace-py 0 0 2
mkdocs 2 0 0
pandas-stubs 2 0 0
pip 2 0 0
scipy 0 0 2
sphinx 0 2 0
zulip 1 1 0
core 0 1 0
freqtrade 1 0 0
materialize 1 0 0
rich 1 0 0

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

apprise/plugins/discord.py

[error] invalid-assignment - :386:25 - Cannot assign to a subscript on an object of type `int`
[error] invalid-assignment - :386:25 - Cannot assign to a subscript on an object of type `str`
[error] invalid-assignment - :386:25 - Cannot assign to a subscript on an object of type `tuple[int, int, int]`

apprise/plugins/line.py

[error] invalid-assignment - :174:13 - Cannot assign to a subscript on an object of type `str`

apprise/plugins/slack.py

[warning] possibly-missing-attribute - :504:17 - Attribute `insert` may be missing on object of type `Unknown | list[Unknown | dict[Unknown | str, Unknown | str | dict[Unknown | str, Unknown | str]]] | str | int | tuple[int, int, int]`
[warning] possibly-missing-attribute - :544:17 - Attribute `append` may be missing on object of type `Unknown | list[Unknown | dict[Unknown | str, Unknown | str | dict[Unknown | str, Unknown | str]]] | str | int | tuple[int, int, int]`

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

homeassistant/util/variance.py

[error] invalid-return-type - :47:12 - Return type does not match returned value: expected `(**_P@ignore_variance) -> _R@ignore_variance`, found `_Wrapped[_P@ignore_variance, int | _R@ignore_variance | float | datetime, _P@ignore_variance, _R@ignore_variance | int | float | datetime]`

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

ddtrace/llmobs/_integrations/langchain.py

[error] invalid-argument-type - :697 -
Old: Argument to function `len` is incorrect: Expected `Sized`, found `Unknown | list[int | float] | list[list[int | float]] | int | float`
New: Argument to function `len` is incorrect: Expected `Sized`, found `list[int | float] | list[list[int | float]] | Unknown | int | float`

tests/appsec/ai_guard/api/test_api_client.py

[warning] possibly-missing-attribute - :272 -
Old: Attribute `append` may be missing on object of type `Unknown | list[ToolCall] | None`
New: Attribute `append` may be missing on object of type `list[ToolCall] | None`

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

freqtrade/rpc/discord.py

[warning] possibly-missing-attribute - :57:21 - Attribute `append` may be missing on object of type `Unknown | str | int | list[Unknown]`

ignite (https://github.com/pytorch/ignite)

tests/ignite/engine/test_deterministic.py

[warning] possibly-missing-attribute - :880:12 - Attribute `device` may be missing on object of type `Unknown | tuple[Any, ...]`

tests/ignite/metrics/test_metric.py

[error] unresolved-attribute - :1226:9 - Unresolved attribute `_numerator` on type `Metric`
[error] unresolved-attribute - :1227:9 - Unresolved attribute `_denominator` on type `Metric`
[error] unresolved-attribute - :1228:9 - Unresolved attribute `_weight` on type `Metric`
[error] unresolved-attribute - :1229:9 - Unresolved attribute `_updated` on type `Metric`
[error] unresolved-attribute - :1231:9 - Unresolved attribute `_numerator` on type `Metric`
[error] unresolved-attribute - :1232:9 - Unresolved attribute `_denominator` on type `Metric`
[error] unresolved-attribute - :1233:9 - Unresolved attribute `_weight` on type `Metric`
[error] unresolved-attribute - :1234:9 - Unresolved attribute `_updated` on type `Metric`

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

misc/python/materialize/cli/orchestratord.py

[error] invalid-assignment - :312:9 - Cannot assign to a subscript on an object of type `str`

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

mkdocs/tests/structure/nav_tests.py

[error] invalid-argument-type - :96:18 - Argument to bound method `__init__` is incorrect: Expected `str`, found `Unknown | str | dict[Unknown | str, Unknown | str]`
[error] invalid-argument-type - :97:18 - Method `__getitem__` of type `Overload[(key: SupportsIndex | slice[Any, Any, Any], /) -> LiteralString, (key: SupportsIndex | slice[Any, Any, Any], /) -> str]` cannot be called with key of type `Literal["About"]` on object of type `str`

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

pandas/tests/test_aggregation.py

[error] too-many-positional-arguments - :39:28 - Too many positional arguments: expected 1, got 2
[error] too-many-positional-arguments - :40:28 - Too many positional arguments: expected 1, got 3
[error] too-many-positional-arguments - :41:28 - Too many positional arguments: expected 1, got 2
[error] unknown-argument - :41:31 - Argument `b` does not match any known parameter

pandas/core/frame.py

[error] invalid-return-type - :14699 -
Old: Return type does not match returned value: expected `DataFrame`, found `Unknown | DataFrame | Series`
New: Return type does not match returned value: expected `DataFrame`, found `DataFrame | Series | Unknown`

pandas/io/parsers/python_parser.py

[error] invalid-argument-type - :736 -
Old: Argument to bound method `_handle_usecols` is incorrect: Expected `list[str | bytes | date | ... omitted 11 union elements]`, found `Unknown | list[int]`
New: Argument to bound method `_handle_usecols` is incorrect: Expected `list[str | bytes | date | ... omitted 11 union elements]`, found `list[int]`

pandas/tests/extension/test_arrow.py

[warning] possibly-missing-attribute - :3307:30 - Attribute `unit` may be missing on object of type `Unknown | Timedelta | NAType | Timestamp`

pandas/tests/indexes/datetimes/test_constructors.py

[warning] possibly-missing-attribute - :1020:13 - Attribute `tz_localize` may be missing on object of type `Unknown | Timestamp | str | int`

pandas/tests/series/methods/test_astype.py

[warning] possibly-missing-attribute - :127:13 - Attribute `tz_localize` may be missing on object of type `Unknown | Timestamp | str | int`

pandas/tests/util/test_hashing.py

[error] invalid-argument-type - :95 -
Old: Argument to function `hash_tuples` is incorrect: Expected `MultiIndex | Iterable[tuple[Hashable, ...]]`, found `Unknown | tuple[int, str]`
New: Argument to function `hash_tuples` is incorrect: Expected `MultiIndex | Iterable[tuple[Hashable, ...]]`, found `tuple[Literal[1], Literal["one"]]`

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

tests/frame/test_groupby.py

[error] type-assertion-failure - :229:15 - Type `Series[Any]` does not match asserted type `Series[str | bytes | int | ... omitted 12 union elements]`
[error] type-assertion-failure - :625:15 - Type `Series[Any]` does not match asserted type `Series[str | bytes | int | ... omitted 12 union elements]`

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

src/pip/_vendor/pygments/lexers/__init__.py

[error] call-non-callable - :340:12 - Object of type `float` is not callable
[error] call-non-callable - :340:12 - Object of type `int` is not callable

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

src/integrations/prefect-dbt/prefect_dbt/core/settings.py

[error] invalid-assignment - :94:28 - Object of type `dict[str, Any] | int | dict[Any, Any] | ... omitted 4 union elements` is not assignable to `dict[str, Any]`
[error] invalid-assignment - :99:28 - Object of type `int | dict[Any, Any] | float | ... omitted 3 union elements` is not assignable to `dict[str, Any]`

src/prefect/cli/deploy/_core.py

[error] invalid-assignment - :86:21 - Object of type `dict[str, Any] | int | dict[Any, Any] | ... omitted 4 union elements` is not assignable to `dict[str, Any]`
[error] invalid-assignment - :87:21 - Object of type `int | dict[Any, Any] | float | ... omitted 3 union elements` is not assignable to `dict[str, Any]`

src/prefect/deployments/steps/core.py

[error] invalid-argument-type - :137:38 - Argument is incorrect: Argument type `dict[str, Any] | int | dict[Any, Any] | ... omitted 4 union elements` does not satisfy constraints (`str`, `int`, `int | float`, `bool`, `dict[Any, Any]`, `list[Any]`, `None`) of type variable `T`

src/prefect/utilities/templating.py

[error] invalid-assignment - :320 -
Old: Invalid subscript assignment with key of type `object` and value of type `Unknown | dict[str, Any]` on object of type `dict[str, Any]`
New: Invalid subscript assignment with key of type `object` and value of type `dict[str, Any] | int | Unknown | ... omitted 4 union elements` on object of type `dict[str, Any]`
[error] invalid-return-type - :323 -
Old: Return type does not match returned value: expected `T@resolve_block_document_references | dict[str, Any]`, found `list[Unknown | dict[str, Any]]`
New: Return type does not match returned value: expected `T@resolve_block_document_references | dict[str, Any]`, found `list[Unknown | dict[str, Any] | int | ... omitted 4 union elements]`
[error] invalid-return-type - :437 -
Old: Return type does not match returned value: expected `T@resolve_variables`, found `dict[object, Unknown]`
New: Return type does not match returned value: expected `T@resolve_variables`, found `dict[object, Unknown | int | float | ... omitted 4 union elements]`
[error] invalid-return-type - :442 -
Old: Return type does not match returned value: expected `T@resolve_variables`, found `list[Unknown]`
New: Return type does not match returned value: expected `T@resolve_variables`, found `list[Unknown | int | float | ... omitted 4 union elements]`

src/prefect/workers/base.py

[error] invalid-argument-type - :234:20 - Argument expression after ** must be a mapping type: Found `int | Unknown | float | ... omitted 4 union elements`
[error] invalid-argument-type - :232 -
Old: Argument is incorrect: Argument type `str | dict[str, Any]` does not satisfy constraints (`str`, `int`, `int | float`, `bool`, `dict[Any, Any]`, `list[Any]`, `None`) of type variable `T`
New: Argument is incorrect: Argument type `dict[str, Any] | int | str | ... omitted 3 union elements` does not satisfy constraints (`str`, `int`, `int | float`, `bool`, `dict[Any, Any]`, `list[Any]`, `None`) of type variable `T`

rich (https://github.com/Textualize/rich)

tests/test_pretty.py

[warning] possibly-missing-attribute - :319:5 - Attribute `append` may be missing on object of type `Unknown | int | list[Unknown]`

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

rotkehlchen/tests/api/test_history_base_entry.py

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

rotkehlchen/tests/unit/accounting/test_basic.py

[error] unresolved-attribute - :320:138 - Object of type `tuple[SwapEvent, ...]` has no attribute `timestamp`

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

scipy/optimize/tests/test_optimize.py

[error] unsupported-operator - :1557 -
Old: Operator `>` is not supported between objects of type `Unknown | None` and `float`
New: Operator `>` is not supported between objects of type `None` and `float`
[error] unsupported-operator - :1557 -
Old: Operator `<` is not supported between objects of type `Unknown | None` and `Literal[3]`
New: Operator `<` is not supported between objects of type `None` and `Literal[3]`

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

setuptools/_distutils/tests/test_build_ext.py

[warning] possibly-missing-attribute - :380:16 - Attribute `undef_macros` may be missing on object of type `Unknown | tuple[str, dict[Unknown | str, Unknown | list[Unknown | str] | str | list[Unknown | tuple[str, str, str] | str]]]`
[error] unresolved-attribute - :380:16 - Object of type `tuple[Literal["foo.bar"], dict[Unknown | str, Unknown | list[Unknown | str] | str | list[Unknown | tuple[str, str, str] | str]]]` has no attribute `undef_macros`
[warning] possibly-missing-attribute - :381:16 - Attribute `define_macros` may be missing on object of type `Unknown | tuple[str, dict[Unknown | str, Unknown | list[Unknown | str] | str | list[Unknown | tuple[str, str, str] | str]]]`
[error] unresolved-attribute - :381:16 - Object of type `tuple[Literal["foo.bar"], dict[Unknown | str, Unknown | list[Unknown | str] | str | list[Unknown | tuple[str, str, str] | str]]]` has no attribute `define_macros`

sphinx (https://github.com/sphinx-doc/sphinx)

sphinx/search/ja.py

[error] unresolved-attribute - :506:31 - Object of type `tuple[str, ...]` has no attribute `strip`
[error] unsupported-operator - :512:13 - Operator `+=` is not supported between objects of type `tuple[str, ...]` and `Unknown | str`

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

sympy/printing/tests/test_llvmjit.py

[warning] possibly-missing-attribute - :141:17 - Attribute `subs` may be missing on object of type `Unknown | tuple[Symbol, Unknown]`

sympy/functions/elementary/hyperbolic.py

[warning] division-by-zero - :744:20 - Cannot divide object of type `Literal[0]` by zero

sympy/functions/elementary/trigonometric.py

[warning] possibly-missing-attribute - :1186:20 - Attribute `subs` may be missing on object of type `Unknown | int | float`
[error] unresolved-attribute - :1186:20 - Object of type `float` has no attribute `subs`
[warning] division-by-zero - :1186:21 - Cannot divide object of type `Literal[0]` by zero
[warning] possibly-missing-attribute - :1575:20 - Attribute `subs` may be missing on object of type `Unknown | int | float`
[error] unresolved-attribute - :1575:20 - Object of type `float` has no attribute `subs`
[warning] division-by-zero - :1575:21 - Cannot divide object of type `Literal[0]` by zero

sympy/polys/polyroots.py

[error] invalid-assignment - :636:9 - Cannot assign to a subscript on an object of type `None`
[error] invalid-assignment - :637:9 - Cannot assign to a subscript on an object of type `None`
[error] invalid-assignment - :638:9 - Cannot assign to a subscript on an object of type `None`
[error] invalid-assignment - :639:9 - Cannot assign to a subscript on an object of type `None`
[error] not-subscriptable - :645:10 - Cannot subscript object of type `None` with no `__getitem__` method
[error] not-subscriptable - :646:12 - Cannot subscript object of type `None` with no `__getitem__` method
[error] not-subscriptable - :650:18 - Cannot subscript object of type `None` with no `__getitem__` method
[error] not-subscriptable - :665:20 - Cannot subscript object of type `None` with no `__getitem__` method
[error] not-subscriptable - :669:24 - Cannot subscript object of type `None` with no `__getitem__` method
[error] not-subscriptable - :672:22 - Cannot subscript object of type `None` with no `__getitem__` method
[error] not-subscriptable - :673:22 - Cannot subscript object of type `None` with no `__getitem__` method
[error] not-subscriptable - :649:25 - Cannot subscript object of type `None` with no `__getitem__` method

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

zerver/lib/user_groups.py

[warning] possibly-missing-attribute - :1145:50 - Attribute `id` may be missing on object of type `Unknown | NamedUserGroup`
[error] unresolved-attribute - :1145:50 - Object of type `NamedUserGroup` has no attribute `id`