Ecosystem report

Old: main (merge base) e38fdabe New: 23280/merge 4be57c42
Lint Rule Removed Added Changed
Total 18 3 39
invalid-argument-type 2 0 27
invalid-await 15 0 0
unresolved-attribute 0 0 6
invalid-assignment 1 0 2
redundant-cast 0 3 0
unsupported-operator 0 0 3
invalid-return-type 0 0 1
Project Removed Added Changed
Total 18 3 39
graphql-core 15 3 0
vision 1 0 12
jax 0 0 6
scikit-learn 0 0 4
pip 0 0 3
spack 0 0 3
cloud-init 0 0 2
dd-trace-py 0 0 2
ibis 0 0 2
altair 1 0 0
colour 0 0 1
discord.py 1 0 0
meson 0 0 1
openlibrary 0 0 1
pylox 0 0 1
sockeye 0 0 1
Expression flaky 0 0 0
materialize flaky 0 0 0
prefect flaky 0 0 0
pydantic flaky 0 0 0

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

altair/utils/_vegafusion_data.py

[error] invalid-assignment - Invalid subscript assignment with key of type `str` and value of type `(dict[Any, Any] & ~SupportsGeoInterface) | (NativeDataFrame & ~SupportsGeoInterface) | (narwhals.stable.v1.typing.DataFrameLike & ~SupportsGeoInterface) | (Unknown & ~None & ~SupportsGeoInterface) | (altair.utils.core.DataFrameLike & ~SupportsGeoInterface)` on object of type `MutableMapping[str, DataFrameLike]`

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

tests/unittests/distros/test_user_data_normalize.py

[error] invalid-argument-type - Argument to bound method `__init__` is incorrect: Expected `dict[Unknown, Unknown]`, found `Unknown | bool | list[Unknown] | ... omitted 3 union elements`
[error] invalid-argument-type - Argument to bound method `__init__` is incorrect: Expected `dict[Unknown, Unknown]`, found `Unknown | dict[Unknown | str, Unknown | str] | str | ... omitted 3 union elements`

tests/unittests/sources/test_gce.py

[error] invalid-argument-type - Argument to bound method `__init__` is incorrect: Expected `dict[Unknown, Unknown]`, found `Unknown | bool | list[Unknown] | ... omitted 3 union elements`
[error] invalid-argument-type - Argument to bound method `__init__` is incorrect: Expected `dict[Unknown, Unknown]`, found `Unknown | dict[Unknown | str, Unknown | str] | str | ... omitted 3 union elements`

