Ecosystem report

Old: main (merge base) f2a956e6 New: 22939/merge b5c73c86
Lint Rule Removed Added Changed
Total 2 19 48
invalid-argument-type 1 2 27
unresolved-attribute 0 2 17
invalid-match-pattern 0 10 0
unsupported-operator 0 4 2
invalid-assignment 0 0 1
invalid-return-type 0 0 1
type-assertion-failure 1 0 0
unused-type-ignore-comment 0 1 0
Project Removed Added Changed
Total 2 19 48
static-frame 0 0 17
vision 1 0 12
jax 0 9 3
sympy flaky 0 8 0
spack 0 0 5
dd-trace-py 0 0 3
pip 0 0 3
rotki 0 0 2
artigraph 0 0 1
ibis 0 0 1
kopf 0 1 0
pandas-stubs 1 0 0
prefect flaky 0 1 0
sockeye 0 0 1
Expression flaky 0 0 0
materialize flaky 0 0 0
pydantic flaky 0 0 0
scikit-build-core flaky 0 0 0

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

tests/arti/types/test_types.py

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

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[str | Unknown]` and `Unknown | EnvVariable[set[Unknown]]`
[error] unsupported-operator - Operator `|` is not supported between objects of type `frozenset[Unknown | str]` and `Unknown | EnvVariable[set[Unknown]]`

setup.py

[error] invalid-argument-type - Argument to function `setup` is incorrect: Expected `_MutableDictLike[str, type[Command]]`, found `dict[Unknown | str, Unknown | <class 'CustomBuildExt'> | <class 'LibraryDownloader'> | ... omitted 3 union elements]`
[error] invalid-argument-type - Argument to function `setup` is incorrect: Expected `_MutableDictLike[str, type[Command]]`, found `dict[str, <class 'CustomBuildExt'> | <class 'LibraryDownloader'> | <class 'CustomBuildRust'> | <class 'CleanLibraries'> | <class 'ExtensionHashes'>]`

tests/tracer/test_span.py

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

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[Unknown | str | Buffer]`
[error] invalid-return-type - Return type does not match returned value: expected `frozenset[str]`, found `frozenset[Buffer | Unknown | str]`

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

jax/_src/pallas/hlo_interpreter.py

