Ecosystem report

Old: main (merge base) 1d287faf New: 24830/merge 573b0222
Lint Rule Removed Added Changed
Total 4 36 9
invalid-argument-type 0 19 4
unsupported-operator 0 8 1
unresolved-attribute 0 4 3
unused-type-ignore-comment 4 0 0
call-top-callable 0 2 0
invalid-assignment 0 1 1
invalid-return-type 0 2 0
Project Removed Added Changed
Total 4 36 9
sympy 2 16 0
discord.py 1 4 0
jax 0 4 1
psycopg 0 4 0
xarray 0 3 1
altair 0 0 3
pydantic 0 2 0
spack 0 1 1
beartype 0 0 1
hydra-zen 1 0 0
ibis 0 0 1
scipy 0 0 1
scrapy 0 1 0
streamlit 0 1 0

altair (https://github.com/vega/altair)

altair/utils/data.py

[error] invalid-argument-type - Argument to function `len` is incorrect: Expected `Sized`, found `(NativeDataFrame & ~DataFrame & ~Top[dict[Unknown, Unknown]]) | (narwhals.stable.v1.typing.DataFrameLike & ~DataFrame & ~Top[dict[Unknown, Unknown]]) | (Unknown & ~None & ~DataFrame & ~Top[dict[Unknown, Unknown]]) | (SupportsGeoInterface & ~DataFrame & ~Top[dict[Unknown, Unknown]]) | (altair.utils.core.DataFrameLike & ~DataFrame & ~Top[dict[Unknown, Unknown]])`
[error] invalid-argument-type - Argument to function `len` is incorrect: Expected `Sized`, found `(NativeDataFrame & ~DataFrame & ~Top[dict[Unknown, Unknown]]) | (narwhals.stable.v1.typing.DataFrameLike & ~DataFrame & ~Top[dict[Unknown, Unknown]]) | (SupportsGeoInterface & ~DataFrame & ~Top[dict[Unknown, Unknown]]) | (altair.utils.core.DataFrameLike & ~DataFrame & ~Top[dict[Unknown, Unknown]])`
[error] invalid-argument-type - Argument to function `len` is incorrect: Expected `Sized`, found `(NativeDataFrame & ~DataFrame & ~Top[dict[Unknown, Unknown]]) | (narwhals.stable.v1.typing.DataFrameLike & ~DataFrame & ~Top[dict[Unknown, Unknown]]) | (Unknown & ~None & ~DataFrame & ~Top[dict[Unknown, Unknown]]) | (SupportsGeoInterface & ~DataFrame & ~Top[dict[Unknown, Unknown]]) | (altair.utils.core.DataFrameLike & ~DataFrame & ~Top[dict[Unknown, Unknown]])`
[error] invalid-argument-type - Argument to function `len` is incorrect: Expected `Sized`, found `(NativeDataFrame & ~DataFrame & ~Top[dict[Unknown, Unknown]]) | (narwhals.stable.v1.typing.DataFrameLike & ~DataFrame & ~Top[dict[Unknown, Unknown]]) | (SupportsGeoInterface & ~DataFrame & ~Top[dict[Unknown, Unknown]]) | (altair.utils.core.DataFrameLike & ~DataFrame & ~Top[dict[Unknown, Unknown]])`
[error] unresolved-attribute - Attribute `write_csv` is not defined on `NativeDataFrame & ~SupportsGeoInterface & ~DataFrame & ~Top[dict[Unknown, Unknown]]`, `DataFrameLike & ~SupportsGeoInterface & ~DataFrame & ~Top[dict[Unknown, Unknown]]`, `DataFrameLike & ~SupportsGeoInterface & ~DataFrame & ~Top[dict[Unknown, Unknown]]` in union `(NativeDataFrame & ~SupportsGeoInterface & ~DataFrame & ~Top[dict[Unknown, Unknown]]) | (narwhals.stable.v1.typing.DataFrameLike & ~SupportsGeoInterface & ~DataFrame & ~Top[dict[Unknown, Unknown]]) | (Unknown & ~SupportsGeoInterface & ~DataFrame & ~Top[dict[Unknown, Unknown]]) | (altair.utils.core.DataFrameLike & ~SupportsGeoInterface & ~DataFrame & ~Top[dict[Unknown, Unknown]])`
[error] unresolved-attribute - Object of type `(NativeDataFrame & ~SupportsGeoInterface & ~DataFrame & ~Top[dict[Unknown, Unknown]]) | (narwhals.stable.v1.typing.DataFrameLike & ~SupportsGeoInterface & ~DataFrame & ~Top[dict[Unknown, Unknown]]) | (altair.utils.core.DataFrameLike & ~SupportsGeoInterface & ~DataFrame & ~Top[dict[Unknown, Unknown]])` has no attribute `write_csv`

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

beartype/_util/func/utilfunctest.py

[error] unresolved-attribute - Attribute `__name__` is not defined on `(...) -> Unknown` in union `(Any & ~MethodType) | ((...) -> Unknown)`
[error] unresolved-attribute - Object of type `(...) -> Unknown` has no attribute `__name__`

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

discord/ext/commands/bot.py

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

discord/ext/commands/cog.py

[error] unresolved-attribute - Unresolved attribute `__cog_listener__` on type `(...) -> Coroutine[Any, Any, Any]`
[error] unresolved-attribute - Object of type `(...) -> Coroutine[Any, Any, Any]` has no attribute `__name__`
[error] unresolved-attribute - Object of type `(...) -> Coroutine[Any, Any, Any]` has no attribute `__cog_listener_names__`
[error] unresolved-attribute - Unresolved attribute `__cog_listener_names__` on type `(...) -> Coroutine[Any, Any, Any]`

hydra-zen (https://github.com/mit-ll-responsible-ai/hydra-zen)

src/hydra_zen/structured_configs/_implementations.py

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

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

ibis/common/annotations.py

[error] unresolved-attribute - Unresolved attribute `__signature__` on type `_Wrapped[(...), Unknown, (...), Unknown]`
[error] unresolved-attribute - Unresolved attribute `__signature__` on type `_Wrapped[(...), object, (...), Unknown]`

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

jax/_src/lax/slicing.py

[error] invalid-argument-type - Argument to bound method `list.append` is incorrect: Expected `Array | ndarray[tuple[Any, ...], dtype[Any]] | numpy.bool[builtins.bool] | ... omitted 4 union elements`, found `object`
[error] invalid-argument-type - Argument to bound method `list.append` is incorrect: Expected `Array | ndarray[tuple[Any, ...], dtype[Any]] | numpy.bool[builtins.bool] | ... omitted 4 union elements`, found `~int & ~Top[integer[Any]]`
[error] unsupported-operator - Operator `<` is not supported between objects of type `(Array & ~int & ~Top[integer[Any]]) | (ndarray[tuple[Any, ...], dtype[Any]] & ~int & ~Top[integer[Any]]) | (numpy.bool[builtins.bool] & ~int & ~Top[integer[Any]]) | ... omitted 4 union elements` and `Literal[0]`
[error] unsupported-operator - Operator `<` is not supported between objects of type `~int & ~Top[integer[Any]]` and `Literal[0]`
[error] unsupported-operator - Operator `+` is not supported between objects of type `~int & ~Top[integer[Any]]` and `Array`
[error] invalid-argument-type - Argument to function `select` is incorrect: Expected `Array | ndarray[tuple[Any, ...], dtype[Any]] | numpy.bool[builtins.bool] | ... omitted 4 union elements`, found `~int & ~Top[integer[Any]]`

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

psycopg_pool/psycopg_pool/pool_async.py

[error] invalid-return-type - Return type does not match returned value: expected `str`, found `object`
[error] call-top-callable - Object of type `Overload[[**P, T](f: (**P) -> Awaitable[T], *args: P.args, **kwargs: P.kwargs) -> CoroutineType[Any, Any, T], [**P, T](f: (**P) -> T, *args: P.args, **kwargs: P.kwargs) -> CoroutineType[Any, Any, T]]` is not safe to call; its signature is not known
[error] invalid-return-type - Return type does not match returned value: expected `dict[str, Any]`, found `object`
[error] call-top-callable - Object of type `Overload[[**P, T](f: (**P) -> Awaitable[T], *args: P.args, **kwargs: P.kwargs) -> CoroutineType[Any, Any, T], [**P, T](f: (**P) -> T, *args: P.args, **kwargs: P.kwargs) -> CoroutineType[Any, Any, T]]` is not safe to call; its signature is not known

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

pydantic/deprecated/decorator.py

[error] invalid-argument-type - Argument to function `validate` is incorrect: Expected `(...) -> Any`, found `AnyCallableT@validate_arguments & ~AlwaysFalsy`

pydantic/v1/decorator.py

[error] invalid-argument-type - Argument to function `validate` is incorrect: Expected `(...) -> Any`, found `AnyCallableT@validate_arguments & ~AlwaysFalsy`

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

scipy/sparse/_sputils.py

[error] invalid-argument-type - Argument to `list.__init__` is incorrect: Expected `Iterable[Unknown]`, found `Sized`
[error] invalid-argument-type - Argument to `list.__init__` is incorrect: Expected `Iterable[Unknown]`, found `(Unknown & tuple[object, ...]) | (Unknown & Top[list[Unknown]]) | Sized`

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

tests/test_http_request.py

[error] invalid-argument-type - Argument to `Request.__init__` is incorrect: Expected `((Unknown, /) -> Any) | None`, found `(def a_function() -> Unknown) & ((Response, /, *args: Any, **kwargs: Any) -> Any)`

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

lib/spack/spack/multimethod.py

[error] invalid-argument-type - Argument to function `update_wrapper` is incorrect: Expected `(...) -> Unknown`, found `Self@register & ~<Protocol with members '__name__'>`

lib/spack/spack/vendor/ruamel/yaml/representer.py

[error] invalid-argument-type - Argument to `list.__init__` is incorrect: Expected `Iterable[Unknown]`, found `str | ((...) -> Any) | tuple[Any, ...] | (Any & ~None)`
[error] invalid-argument-type - Argument to `list.__init__` is incorrect: Expected `Iterable[Unknown]`, found `str | ((...) -> Any) | tuple[Any, ...]`

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

lib/streamlit/elements/dialog_decorator.py

[error] invalid-argument-type - Argument to function `_dialog_decorator` is incorrect: Argument type `F@dialog_decorator & ~str` does not satisfy upper bound `(...) -> Any` of type variable `F`

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

sympy/polys/series/ringpython.py

[error] invalid-argument-type - Argument to function `dup_add_ground` is incorrect: Argument type `Er@_useries_add_ground & ~Literal[0]` does not satisfy upper bound `RingElement` of type variable `Er`
[error] invalid-argument-type - Argument to function `dup_sub_ground` is incorrect: Argument type `Er@_useries_sub_ground & ~Literal[0]` does not satisfy upper bound `RingElement` of type variable `Er`
[error] invalid-argument-type - Argument to function `dup_add_ground` is incorrect: Argument type `Er@_useries_rsub_ground & ~Literal[0]` does not satisfy upper bound `RingElement` of type variable `Er`
[error] invalid-argument-type - Argument to function `dup_mul_ground` is incorrect: Argument type `Er@_useries_mul_ground & ~Literal[0] & ~Literal[1] & ~Literal[-1]` does not satisfy upper bound `RingElement` of type variable `Er`
[error] invalid-argument-type - Argument to function `_useries_mul_ground` is incorrect: Argument type `Ef@_useries_sqrt & ~AlwaysFalsy` does not satisfy upper bound `RingElement` of type variable `Er`
[error] invalid-argument-type - Argument to function `_useries_mul_ground` is incorrect: Argument type `Ef@_useries_sqrt & ~AlwaysFalsy` does not satisfy upper bound `RingElement` of type variable `Er`

sympy/polys/densetools.py

[error] unsupported-operator - Operator `*=` is not supported between objects of type `Er@dup_eval` and `Er@dup_eval & ~AlwaysFalsy`
[error] invalid-argument-type - Argument to function `dmp_mul_ground` is incorrect: Argument type `Er@dmp_eval & ~AlwaysFalsy` does not satisfy upper bound `RingElement` of type variable `Er`
[error] invalid-argument-type - Argument to function `dmp_mul_ground` is incorrect: Argument type `Er@dmp_shift & ~AlwaysFalsy` does not satisfy upper bound `RingElement` of type variable `Er`

sympy/polys/domains/domain.py

[error] invalid-argument-type - Argument to bound method `Domain.convert_from` is incorrect: Argument type `(Es@convert & DomainElement & ~Er@Domain & ~MPZ & ~int & ~float & ~complex) | (Expr & DomainElement & ~Er@Domain & ~MPZ)` does not satisfy upper bound `RingElement` of type variable `Es`
[warning] unused-type-ignore-comment - Unused blanket `type: ignore` directive
[warning] unused-type-ignore-comment - Unused blanket `type: ignore` directive

sympy/polys/rings.py

[error] unsupported-operator - Operator `+` is not supported between objects of type `Er@PolyElement` and `Er@PolyElement & ~AlwaysFalsy`
[error] unsupported-operator - Operator `-` is not supported between objects of type `Er@PolyElement` and `Er@PolyElement & ~AlwaysFalsy`
[error] unsupported-operator - Operator `*` is not supported between objects of type `Er@PolyElement` and `Er@PolyElement & ~AlwaysFalsy`
[error] unsupported-operator - Operator `*=` is not supported between objects of type `Er@PolyElement` and `(Er@PolyElement & ~AlwaysFalsy) | (int & ~AlwaysFalsy)`
[error] unsupported-operator - Operator `*` is not supported between objects of type `Er@PolyElement` and `Er@PolyElement & ~AlwaysFalsy`
[error] unsupported-operator - Operator `+=` is not supported between objects of type `Er@PolyElement` and `Er@PolyElement & ~AlwaysFalsy`

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

xarray/core/common.py

[error] invalid-assignment - Object of type `(type[Any] & Top[Mapping[Unknown, object]]) | (str & Top[Mapping[Unknown, object]]) | (tuple[Any, SupportsIndex | Sequence[SupportsIndex]] & Top[Mapping[Unknown, object]]) | ... omitted 5 union elements` is not assignable to `Mapping[Any, dtype[Any] | None | type[Any] | ... omitted 6 union elements]`
[error] invalid-assignment - Object of type `(_HasDType[dtype[Any]] & Top[Mapping[Unknown, object]]) | (str & Top[Mapping[Unknown, object]]) | (tuple[Any, SupportsIndex | Sequence[SupportsIndex]] & Top[Mapping[Unknown, object]]) | ... omitted 4 union elements` is not assignable to `Mapping[Any, dtype[Any] | None | type[Any] | ... omitted 6 union elements]`

xarray/namedarray/core.py

[error] invalid-argument-type - Argument to `NamedArray.__init__` is incorrect: Expected `_arrayfunction[Any, Unknown] | _arrayapi[Any, Unknown]`, found `(_SupportsArray[dtype[Any]] & MaskedArray[tuple[object, ...], dtype[object]] & ~NamedArray[object, object]) | (_arrayapi[_ShapeType@from_array, _DType@from_array] & MaskedArray[tuple[object, ...], dtype[object]] & ~NamedArray[object, object]) | (_Buffer & MaskedArray[tuple[object, ...], dtype[object]] & ~NamedArray[object, object]) | ... omitted 6 union elements`
[error] invalid-argument-type - Argument to `NamedArray.__init__` is incorrect: Expected `_arrayfunction[Any, Unknown] | _arrayapi[Any, Unknown]`, found `(_SupportsArray[dtype[Any]] & _arrayfunction[object, object] & ~NamedArray[object, object] & ~MaskedArray[tuple[object, ...], dtype[object]] & ~generic[object]) | (_arrayapi[_ShapeType@from_array, _DType@from_array] & ~NamedArray[object, object] & ~MaskedArray[tuple[object, ...], dtype[object]] & ~generic[object]) | (_Buffer & _arrayfunction[object, object] & ~NamedArray[object, object] & ~MaskedArray[tuple[object, ...], dtype[object]] & ~generic[object]) | ... omitted 9 union elements`
[error] invalid-assignment - Object of type `(_arrayfunction[Any, _DType_co@NamedArray] & ~ExplicitlyIndexed) | (_arrayapi[Any, _DType_co@NamedArray] & ~ExplicitlyIndexed)` is not assignable to `_arrayfunction[Any, Any] | _arrayapi[Any, Any]`