Ecosystem report

Old: main (merge base) 7dfefd9a New: 23937/merge 28749c54
Lint Rule Removed Added Changed
Total 72 36 3
invalid-argument-type 21 1 1
unused-type-ignore-comment 0 23 0
unresolved-attribute 21 1 0
not-subscriptable 7 5 0
no-matching-overload 8 1 0
call-non-callable 8 0 0
invalid-assignment 3 0 2
redundant-cast 0 4 0
not-iterable 3 0 0
call-top-callable 0 1 0
unsupported-operator 1 0 0
Project Removed Added Changed
Total 72 36 3
scipy 30 5 0
static-frame 1 6 0
dd-trace-py 6 0 0
rotki 1 5 0
scikit-learn 4 2 0
setuptools 6 0 0
discord.py 4 0 0
more-itertools 4 0 0
prefect flaky 2 0 2
spack 1 3 0
xarray 4 0 0
ibis 3 0 0
pandas 0 3 0
sympy 1 2 0
PyGithub 0 2 0
bokeh 2 0 0
meson 1 0 1
mypy 0 2 0
sphinx 0 2 0
core 1 0 0

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

github/Repository.py

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

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

src/bokeh/plotting/_geo_feature.py

[error] invalid-argument-type - Argument to function `len` is incorrect: Expected `Sized`, found `Unknown | None`
[error] not-subscriptable - Cannot subscript object of type `None` with no `__getitem__` method

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

homeassistant/components/tts/__init__.py

[error] invalid-argument-type - Argument to bound method `write` is incorrect: Expected `bytes | bytearray | memoryview[int]`, found `object`

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

ddtrace/appsec/_common_module_patches.py

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

ddtrace/vendor/psutil/__init__.py

[error] invalid-argument-type - Argument to function `sleep` is incorrect: Expected `SupportsIndex | float`, found `Unknown | None`
[error] invalid-argument-type - Argument to function `sleep` is incorrect: Expected `SupportsIndex | float`, found `Unknown | None`
[error] invalid-argument-type - Argument to function `sleep` is incorrect: Expected `SupportsIndex | float`, found `Unknown | None`
[error] invalid-argument-type - Argument to function `sleep` is incorrect: Expected `SupportsIndex | float`, found `Unknown | None`
[error] invalid-argument-type - Argument to function `sleep` is incorrect: Expected `SupportsIndex | float`, found `Unknown | None`