[error] invalid-argument-type - Argument is incorrect: Expected `int`, found `Unknown | int | DynamicGridDim`
[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 `Unknown | int | DynamicGridDim`
[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 `Unknown | int | DynamicGridDim`
[error] invalid-argument-type - Argument is incorrect: Expected `int`, found `DynamicGridDim | Unknown | int`

jax/experimental/mosaic/gpu/fragmented_array.py

[error] invalid-match-pattern - `<class 'TiledLayoutImpl'> | Any` cannot be used in a class pattern because it is not a type: This will raise `TypeError` at runtime
[error] invalid-match-pattern - `<class 'TiledLayoutImpl'> | Any` cannot be used in a class pattern because it is not a type: This will raise `TypeError` at runtime
[error] invalid-match-pattern - `<class 'TiledLayoutImpl'> | Any` cannot be used in a class pattern because it is not a type: This will raise `TypeError` at runtime
[error] invalid-match-pattern - `<class 'TiledLayoutImpl'> | Any` cannot be used in a class pattern because it is not a type: This will raise `TypeError` at runtime
[error] invalid-match-pattern - `<class 'TiledLayoutImpl'> | Any` cannot be used in a class pattern because it is not a type: This will raise `TypeError` at runtime
[error] invalid-match-pattern - `<class 'TiledLayoutImpl'> | Any` cannot be used in a class pattern because it is not a type: This will raise `TypeError` at runtime
[error] invalid-match-pattern - `<class 'TiledLayoutImpl'> | Any` cannot be used in a class pattern because it is not a type: This will raise `TypeError` at runtime
[error] invalid-match-pattern - `<class 'TiledLayoutImpl'> | Any` cannot be used in a class pattern because it is not a type: This will raise `TypeError` at runtime
[error] invalid-match-pattern - `<class 'TiledLayoutImpl'> | Any` cannot be used in a class pattern because it is not a type: This will raise `TypeError` at runtime

kopf (https://github.com/nolar/kopf)

kopf/_cogs/structs/dicts.py

[error] invalid-match-pattern - `Unknown | <class '_dummy'>` cannot be used in a class pattern because it is not a type: This will raise `TypeError` at runtime

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

tests/series/test_series.py

[error] type-assertion-failure - Type `Series[Timestamp]` does not match asserted type `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 `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] invalid-argument-type - Argument to function `norm_join` is incorrect: Expected `str`, found `Unknown | Sized`
[error] unsupported-operator - Operator `+` is not supported between objects of type `Sized | Unknown` and `LiteralString`
[error] unsupported-operator - Operator `+` is not supported between objects of type `Unknown | Sized` and `LiteralString`

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

src/prefect/flows.py

flaky
(1/10)
[warning] unused-type-ignore-comment - Unused blanket `type: ignore` directive

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

rotkehlchen/tests/unit/test_makerdao.py

[error] invalid-argument-type - Argument is incorrect: Expected `defaultdict[Asset, defaultdict[str, Balance]]`, found `defaultdict[Asset | Unknown, defaultdict[str, Balance] | Balance | dict[Unknown | str, Unknown | Balance] | Unknown]`
[error] invalid-argument-type - Argument is incorrect: Expected `defaultdict[Asset, defaultdict[str, Balance]]`, found `defaultdict[Asset | Unknown, defaultdict[str, Balance] | Balance | Unknown | dict[Unknown | str, Unknown | Balance]]`
[error] invalid-argument-type - Argument is incorrect: Expected `defaultdict[Asset, defaultdict[str, Balance]]`, found `defaultdict[Asset | Unknown, defaultdict[str, Balance] | Balance | dict[Unknown | str, Unknown | Balance] | Unknown]`
[error] invalid-argument-type - Argument is incorrect: Expected `defaultdict[Asset, defaultdict[str, Balance]]`, found `defaultdict[Asset | Unknown, defaultdict[str, Balance] | Balance | Unknown | dict[Unknown | str, Unknown | Balance]]`

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

sockeye/output_handler.py

[error] invalid-argument-type - Argument to function `__new__` is incorrect: Expected `Iterable[Unknown | list[str]]`, found `list[list[str]] | None`
[error] invalid-argument-type - Argument to function `__new__` is incorrect: Expected `Iterable[list[str] | Unknown]`, 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[bytes | PathLike[str] | PathLike[bytes] | ... omitted 3 union elements]`
[error] invalid-argument-type - Argument to function `dedupe_paths` is incorrect: Expected `list[str]`, found `Unknown | list[int | str | Unknown | ... omitted 3 union elements]`

lib/spack/spack/verify_libraries.py

[error] invalid-argument-type - Argument to function `candidate_matches` is incorrect: Expected `bytes`, found `Unknown | bytes | str | PathLike[str] | PathLike[bytes]`
[error] invalid-argument-type - Argument to function `candidate_matches` is incorrect: Expected `bytes`, found `bytes | Unknown | str | PathLike[str] | PathLike[bytes]`
[error] invalid-assignment - Invalid subscript assignment with key of type `Unknown | bytes | str | PathLike[str] | PathLike[bytes]` and value of type `Unknown | bytes | str | PathLike[str] | PathLike[bytes]` on object of type `dict[bytes, bytes]`
[error] invalid-assignment - Invalid subscript assignment with key of type `bytes | Unknown | str | PathLike[str] | PathLike[bytes]` and value of type `bytes | Unknown | str | PathLike[str] | PathLike[bytes]` on object of type `dict[bytes, bytes]`
[error] invalid-argument-type - Argument to bound method `__init__` is incorrect: Expected `list[bytes]`, found `list[Unknown | bytes | str | PathLike[str] | PathLike[bytes]]`
[error] invalid-argument-type - Argument to bound method `__init__` is incorrect: Expected `list[bytes]`, found `list[bytes | Unknown | str | PathLike[str] | PathLike[bytes]]`
[error] invalid-argument-type - Argument to bound method `__init__` is incorrect: Expected `list[bytes]`, found `list[Unknown | bytes | str | PathLike[str] | PathLike[bytes]]`
[error] invalid-argument-type - Argument to bound method `__init__` is incorrect: Expected `list[bytes]`, found `list[bytes | Unknown | str | PathLike[str] | PathLike[bytes]]`

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

static_frame/test/unit/test_bus.py

[error] unresolved-attribute - Attribute `to_pairs` is not defined on `ndarray[Any, Any]` in union `ndarray[Any, Any] | @Todo | Series[Any, Any]`
[error] unresolved-attribute - Attribute `to_pairs` is not defined on `ndarray[Any, Any]` in union `@Todo | Series[Any, Any] | ndarray[Any, Any]`
[error] unresolved-attribute - Attribute `to_pairs` is not defined on `ndarray[Any, Any]` in union `ndarray[Any, Any] | @Todo | Series[Any, Any]`
[error] unresolved-attribute - Attribute `to_pairs` is not defined on `ndarray[Any, Any]` in union `@Todo | Series[Any, Any] | ndarray[Any, Any]`
[error] unresolved-attribute - Attribute `to_pairs` is not defined on `ndarray[Any, Any]` in union `ndarray[Any, Any] | @Todo | Series[Any, Any]`
[error] unresolved-attribute - Attribute `to_pairs` is not defined on `ndarray[Any, Any]` in union `@Todo | Series[Any, Any] | ndarray[Any, Any]`
[error] unresolved-attribute - Attribute `to_pairs` is not defined on `ndarray[Any, Any]` in union `ndarray[Any, Any] | @Todo | Series[Any, Any]`
[error] unresolved-attribute - Attribute `to_pairs` is not defined on `ndarray[Any, Any]` in union `@Todo | Series[Any, Any] | ndarray[Any, Any]`

static_frame/test/unit/test_frame_iter.py

[error] unresolved-attribute - Attribute `to_pairs` is not defined on `tuple[Any, Any]` in union `Any | tuple[Any, Any]`
[error] unresolved-attribute - Attribute `to_pairs` is not defined on `tuple[Any, Any]` in union `tuple[Any, Any] | Any`
[error] unresolved-attribute - Attribute `to_pairs` is not defined on `tuple[Any, Any]` in union `Any | tuple[Any, Any]`
[error] unresolved-attribute - Attribute `to_pairs` is not defined on `tuple[Any, Any]` in union `tuple[Any, Any] | Any`
[error] unresolved-attribute - Attribute `to_pairs` is not defined on `tuple[Any, Any]` in union `Any | tuple[Any, Any]`
[error] unresolved-attribute - Attribute `to_pairs` is not defined on `tuple[Any, Any]` in union `tuple[Any, Any] | Any`
[error] unresolved-attribute - Attribute `to_pairs` is not defined on `tuple[Any, Any]` in union `Any | tuple[Any, Any]`
[error] unresolved-attribute - Attribute `to_pairs` is not defined on `tuple[Any, Any]` in union `tuple[Any, Any] | Any`
[error] unresolved-attribute - Attribute `to_pairs` is not defined on `tuple[Any, Any]` in union `Any | tuple[Any, Any]`
[error] unresolved-attribute - Attribute `to_pairs` is not defined on `tuple[Any, Any]` in union `tuple[Any, Any] | Any`
[error] unresolved-attribute - Attribute `to_pairs` is not defined on `tuple[Any, Any]` in union `Any | tuple[Any, Any]`
[error] unresolved-attribute - Attribute `to_pairs` is not defined on `tuple[Any, Any]` in union `tuple[Any, Any] | Any`
[error] unresolved-attribute - Attribute `to_pairs` is not defined on `tuple[Any, Any]` in union `Any | tuple[Any, Any]`
[error] unresolved-attribute - Attribute `to_pairs` is not defined on `tuple[Any, Any]` in union `tuple[Any, Any] | Any`
[error] unresolved-attribute - Attribute `to_pairs` is not defined on `tuple[Any, Any]` in union `Any | tuple[Any, Any]`
[error] unresolved-attribute - Attribute `to_pairs` is not defined on `tuple[Any, Any]` in union `tuple[Any, Any] | Any`
[error] unresolved-attribute - Attribute `tolist` is not defined on `tuple[Any, Any]` in union `Any | tuple[Any, Any]`
[error] unresolved-attribute - Attribute `tolist` is not defined on `tuple[Any, Any]` in union `tuple[Any, Any] | Any`
[error] unresolved-attribute - Attribute `tolist` is not defined on `tuple[Any, Any]` in union `Any | tuple[Any, Any]`
[error] unresolved-attribute - Attribute `tolist` is not defined on `tuple[Any, Any]` in union `tuple[Any, Any] | Any`
[error] unresolved-attribute - Attribute `tolist` is not defined on `tuple[Any, Any]` in union `Any | tuple[Any, Any]`
[error] unresolved-attribute - Attribute `tolist` is not defined on `tuple[Any, Any]` in union `tuple[Any, Any] | Any`
[error] unresolved-attribute - Attribute `tolist` is not defined on `tuple[Any, Any]` in union `Any | tuple[Any, Any]`
[error] unresolved-attribute - Attribute `tolist` is not defined on `tuple[Any, Any]` in union `tuple[Any, Any] | Any`
[error] unresolved-attribute - Attribute `shape` is not defined on `tuple[Any, Any]` in union `Any | tuple[Any, Any]`
[error] unresolved-attribute - Attribute `shape` is not defined on `tuple[Any, Any]` in union `tuple[Any, Any] | Any`

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

sympy/matrices/eigen.py

flaky
(4/10)
[error] invalid-argument-type - Argument to bound method `_as_type` is incorrect: Expected `MatrixBase`, found `T2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | Unknown`

sympy/matrices/solvers.py

flaky
(4/10)
[error] invalid-argument-type - Argument to bound method `vstack` is incorrect: Argument type `T2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | Unknown` does not satisfy upper bound `MatrixBase` of type variable `Self`
(4/10)
[error] invalid-argument-type - Argument to bound method `vstack` is incorrect: Expected `Tmat@_gauss_jordan_solve`, found `T2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | Unknown`

sympy/matrices/tests/test_matrices.py

flaky
(4/10)
[error] unresolved-attribute - Attribute `rank` is not defined on `T2'return@call_highest_priority`, `T1'return@call_highest_priority` in union `T2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | Unknown`
flaky
(4/10)
[error] unsupported-operator - Operator `**` is not supported between objects of type `T2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | Unknown` and `Literal[2]`
flaky
(4/10)
[error] unsupported-operator - Operator `**` is not supported between objects of type `T2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | Unknown` and `Literal[3]`

sympy/matrices/tests/test_reductions.py

flaky
(4/10)
[error] unresolved-attribute - Attribute `rank` is not defined on `T2'return@call_highest_priority`, `T1'return@call_highest_priority` in union `T2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | Unknown`
flaky
(4/10)
[error] unsupported-operator - Operator `**` is not supported between objects of type `T2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | Unknown` and `Literal[2]`
flaky
(4/10)
[error] unsupported-operator - Operator `**` is not supported between objects of type `T2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | Unknown` and `Literal[3]`

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 | 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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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]`