colour (https://github.com/colour-science/colour)

colour/utilities/verbose.py

[error] invalid-argument-type - Argument to function `getattr` is incorrect: Expected `str`, found `(Unknown & ~None) | <class 'str'> | bool`
[error] invalid-argument-type - Argument to function `getattr` is incorrect: Expected `str`, found `bool | (Unknown & ~None) | <class 'str'>`

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

ddtrace/debugging/_redaction.py

[error] unsupported-operator - Operator `|` is not supported between objects of type `frozenset[Unknown | str]` and `Unknown | EnvVariable[set[Unknown]]`
[error] unsupported-operator - Operator `|` is not supported between objects of type `frozenset[str | Unknown]` and `Unknown | EnvVariable[set[Unknown]]`

tests/tracer/test_span.py

[error] invalid-argument-type - Argument to bound method `set_metric` is incorrect: Expected `int | float`, found `Span | Unknown | None | ... omitted 6 union elements`
[error] invalid-argument-type - Argument to bound method `set_metric` is incorrect: Expected `int | float`, found `int | Unknown | None | ... omitted 6 union elements`

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

discord/utils.py

[error] invalid-await - `T@async_all | Awaitable[T@async_all]` is not awaitable

graphql-core (https://github.com/graphql-python/graphql-core)

src/graphql/pyutils/async_reduce.py

[warning] redundant-cast - Value is already of type `Awaitable[U@async_reduce]`

src/graphql/execution/execute.py

[warning] redundant-cast - Value is already of type `Awaitable[ExecutionResult]`
[warning] redundant-cast - Value is already of type `Awaitable[bool]`
[error] invalid-await - `Awaitable[GraphQLWrappedResult[dict[str, Any]]] | GraphQLWrappedResult[dict[str, Any]]` is not awaitable
[error] invalid-await - `Awaitable[GraphQLWrappedResult[Any]] | GraphQLWrappedResult[Any] | UndefinedType` is not awaitable
[error] invalid-argument-type - Argument to function `resolve` is incorrect: Expected `Awaitable[GraphQLWrappedResult[dict[str, Any]]]`, found `Awaitable[GraphQLWrappedResult[Any]] | GraphQLWrappedResult[Any] | UndefinedType`
[error] invalid-await - `Awaitable[GraphQLWrappedResult[Any]] | GraphQLWrappedResult[Any]` is not awaitable
[error] invalid-await - `Awaitable[GraphQLWrappedResult[Any]] | GraphQLWrappedResult[Any]` is not awaitable
[error] invalid-await - `Awaitable[GraphQLWrappedResult[Any]] | GraphQLWrappedResult[Any]` is not awaitable
[error] invalid-await - `Awaitable[GraphQLWrappedResult[dict[str, Any]]] | GraphQLWrappedResult[dict[str, Any]]` is not awaitable
[error] invalid-await - `Awaitable[GraphQLWrappedResult[dict[str, Any]]] | GraphQLWrappedResult[dict[str, Any]]` is not awaitable
[error] invalid-await - `Awaitable[ReconcilableDeferredGroupedFieldSetResult | NonReconcilableDeferredGroupedFieldSetResult] | ReconcilableDeferredGroupedFieldSetResult | NonReconcilableDeferredGroupedFieldSetResult` is not awaitable
[error] invalid-await - `Awaitable[GraphQLWrappedResult[dict[str, Any]]] | GraphQLWrappedResult[dict[str, Any]]` is not awaitable
[error] invalid-await - `Awaitable[StreamItemResult] | StreamItemResult` is not awaitable
[error] invalid-await - `Awaitable[GraphQLWrappedResult[Any]] | GraphQLWrappedResult[Any] | GraphQLWrappedResult[None]` is not awaitable
[error] invalid-await - `Awaitable[GraphQLWrappedResult[dict[str, Any]]] | GraphQLWrappedResult[dict[str, Any]]` is not awaitable
[error] invalid-await - `Awaitable[AsyncIterable[Any] | ExecutionResult] | AsyncIterable[Any] | ExecutionResult` is not awaitable
[error] invalid-await - `Awaitable[AsyncIterable[Any]] | AsyncIterable[Any]` is not awaitable

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

ibis/selectors.py

[error] invalid-return-type - Return type does not match returned value: expected `frozenset[str]`, found `frozenset[Buffer | Unknown | str]`
[error] invalid-return-type - Return type does not match returned value: expected `frozenset[str]`, found `frozenset[str | Buffer | Unknown]`
[error] invalid-assignment - Object of type `frozenset[Unknown | str]` is not assignable to `tuple[str | Column, ...]`
[error] invalid-assignment - Object of type `frozenset[str | Unknown]` is not assignable to `tuple[str | Column, ...]`

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

jax/_src/export/_export.py

[error] invalid-argument-type - Argument to function `_get_named_sharding` is incorrect: Expected `ShapedArray`, found `Unknown | AbstractValue`
[error] invalid-argument-type - Argument to function `_get_named_sharding` is incorrect: Expected `ShapedArray`, found `AbstractValue | Unknown`

jax/_src/pallas/hlo_interpreter.py

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

jax/_src/pallas/mosaic/interpret/interpret_pallas_call.py

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

jax/_src/pallas/pallas_call.py

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

jax/collect_profile.py

[error] unresolved-attribute - Attribute `glob` is not defined on `PathLike[str]`, `int`, `str`, `bytes`, `PathLike[bytes]` in union `PathLike[str] | Unknown | int | ... omitted 3 union elements`
[error] unresolved-attribute - Attribute `glob` is not defined on `PathLike[str]`, `int`, `str`, `bytes`, `PathLike[bytes]` in union `Unknown | PathLike[str] | int | ... omitted 3 union elements`
[error] unsupported-operator - Operator `/` is not supported between objects of type `PathLike[str] | Unknown | int | ... omitted 3 union elements` and `Literal["remote.trace.json.gz"]`
[error] unsupported-operator - Operator `/` is not supported between objects of type `Unknown | PathLike[str] | int | ... omitted 3 union elements` and `Literal["remote.trace.json.gz"]`

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

mesonbuild/dependencies/cuda.py

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

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

openlibrary/catalog/utils/__init__.py

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

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

src/pip/_internal/req/req_uninstall.py

[error] invalid-argument-type - Argument to function `norm_join` is incorrect: Expected `str`, found `Unknown | Sized`
[error] invalid-argument-type - Argument to function `norm_join` is incorrect: Expected `str`, found `Sized | Unknown`
[error] invalid-argument-type - Argument to function `norm_join` is incorrect: Expected `str`, found `Unknown | Sized`
[error] invalid-argument-type - Argument to function `norm_join` is incorrect: Expected `str`, found `Sized | Unknown`
[error] unsupported-operator - Operator `+` is not supported between objects of type `Unknown | Sized` and `LiteralString`
[error] unsupported-operator - Operator `+` is not supported between objects of type `Sized | Unknown` and `LiteralString`

pylox (https://github.com/sco1/pylox)

pylox/containers/array.py

[error] invalid-assignment - Object of type `deque[None | Unknown]` is not assignable to attribute `fields` of type `dict[Unknown, Unknown]`
[error] invalid-assignment - Object of type `deque[Unknown | None]` is not assignable to attribute `fields` of type `dict[Unknown, Unknown]`

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

sklearn/externals/array_api_compat/common/_linalg.py

[error] unresolved-attribute - Attribute `max` is not defined on `tuple[Any, ...]` in union `Any | tuple[Any, ...]`
[error] unresolved-attribute - Attribute `max` is not defined on `tuple[Any, ...]` in union `tuple[Any, ...] | Any`
[error] unresolved-attribute - Attribute `dtype` is not defined on `tuple[Any, ...]` in union `Any | tuple[Any, ...]`
[error] unresolved-attribute - Attribute `dtype` is not defined on `tuple[Any, ...]` in union `tuple[Any, ...] | Any`
[error] unresolved-attribute - Attribute `max` is not defined on `tuple[Any, ...]` in union `Any | tuple[Any, ...]`
[error] unresolved-attribute - Attribute `max` is not defined on `tuple[Any, ...]` in union `tuple[Any, ...] | Any`

sklearn/utils/tests/test_multiclass.py

[error] unresolved-attribute - Attribute `toarray` is not defined on `list[Unknown | list[Unknown | int]] & SparseABC`, `ndarray[tuple[Any, ...], dtype[Any]] & SparseABC`, `_NotAnArray & SparseABC`, `list[Unknown | int] & SparseABC`, `list[Unknown | str] & SparseABC`, `list[Unknown | list[Unknown | str]] & SparseABC`, `list[Unknown] & SparseABC`, `list[Unknown | int | float] & SparseABC`, `list[Unknown | list[Unknown]] & SparseABC`, `list[Unknown | tuple[()]] & SparseABC`, `list[Unknown | ndarray[tuple[Any, ...], dtype[Unknown]]] & SparseABC`, `list[Unknown | set[Unknown | int]] & SparseABC`, `list[Unknown | frozenset[Unknown | int]] & SparseABC`, `list[Unknown | dict[Unknown | int, Unknown | str]] & SparseABC` in union `(Unknown & SparseABC) | (list[Unknown | list[Unknown | int]] & SparseABC) | (ndarray[tuple[Any, ...], dtype[Any]] & SparseABC) | ... omitted 12 union elements`
[error] unresolved-attribute - Attribute `toarray` is not defined on `list[Unknown | list[Unknown | int]] & SparseABC`, `ndarray[tuple[Any, ...], dtype[Any]] & SparseABC`, `_NotAnArray & SparseABC`, `list[Unknown | int] & SparseABC`, `list[Unknown | str] & SparseABC`, `list[Unknown | list[Unknown | str]] & SparseABC`, `list[Unknown] & SparseABC`, `list[Unknown | int | float] & SparseABC`, `list[Unknown | list[Unknown]] & SparseABC`, `list[Unknown | tuple[()]] & SparseABC`, `list[Unknown | ndarray[tuple[Any, ...], dtype[Unknown]]] & SparseABC`, `list[Unknown | set[Unknown | int]] & SparseABC`, `list[Unknown | frozenset[int | Unknown]] & SparseABC`, `list[Unknown | dict[Unknown | int, Unknown | str]] & SparseABC` in union `(Unknown & SparseABC) | (list[Unknown | list[Unknown | int]] & SparseABC) | (ndarray[tuple[Any, ...], dtype[Any]] & SparseABC) | ... omitted 12 union elements`

sockeye (https://github.com/awslabs/sockeye)

sockeye/output_handler.py

[error] invalid-argument-type - Argument to function `__new__` is incorrect: Expected `Iterable[list[str] | Unknown]`, found `list[list[str]] | None`
[error] invalid-argument-type - Argument to function `__new__` is incorrect: Expected `Iterable[Unknown | list[str]]`, found `list[list[str]] | None`

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

lib/spack/spack/detection/path.py

[error] invalid-argument-type - Argument to function `dedupe_paths` is incorrect: Expected `list[str]`, found `Unknown | list[int | str | bytes | ... omitted 3 union elements]`
[error] invalid-argument-type - Argument to function `dedupe_paths` is incorrect: Expected `list[str]`, found `Unknown | list[int | bytes | PathLike[str] | ... omitted 3 union elements]`

lib/spack/spack/llnl/util/filesystem.py

[error] invalid-argument-type - Argument to function `exists` is incorrect: Expected `int | str | bytes | PathLike[str] | PathLike[bytes]`, found `Unknown | Sized`
[error] invalid-argument-type - Argument to function `exists` is incorrect: Expected `int | str | bytes | PathLike[str] | PathLike[bytes]`, found `Sized | Unknown`
[error] invalid-argument-type - Argument to function `move` is incorrect: Expected `str | PathLike[str]`, found `Unknown | Sized`
[error] invalid-argument-type - Argument to function `move` is incorrect: Expected `str | PathLike[str]`, found `Sized | Unknown`

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

test/test_transforms_v2.py

[error] invalid-argument-type - Argument to bound method `__init__` is incorrect: Expected `InterpolationMode | int`, found `Unknown | int | tuple[int | float, int | float] | tuple[int, int, int, int]`
[error] invalid-argument-type - Argument to bound method `__init__` is incorrect: Expected `InterpolationMode | int`, found `Unknown | tuple[int, int, int, int] | int | tuple[int | float, int | float]`
[error] invalid-argument-type - Argument to bound method `__init__` is incorrect: Expected `Number | Sequence[Unknown]`, found `Unknown | int | tuple[int | float, int | float] | tuple[int, int, int, int]`
[error] invalid-argument-type - Argument to bound method `__init__` is incorrect: Expected `Number | Sequence[Unknown]`, found `Unknown | tuple[int, int, int, int] | int | tuple[int | float, int | float]`
[error] invalid-argument-type - Argument to bound method `__init__` is incorrect: Expected `Sequence[int | float] | None`, found `Unknown | int | tuple[int | float, int | float] | tuple[int, int, int, int]`
[error] invalid-argument-type - Argument to bound method `__init__` is incorrect: Expected `Sequence[int | float] | None`, found `Unknown | tuple[int, int, int, int] | int | tuple[int | float, int | float]`
[error] invalid-argument-type - Argument to bound method `__init__` is incorrect: Expected `Sequence[int | float] | None`, found `Unknown | int | tuple[int | float, int | float] | tuple[int, int, int, int]`
[error] invalid-argument-type - Argument to bound method `__init__` is incorrect: Expected `list[int | float] | None`, found `Unknown | tuple[int, int, int, int] | int | tuple[int | float, int | float]`
[error] invalid-argument-type - Argument to bound method `__init__` is incorrect: Expected `list[int | float] | None`, found `Unknown | int | tuple[int | float, int | float] | tuple[int, int, int, int]`
[error] invalid-argument-type - Argument to bound method `__init__` is incorrect: Expected `Number | Sequence[Unknown]`, found `Unknown | int | tuple[int | float, int | float] | tuple[int, int, int, int]`
[error] invalid-argument-type - Argument to bound method `__init__` is incorrect: Expected `Number | Sequence[Unknown]`, found `Unknown | tuple[int, int, int, int] | int | tuple[int | float, int | float]`
[error] invalid-argument-type - Argument to bound method `__init__` is incorrect: Expected `Sequence[int | float] | None`, found `Unknown | int | tuple[int | float, int | float] | tuple[int, int, int, int]`
[error] invalid-argument-type - Argument to bound method `__init__` is incorrect: Expected `Sequence[int | float] | None`, found `Unknown | tuple[int, int, int, int] | int | tuple[int | float, int | float]`
[error] invalid-argument-type - Argument to bound method `__init__` is incorrect: Expected `InterpolationMode | int`, found `Unknown | int | tuple[int | float, int | float] | tuple[int, int, int, int]`
[error] invalid-argument-type - Argument to bound method `__init__` is incorrect: Expected `InterpolationMode | int`, found `Unknown | tuple[int, int, int, int] | int | tuple[int | float, int | float]`
[error] invalid-argument-type - Argument to bound method `__init__` is incorrect: Expected `Number | Sequence[Unknown]`, found `Unknown | int | tuple[int | float, int | float] | tuple[int, int, int, int]`
[error] invalid-argument-type - Argument to bound method `__init__` is incorrect: Expected `Number | Sequence[Unknown]`, found `Unknown | tuple[int, int, int, int] | int | tuple[int | float, int | float]`
[error] invalid-argument-type - Argument to bound method `__init__` is incorrect: Expected `Sequence[int | float] | None`, found `Unknown | int | tuple[int | float, int | float] | tuple[int, int, int, int]`
[error] invalid-argument-type - Argument to bound method `__init__` is incorrect: Expected `Sequence[int | float] | None`, found `Unknown | tuple[int, int, int, int] | int | tuple[int | float, int | float]`
[error] invalid-argument-type - Argument to bound method `__init__` is incorrect: Expected `InterpolationMode | int`, found `Unknown | int | tuple[int | float, int | float] | tuple[int, int, int, int]`
[error] invalid-argument-type - Argument to bound method `__init__` is incorrect: Expected `InterpolationMode | int`, found `Unknown | tuple[int, int, int, int] | int | tuple[int | float, int | float]`
[error] invalid-argument-type - Argument to bound method `__init__` is incorrect: Expected `Number | Sequence[Unknown]`, found `Unknown | int | tuple[int | float, int | float] | tuple[int, int, int, int]`
[error] invalid-argument-type - Argument to bound method `__init__` is incorrect: Expected `Number | Sequence[Unknown]`, found `Unknown | tuple[int, int, int, int] | int | tuple[int | float, int | float]`
[error] invalid-argument-type - Argument to bound method `__init__` is incorrect: Expected `Sequence[int | float] | None`, found `Unknown | int | tuple[int | float, int | float] | tuple[int, int, int, int]`
[error] invalid-argument-type - Argument to bound method `__init__` is incorrect: Expected `Sequence[int | float] | None`, found `Unknown | tuple[int, int, int, int] | int | tuple[int | float, int | float]`