Ecosystem report

Old: main (merge base) 4578377c New: 24705/merge 992897cb
Lint Rule Removed Added Changed
Total 4 0 28
invalid-argument-type 1 0 25
index-out-of-bounds 2 0 0
invalid-assignment 1 0 1
not-iterable 0 0 2
Project Removed Added Changed
Total 4 0 28
vision 2 0 16
mitmproxy 0 0 3
scikit-learn 0 0 3
scipy 0 0 3
dd-trace-py 1 0 1
jax 1 0 0
pycryptodome 0 0 1
setuptools 0 0 1

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

tests/contrib/pytest/test_pytest.py

[error] index-out-of-bounds - Index 1 is out of bounds for tuple `tuple[str]` with length 1
[error] invalid-argument-type - Argument to bound method `Span.get_tag` is incorrect: Expected `str`, found `Unknown | str | None`
[error] invalid-argument-type - Argument to bound method `Span.get_tag` is incorrect: Expected `str`, found `str | None`

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

jax/_src/internal_test_util/test_harnesses.py

[error] index-out-of-bounds - Index -1 is out of bounds for tuple `tuple[()]` with length 0

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

examples/contrib/jsondump.py

[error] invalid-argument-type - Argument to bound method `list.append` is incorrect: Expected `dict[str, tuple[tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str]] | tuple[tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str]] | tuple[tuple[str]] | tuple[tuple[str, str], tuple[str, str]] | <class 'dict'>] | dict[str, tuple[tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str]] | tuple[tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str]] | tuple[tuple[str]] | tuple[tuple[str, str], tuple[str, str]] | ((t) -> int)] | dict[str, tuple[tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str]] | tuple[tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str]] | tuple[tuple[str]] | tuple[tuple[str, str], tuple[str, str]] | ((addr) -> dict[str, Unknown])] | dict[str, tuple[tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str]] | tuple[tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str]] | tuple[tuple[str]] | tuple[tuple[str, str], tuple[str, str]] | ((ms) -> list[dict[str, Unknown | bytes | int]])]`, found `dict[str, tuple[tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str]] | tuple[tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str]] | tuple[tuple[str]] | tuple[tuple[str, str], tuple[str, str]] | ((s: Buffer, altchars: Buffer | None = None) -> bytes)]`
[error] invalid-argument-type - Argument to bound method `list.append` is incorrect: Expected `dict[str, tuple[tuple[str, str], ...] | tuple[tuple[str]] | <class 'dict'>] | dict[str, tuple[tuple[str, str], ...] | tuple[tuple[str]] | ((t) -> int)] | dict[str, tuple[tuple[str, str], ...] | tuple[tuple[str]] | ((addr) -> dict[str, Unknown])] | dict[str, tuple[tuple[str, str], ...] | tuple[tuple[str]] | ((ms) -> list[dict[str, Unknown | bytes | int]])]`, found `dict[str, tuple[tuple[str, str], ...] | tuple[tuple[str]] | ((s: Buffer, altchars: Buffer | None = None) -> bytes)]`
[error] not-iterable - Object of type `None | list[dict[str, tuple[tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str]] | tuple[tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str]] | tuple[tuple[str]] | tuple[tuple[str, str], tuple[str, str]] | <class 'dict'>] | dict[str, tuple[tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str]] | tuple[tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str]] | tuple[tuple[str]] | tuple[tuple[str, str], tuple[str, str]] | ((t) -> int)] | dict[str, tuple[tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str]] | tuple[tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str]] | tuple[tuple[str]] | tuple[tuple[str, str], tuple[str, str]] | ((addr) -> dict[str, Unknown])] | dict[str, tuple[tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str]] | tuple[tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str]] | tuple[tuple[str]] | tuple[tuple[str, str], tuple[str, str]] | ((ms) -> list[dict[str, Unknown | bytes | int]])]]` may not be iterable
[error] not-iterable - Object of type `None | list[dict[str, tuple[tuple[str, str], ...] | tuple[tuple[str]] | <class 'dict'>] | dict[str, tuple[tuple[str, str], ...] | tuple[tuple[str]] | ((t) -> int)] | dict[str, tuple[tuple[str, str], ...] | tuple[tuple[str]] | ((addr) -> dict[str, Unknown])] | dict[str, tuple[tuple[str, str], ...] | tuple[tuple[str]] | ((ms) -> list[dict[str, Unknown | bytes | int]])]]` may not be iterable
[error] not-iterable - Object of type `tuple[tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str]] | tuple[tuple[str, str], tuple[str, str], tuple[str, str], tuple[str, str]] | tuple[tuple[str]] | ... omitted 5 union elements` may not be iterable
[error] not-iterable - Object of type `tuple[tuple[str, str], ...] | tuple[tuple[str]] | <class 'dict'> | ... omitted 3 union elements` may not be iterable