discord.py (https://github.com/Rapptz/discord.py)

discord/ext/commands/view.py

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

discord/app_commands/transformers.py

[error] invalid-argument-type - Argument to bound method `_checked_translate` is incorrect: Expected `locale_str`, found `str | locale_str`
[error] invalid-argument-type - Argument to bound method `_checked_translate` is incorrect: Expected `locale_str`, found `str | locale_str`

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

ibis/expr/api.py

[error] not-iterable - Object of type `Unknown | None` may not be iterable
[error] not-iterable - Object of type `Unknown | None` may not be iterable
[error] not-iterable - Object of type `Unknown | None` may not be iterable

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

jax/experimental/mosaic/gpu/tcgen05.py

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

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

mesonbuild/compilers/detect.py

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

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

test/mitmproxy/proxy/tutils.py

[error] unresolved-attribute - Object of type `Command | Event` has no attribute `data`

more-itertools (https://github.com/more-itertools/more-itertools)

more_itertools/more.py

[error] call-non-callable - Object of type `None` is not callable
[error] call-non-callable - Object of type `None` is not callable
[error] call-non-callable - Object of type `None` is not callable

more_itertools/recipes.py

[error] call-non-callable - Object of type `None` is not callable

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

mypy/checkmember.py

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

operator (https://github.com/canonical/operator)

ops/model.py

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

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

pandas/core/arrays/categorical.py

[error] invalid-argument-type - Argument to function `invalid_comparison` is incorrect: Expected `ExtensionArray | ndarray[tuple[Any, ...], dtype[Any]] | list[Unknown] | ... omitted 14 union elements`, found `Hashable`

pandas/core/construction.py

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

pandas/core/generic.py

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

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

pandera/inspection_utils.py

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

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

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

[error] unsupported-operator - Operator `in` is not supported between objects of type `Literal["execution_time"]` and `Unknown | None`
[error] not-subscriptable - Cannot subscript object of type `None` with no `__getitem__` method

src/prefect/utilities/pydantic.py

[error] invalid-assignment - Object of type `def __init__(__pydantic_self__: M@add_type_dispatch, **data: Any) -> None` is not assignable to attribute `__init__` of type `Overload[(self, o: object, /) -> None, (self, name: str, bases: tuple[type, ...], dict: dict[str, Any], /, **kwds: Any) -> None]`
[error] invalid-assignment - Object of type `def __init__(__pydantic_self__: M@add_type_dispatch, **data: Any) -> None` is not assignable to attribute `__init__` on type `type[M@add_type_dispatch] & ~<Protocol with members '__dispatch_key__'>`
[error] invalid-assignment - Object of type `def __new__(cls: type[M@add_type_dispatch], **kwargs: Any) -> M@add_type_dispatch` is not assignable to attribute `__new__` of type `def __new__(mcs, cls_name: str, bases: tuple[type[Any], ...], namespace: dict[str, Any], __pydantic_generic_metadata__: PydanticGenericMetadata | None = None, __pydantic_reset_parent_namespace__: bool = True, _create_model_module: str | None = None, **kwargs: Any) -> type`
[error] invalid-assignment - Object of type `def __new__(cls: type[M@add_type_dispatch], **kwargs: Any) -> M@add_type_dispatch` is not assignable to attribute `__new__` on type `type[M@add_type_dispatch] & ~<Protocol with members '__dispatch_key__'>`

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

src/_pytest/runner.py

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

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

rotkehlchen/chain/evm/names.py

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

rotkehlchen/chain/zksync_lite/manager.py

[warning] unused-type-ignore-comment - Unused blanket `type: ignore` directive
[error] invalid-argument-type - Argument to bound method `append` is incorrect: Expected `tuple[int, HistoryEventType, HistoryEventSubType, Asset, FVal, ChecksumAddress, ChecksumAddress | None, str]`, found `tuple[Literal[0], Literal[HistoryEventType.WITHDRAWAL], Literal[HistoryEventSubType.BRIDGE], Asset, FVal, ChecksumAddress | None, None, str]`

rotkehlchen/tests/api/test_ens.py

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

scikit-learn (https://github.com/scikit-learn/scikit-learn)

sklearn/compose/_column_transformer.py

[error] unresolved-attribute - Object of type `Self@transform` has no attribute `feature_names_in_`
[error] not-subscriptable - Cannot subscript object of type `object` with no `__getitem__` method

sklearn/decomposition/_dict_learning.py

[error] no-matching-overload - No overload matches arguments
[error] no-matching-overload - No overload matches arguments

sklearn/externals/array_api_extra/_lib/_utils/_helpers.py

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

sklearn/linear_model/_ridge.py

[error] no-matching-overload - No overload of function `atleast_1d` matches arguments

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

scipy/_lib/_util.py

[error] invalid-argument-type - Method `__getitem__` of type `Overload[(index: SupportsIndex, /) -> Unknown, (index: slice[Any, Any, Any], /) -> tuple[Unknown, ...]]` cannot be called with key of type `None` on object of type `tuple[Unknown, ...]`

scipy/integrate/tests/test_quadrature.py

[error] no-matching-overload - No overload of function `broadcast_to` matches arguments

scipy/interpolate/_fitpack_impl.py

[error] invalid-assignment - Invalid subscript assignment with key of type `Literal["u"]` and value of type `Unknown | None` on object of type `dict[str, ndarray[tuple[Any, ...], dtype[Any]] | int]`
[error] not-subscriptable - Cannot subscript object of type `None` with no `__getitem__` method
[error] not-subscriptable - Cannot subscript object of type `None` with no `__getitem__` method

scipy/ndimage/_morphology.py

[error] no-matching-overload - No overload matches arguments
[error] no-matching-overload - No overload matches arguments
[error] no-matching-overload - No overload matches arguments
[error] unresolved-attribute - Attribute `dtype` is not defined on `None` in union `Unknown | None`
[error] unresolved-attribute - Attribute `shape` is not defined on `None` in union `Unknown | None`
[error] invalid-assignment - Cannot assign to a subscript on an object of type `None`
[error] unresolved-attribute - Attribute `ndim` is not defined on `None` in union `Unknown | None | ndarray[tuple[Any, ...], Unknown]`
[error] unresolved-attribute - Attribute `size` is not defined on `None` in union `Unknown | None | ndarray[tuple[Any, ...], Unknown]`
[error] unresolved-attribute - Attribute `shape` is not defined on `None` in union `Unknown | None | ndarray[tuple[Any, ...], Unknown]`
[error] not-subscriptable - Cannot subscript object of type `None` with no `__getitem__` method
[error] not-subscriptable - Cannot subscript object of type `None` with no `__getitem__` method
[error] unresolved-attribute - Attribute `dtype` is not defined on `None` in union `Unknown | None`
[error] unresolved-attribute - Attribute `shape` is not defined on `None` in union `Unknown | None`
[error] unresolved-attribute - Attribute `shape` is not defined on `None` in union `Unknown | None`
[error] not-subscriptable - Cannot subscript object of type `None` with no `__getitem__` method
[error] invalid-assignment - Cannot assign to a subscript on an object of type `None`
[error] unresolved-attribute - Attribute `shape` is not defined on `None` in union `Unknown | None`
[error] unresolved-attribute - Attribute `dtype` is not defined on `None` in union `Unknown | None`
[error] unresolved-attribute - Attribute `dtype` is not defined on `None` in union `Unknown | None`
[error] unresolved-attribute - Attribute `shape` is not defined on `None` in union `Unknown | None`
[error] unresolved-attribute - Attribute `dtype` is not defined on `None` in union `Unknown | None`

scipy/optimize/_lsq/trf.py

[error] not-subscriptable - Cannot subscript object of type `float` with no `__getitem__` method
[error] not-subscriptable - Cannot subscript object of type `int` with no `__getitem__` method
[error] not-subscriptable - Cannot subscript object of type `float` with no `__getitem__` method
[error] not-subscriptable - Cannot subscript object of type `int` with no `__getitem__` method

scipy/spatial/transform/_rigid_transform.py

[error] unresolved-attribute - Attribute `dtype` is not defined on `int`, `slice[Any, Any, Any]`, `EllipsisType`, `None` in union `int | slice[Any, Any, Any] | EllipsisType | None | ArrayLike`
[error] unresolved-attribute - Attribute `dtype` is not defined on `int`, `slice[Any, Any, Any]`, `EllipsisType`, `None` in union `int | slice[Any, Any, Any] | EllipsisType | None | ArrayLike`

scipy/spatial/transform/_rotation.py

[error] unresolved-attribute - Object of type `int | slice[Any, Any, Any] | EllipsisType | None` has no attribute `dtype`
[error] unresolved-attribute - Object of type `int | slice[Any, Any, Any] | EllipsisType | None` has no attribute `dtype`

subprojects/array_api_extra/src/array_api_extra/_lib/_utils/_helpers.py

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

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

setuptools/_imp.py

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

setuptools/_vendor/more_itertools/more.py

[error] call-non-callable - Object of type `None` is not callable
[error] call-non-callable - Object of type `None` is not callable
[error] call-non-callable - Object of type `None` is not callable

setuptools/_vendor/more_itertools/recipes.py

[error] call-non-callable - Object of type `None` is not callable

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

lib/spack/spack/install_test.py

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

lib/spack/spack/package_base.py

[error] unresolved-attribute - Object of type `Self@do_patch` has no attribute `patch`
[error] call-top-callable - Object of type `Top[(...) -> object]` is not safe to call; its signature is not known

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

sphinx/ext/imgmath.py

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

static-frame (https://github.com/static-frame/static-frame)

static_frame/core/container_util.py

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

static_frame/core/frame.py

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

static_frame/core/index_hierarchy.py

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

static_frame/core/loc_map.py

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

static_frame/core/util.py

[warning] unused-type-ignore-comment - Unused blanket `type: ignore` directive
[error] no-matching-overload - No overload matches arguments

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

sympy/solvers/solveset.py

[error] unresolved-attribute - Object of type `object` has no attribute `name`
[error] no-matching-overload - No overload of bound method `subs` matches arguments
[error] invalid-argument-type - Argument to function `next` is incorrect: Expected `SupportsNext[Unknown]`, found `tuple[Unknown, ...] | (Unknown & <Protocol with members '__iter__'>)`

xarray (https://github.com/pydata/xarray)

xarray/core/groupby.py

[error] invalid-argument-type - Argument to bound method `_to_temp_dataset` is incorrect: Expected `DataArray`, found `T_Xarray@GroupBy`
[error] invalid-argument-type - Argument to bound method `_shuffle` is incorrect: Argument type `T_Xarray@GroupBy` does not satisfy upper bound `DataArray` of type variable `Self`
[error] invalid-argument-type - Argument to bound method `_shuffle` is incorrect: Argument type `T_Xarray@GroupBy` does not satisfy upper bound `Dataset` of type variable `Self`
[error] invalid-argument-type - Argument to bound method `_from_temp_dataset` is incorrect: Argument type `T_Xarray@GroupBy` does not satisfy upper bound `DataArray` of type variable `Self`