pycryptodome (https://github.com/Legrandin/pycryptodome)

lib/Crypto/SelfTest/Hash/test_SHA1.py

[error] invalid-argument-type - Argument to bound method `list.append` is incorrect: Expected `tuple[str, str] | tuple[str, str, str]`, found `tuple[bytes, Unknown | Literal[b""], Unknown]`
[error] invalid-argument-type - Argument to bound method `list.append` is incorrect: Expected `tuple[str, ...]`, found `tuple[bytes, Unknown | Literal[b""], Unknown]`

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

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

[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[<class 'bool'> | <class 'int'> | <class 'float'> | <class 'complex'>, str | tuple[str, str, str] | tuple[str, str]].__getitem__(key: <class 'bool'> | <class 'int'> | <class 'float'> | <class 'complex'>, /) -> str | tuple[str, str, str] | tuple[str, str]` cannot be called with key of type `type[complex]` on object of type `dict[<class 'bool'> | <class 'int'> | <class 'float'> | <class 'complex'>, str | tuple[str, str, str] | tuple[str, str]]`
[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[<class 'bool'> | <class 'int'> | <class 'float'> | <class 'complex'>, str | tuple[str, ...]].__getitem__(key: <class 'bool'> | <class 'int'> | <class 'float'> | <class 'complex'>, /) -> str | tuple[str, ...]` cannot be called with key of type `type[complex]` on object of type `dict[<class 'bool'> | <class 'int'> | <class 'float'> | <class 'complex'>, str | tuple[str, ...]]`
[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[<class 'bool'> | <class 'int'> | <class 'float'> | <class 'complex'>, str | tuple[str, str, str] | tuple[str, str]].__getitem__(key: <class 'bool'> | <class 'int'> | <class 'float'> | <class 'complex'>, /) -> str | tuple[str, str, str] | tuple[str, str]` cannot be called with key of type `type[float]` on object of type `dict[<class 'bool'> | <class 'int'> | <class 'float'> | <class 'complex'>, str | tuple[str, str, str] | tuple[str, str]]`
[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[<class 'bool'> | <class 'int'> | <class 'float'> | <class 'complex'>, str | tuple[str, ...]].__getitem__(key: <class 'bool'> | <class 'int'> | <class 'float'> | <class 'complex'>, /) -> str | tuple[str, ...]` cannot be called with key of type `type[float]` on object of type `dict[<class 'bool'> | <class 'int'> | <class 'float'> | <class 'complex'>, str | tuple[str, ...]]`
[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[<class 'bool'> | <class 'int'> | <class 'float'> | <class 'complex'>, str | tuple[str, str, str] | tuple[str, str]].__getitem__(key: <class 'bool'> | <class 'int'> | <class 'float'> | <class 'complex'>, /) -> str | tuple[str, str, str] | tuple[str, str]` cannot be called with key of type `type[int]` on object of type `dict[<class 'bool'> | <class 'int'> | <class 'float'> | <class 'complex'>, str | tuple[str, str, str] | tuple[str, str]]`
[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[<class 'bool'> | <class 'int'> | <class 'float'> | <class 'complex'>, str | tuple[str, ...]].__getitem__(key: <class 'bool'> | <class 'int'> | <class 'float'> | <class 'complex'>, /) -> str | tuple[str, ...]` cannot be called with key of type `type[int]` on object of type `dict[<class 'bool'> | <class 'int'> | <class 'float'> | <class 'complex'>, str | tuple[str, ...]]`

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

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

[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[<class 'bool'> | <class 'int'> | <class 'float'> | <class 'complex'>, str | tuple[str, str, str] | tuple[str, str]].__getitem__(key: <class 'bool'> | <class 'int'> | <class 'float'> | <class 'complex'>, /) -> str | tuple[str, str, str] | tuple[str, str]` cannot be called with key of type `type[complex]` on object of type `dict[<class 'bool'> | <class 'int'> | <class 'float'> | <class 'complex'>, str | tuple[str, str, str] | tuple[str, str]]`
[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[<class 'bool'> | <class 'int'> | <class 'float'> | <class 'complex'>, str | tuple[str, ...]].__getitem__(key: <class 'bool'> | <class 'int'> | <class 'float'> | <class 'complex'>, /) -> str | tuple[str, ...]` cannot be called with key of type `type[complex]` on object of type `dict[<class 'bool'> | <class 'int'> | <class 'float'> | <class 'complex'>, str | tuple[str, ...]]`
[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[<class 'bool'> | <class 'int'> | <class 'float'> | <class 'complex'>, str | tuple[str, str, str] | tuple[str, str]].__getitem__(key: <class 'bool'> | <class 'int'> | <class 'float'> | <class 'complex'>, /) -> str | tuple[str, str, str] | tuple[str, str]` cannot be called with key of type `type[float]` on object of type `dict[<class 'bool'> | <class 'int'> | <class 'float'> | <class 'complex'>, str | tuple[str, str, str] | tuple[str, str]]`
[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[<class 'bool'> | <class 'int'> | <class 'float'> | <class 'complex'>, str | tuple[str, ...]].__getitem__(key: <class 'bool'> | <class 'int'> | <class 'float'> | <class 'complex'>, /) -> str | tuple[str, ...]` cannot be called with key of type `type[float]` on object of type `dict[<class 'bool'> | <class 'int'> | <class 'float'> | <class 'complex'>, str | tuple[str, ...]]`
[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[<class 'bool'> | <class 'int'> | <class 'float'> | <class 'complex'>, str | tuple[str, str, str] | tuple[str, str]].__getitem__(key: <class 'bool'> | <class 'int'> | <class 'float'> | <class 'complex'>, /) -> str | tuple[str, str, str] | tuple[str, str]` cannot be called with key of type `type[int]` on object of type `dict[<class 'bool'> | <class 'int'> | <class 'float'> | <class 'complex'>, str | tuple[str, str, str] | tuple[str, str]]`
[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[<class 'bool'> | <class 'int'> | <class 'float'> | <class 'complex'>, str | tuple[str, ...]].__getitem__(key: <class 'bool'> | <class 'int'> | <class 'float'> | <class 'complex'>, /) -> str | tuple[str, ...]` cannot be called with key of type `type[int]` on object of type `dict[<class 'bool'> | <class 'int'> | <class 'float'> | <class 'complex'>, str | tuple[str, ...]]`

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

setuptools/_distutils/tests/test_build_ext.py

[error] invalid-assignment - Invalid subscript assignment with key of type `Literal["macros"]` and value of type `list[tuple[str, str] | tuple[str]]` on object of type `dict[str, list[str] | str | list[tuple[str, str, str] | str]]`
[error] invalid-assignment - Invalid subscript assignment with key of type `Literal["macros"]` and value of type `list[tuple[str, ...]]` on object of type `dict[str, list[str] | str | list[tuple[str, str, str] | str]]`

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

test/test_datasets.py

[error] invalid-assignment - Invalid subscript assignment with key of type `Literal["trainval"]` and value of type `tuple[int, ...]` on object of type `dict[str, tuple[int, int, int] | tuple[int, int] | tuple[int]]`

test/test_transforms_v2.py

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