Ecosystem report

Old: main (merge base) ad417282 New: 22120/merge 97d82031
Lint Rule Removed Added Changed
Total 23 51 24
invalid-argument-type 8 16 9
unused-ignore-comment 15 2 0
invalid-return-type 0 4 7
unresolved-attribute 0 9 1
possibly-missing-attribute 0 7 1
invalid-assignment 0 3 3
no-matching-overload 0 4 0
unsupported-operator 0 0 3
call-non-callable 0 2 0
missing-argument 0 1 0
non-subscriptable 0 1 0
not-iterable 0 1 0
redundant-cast 0 1 0
Project Removed Added Changed
Total 23 51 24
static-frame 3 8 4
sockeye 0 4 4
jax 0 4 2
setuptools 3 0 3
zulip 0 6 0
ibis 0 1 4
dedupe 0 4 0
dulwich 1 3 0
poetry 4 0 0
cwltool 0 3 0
dd-trace-py 0 0 3
discord.py 3 0 0
spack 1 2 0
xarray 0 1 2
antidote 2 0 0
meson 0 2 0
mitmproxy 0 2 0
openlibrary 0 2 0
scikit-build-core 2 0 0
Tanjun 1 0 0

Tanjun (https://github.com/FasterSpeeding/Tanjun)

tanjun/dependencies/reloaders.py

[error] invalid-argument-type - :361:76 - Argument to function `__new__` is incorrect: Expected `Iterable[Never]`, found `Generator[Path, None, None]`

antidote (https://github.com/Finistere/antidote)

tests/lib/interface/test_lazy.py

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

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

src/bokeh/layouts.py

[error] invalid-assignment - :298:20 - Object of type `list[Sequence[Unknown]]` is not assignable to `list[UIElement | None] | list[list[UIElement | None]]`

cwltool (https://github.com/common-workflow-language/cwltool)

tests/test_provenance.py

[error] unresolved-attribute - :632:47 - Object of type `Node` has no attribute `endswith`
[error] invalid-argument-type - :638:41 - Argument to function `_arcp2file` is incorrect: Expected `str`, found `Node | Unknown`
[error] invalid-argument-type - :639:43 - Argument to bound method `parse` is incorrect: Expected `str | None`, found `Node | Unknown`

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

ddtrace/internal/coverage/instrumentation_py3_12.py

[error] invalid-assignment - :241 -
Old: Invalid subscript assignment with key of type `Unknown & ~None` and value of type `tuple[None | str, tuple[Unknown, ...]]` on object of type `dict[int, tuple[str, tuple[str, ...]]]`
New: Invalid subscript assignment with key of type `int` and value of type `tuple[None | str, tuple[Unknown, ...]]` on object of type `dict[int, tuple[str, tuple[str, ...]]]`
[error] invalid-assignment - :246 -
Old: Invalid subscript assignment with key of type `Unknown & ~None` and value of type `tuple[None | str, tuple[str]]` on object of type `dict[int, tuple[str, tuple[str, ...]]]`
New: Invalid subscript assignment with key of type `int` and value of type `tuple[None | str, tuple[str]]` on object of type `dict[int, tuple[str, tuple[str, ...]]]`

tests/testing/internal/pytest/test_pytest_efd.py

[error] invalid-assignment - :70 -
Old: Object of type `list[Unknown]` is not assignable to `set[TestRef | SuiteRef]`
New: Object of type `list[dict[str, Any]]` is not assignable to `set[TestRef | SuiteRef]`

dedupe (https://github.com/dedupeio/dedupe)

dedupe/labeler.py

[error] invalid-assignment - :71:13 - Object of type `list[int]` is not assignable to `Iterable[Literal[0, 1]]`
[error] invalid-argument-type - :72:30 - Argument to function `len` is incorrect: Expected `Sized`, found `Iterable[Literal[0, 1]]`
[error] invalid-argument-type - :74:78 - Argument to function `len` is incorrect: Expected `Sized`, found `Iterable[Literal[0, 1]]`
[error] invalid-return-type - :76:16 - Return type does not match returned value: expected `list[Literal[0, 1]]`, found `Iterable[Literal[0, 1]]`

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

discord/ext/commands/help.py

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

discord/ui/modal.py

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

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

dulwich/pack.py

[error] invalid-return-type - :674:16 - Return type does not match returned value: expected `Iterator[ObjectID]`, found `map[Unknown | bytes]`
[error] invalid-return-type - :1914:16 - Return type does not match returned value: expected `list[tuple[RawObjectID, int, int]]`, found `list[tuple[RawObjectID, int, int | None]]`
[warning] unused-ignore-comment - :1915:83 - Unused blanket `type: ignore` directive
[warning] unused-ignore-comment - :3052:55 - Unused blanket `type: ignore` directive

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

ibis/backends/sql/datatypes.py

[error] invalid-assignment - :1396:40 - Object of type `dict[Unknown, type[Unknown] | Unknown]` is not assignable to `dict[str, SqlglotType]`

ibis/expr/api.py

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

ibis/expr/datatypes/core.py

[error] invalid-argument-type - :968 -
Old: Argument is incorrect: Expected `bool`, found `dict[Unknown, Unknown]`
New: Argument is incorrect: Expected `bool`, found `dict[str, str | DataType]`

ibis/expr/types/relations.py

[warning] possibly-missing-attribute - :4448 -
Old: Attribute `setdefault` may be missing on object of type `(((str, /) -> Value) & Top[Mapping[Unknown, object]]) | Mapping[str, (str, /) -> Value] | Unknown | dict[Unknown, ((str, /) -> Value) & (() -> object) & ~Top[Mapping[Unknown, object]]]`
New: Attribute `setdefault` may be missing on object of type `(((str, /) -> Value) & Top[Mapping[Unknown, object]]) | Mapping[str, (str, /) -> Value] | Unknown`

isort (https://github.com/pycqa/isort)

isort/api.py

[error] invalid-argument-type - :636:50 - Argument to function `__new__` is incorrect: Expected `Iterable[Buffer]`, found `Iterator[str | Path]`

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

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

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

jax/_src/profiler.py

[error] unresolved-attribute - :159 -
Old: Object of type `int | str | bytes | PathLike[str] | PathLike[bytes]` has no attribute `glob`
New: Object of type `PathLike[str] | int | str | bytes | PathLike[bytes]` has no attribute `glob`
[error] unsupported-operator - :173 -
Old: Operator `/` is not supported between objects of type `int | str | bytes | PathLike[str] | PathLike[bytes]` and `Literal["perfetto_trace.json.gz"]`
New: Operator `/` is not supported between objects of type `PathLike[str] | int | str | bytes | PathLike[bytes]` and `Literal["perfetto_trace.json.gz"]`

jax/_src/tree_util.py

[error] invalid-argument-type - :302:31 - Argument to bound method `register_node` is incorrect: Expected `(Hashable, Iterable[object], /) -> T@register_pytree_node`, found `(_AuxData@register_pytree_node, _Children@register_pytree_node, /) -> T@register_pytree_node`
[error] invalid-argument-type - :305:31 - Argument to bound method `register_node` is incorrect: Expected `(Hashable, Iterable[object], /) -> T@register_pytree_node`, found `(_AuxData@register_pytree_node, _Children@register_pytree_node, /) -> T@register_pytree_node`
[error] invalid-argument-type - :308:31 - Argument to bound method `register_node` is incorrect: Expected `(Hashable, Iterable[object], /) -> T@register_pytree_node`, found `(_AuxData@register_pytree_node, _Children@register_pytree_node, /) -> T@register_pytree_node`

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

mesonbuild/backend/ninjabackend.py

[error] invalid-argument-type - :1154:65 - Argument is incorrect: Expected `list[tuple[str, Literal["cpp", "fortran"]]]`, found `list[tuple[str, str]]`

mesonbuild/dependencies/cuda.py

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

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

test/mitmproxy/io/test_compat.py

[error] unresolved-attribute - :24:16 - Object of type `Flow` has no attribute `request`

test/mitmproxy/test_flow.py

[error] unresolved-attribute - :52:16 - Object of type `Flow` has no attribute `request`

mypy_primer (https://github.com/hauntsaninja/mypy_primer)

mypy_primer/model.py

[error] invalid-argument-type - :189:40 - Argument to function `__new__` is incorrect: Expected `Iterable[Buffer]`, found `Generator[Path, None, None]`

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

openlibrary/catalog/marc/tests/test_marc_binary.py

[warning] possibly-missing-attribute - :27:27 - Attribute `get_all_subfields` may be missing on object of type `str | BinaryDataField`
[warning] possibly-missing-attribute - :29:27 - Attribute `get_all_subfields` may be missing on object of type `str | BinaryDataField`

paasta (https://github.com/yelp/paasta)

paasta_tools/utils.py

[warning] redundant-cast - :4206:19 - Value is already of type `list[str]`

poetry (https://github.com/python-poetry/poetry)

src/poetry/repositories/installed_repository.py

[warning] unused-ignore-comment - :268:55 - Unused blanket `type: ignore` directive
[warning] unused-ignore-comment - :275:48 - Unused blanket `type: ignore` directive

tests/installation/test_executor.py

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

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

src/prefect/server/events/storage/__init__.py

[error] not-iterable - :88:42 - Object of type `int` is not iterable

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

psycopg/psycopg/_server_cursor_base.py

[error] invalid-argument-type - :183:51 - Argument to bound method `load_rows` is incorrect: Expected `RowMaker[tuple[Any, ...]]`, found `RowMaker[Row@ServerCursorMixin]`

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

pwndbg/aglib/objc.py

[warning] possibly-missing-attribute - :1143:22 - Attribute `name_to_human_readable` may be missing on object of type `Type | None`

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

src/_pytest/python.py

[error] non-subscriptable - :951:31 - Cannot subscript object of type `_HiddenParam` with no `__getitem__` method

scikit-build-core (https://github.com/scikit-build/scikit-build-core)

tests/test_cmake_ast.py

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

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

sklearn/externals/array_api_compat/common/_helpers.py

[error] no-matching-overload - :917:11 - No overload of function `prod` matches arguments

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

scipy/_lib/array_api_compat/array_api_compat/common/_helpers.py

[error] no-matching-overload - :927:11 - No overload of function `prod` matches arguments

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

scrapy/utils/signal.py

[error] invalid-return-type - :205 -
Old: Return type does not match returned value: expected `list[tuple[Any, Any]]`, found `list[Unknown | BaseException]`
New: Return type does not match returned value: expected `list[tuple[Any, Any]]`, found `list[Any | BaseException]`

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

setuptools/_distutils/archive_util.py

[error] invalid-argument-type - :288 -
Old: Argument is incorrect: Expected `str`, found `str | PathLike[str] | Unknown`
New: Argument is incorrect: Expected `str`, found `str | PathLike[str]`

setuptools/_distutils/compilers/C/base.py

[error] unsupported-operator - :1084 -
Old: Operator `+` is not supported between objects of type `str | PathLike[str] | Unknown` and `str | None`
New: Operator `+` is not supported between objects of type `str | PathLike[str]` and `str | None`
[error] unsupported-operator - :1109 -
Old: Operator `+` is not supported between objects of type `str | PathLike[str] | Unknown` and `(str & ~AlwaysFalsy) | Literal[""]`
New: Operator `+` is not supported between objects of type `str | PathLike[str]` and `(str & ~AlwaysFalsy) | Literal[""]`

setuptools/command/editable_wheel.py

[error] invalid-argument-type - :174:31 - Argument to function `__new__` is incorrect: Expected `Iterable[Buffer]`, found `Generator[Path, None, None]`

setuptools/dist.py

[error] invalid-argument-type - :400:48 - Argument to function `__new__` is incorrect: Expected `Iterable[Buffer]`, found `Iterator[Requirement]`
[error] invalid-argument-type - :404:31 - Argument to function `__new__` is incorrect: Expected `Iterable[Buffer]`, found `Iterator[Requirement]`

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

sockeye/inference.py

[error] invalid-argument-type - :346 -
Old: Argument to function `len` is incorrect: Expected `Sized`, found `list[Unknown] | None`
New: Argument to function `len` is incorrect: Expected `Sized`, found `list[str] | None`
[error] invalid-argument-type - :348 -
Old: Argument to function `len` is incorrect: Expected `Sized`, found `list[Unknown] | None`
New: Argument to function `len` is incorrect: Expected `Sized`, found `list[str] | None`
[error] invalid-argument-type - :350 -
Old: Argument to function `len` is incorrect: Expected `Sized`, found `(Unknown & ~Top[list[Unknown]]) | None | list[list[Unknown] | Unknown]`
New: Argument to function `len` is incorrect: Expected `Sized`, found `(Unknown & ~Top[list[Unknown]]) | None | list[list[str] | Unknown]`
[error] invalid-argument-type - :352 -
Old: Argument to function `len` is incorrect: Expected `Sized`, found `(Unknown & ~Top[list[Unknown]]) | None | list[list[Unknown] | Unknown]`
New: Argument to function `len` is incorrect: Expected `Sized`, found `(Unknown & ~Top[list[Unknown]]) | None | list[list[str] | Unknown]`

test/unit/test_inference.py

[error] invalid-argument-type - :137:24 - Argument to function `len` is incorrect: Expected `Sized`, found `list[list[str]] | None`
[error] invalid-argument-type - :138:48 - Argument to function `__new__` is incorrect: Expected `Iterable[list[str]]`, found `list[list[str]] | None`
[error] invalid-argument-type - :176:24 - Argument to function `len` is incorrect: Expected `Sized`, found `list[list[str]] | None`
[error] invalid-argument-type - :177:79 - Argument to function `__new__` is incorrect: Expected `Iterable[list[str]]`, found `list[list[str]] | None`

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

lib/spack/spack/spec_parser.py

[error] invalid-argument-type - :501:21 - Argument to bound method `__init__` is incorrect: Expected `Iterable[Spec]`, found `Iterator[Spec | None]`
[error] invalid-return-type - :501:16 - Return type does not match returned value: expected `list[Spec]`, found `list[Spec | None]`

lib/spack/spack/test/cmd/deprecate.py

[error] invalid-argument-type - :89:45 - Argument to function `sorted` is incorrect: Argument type `Spec` does not satisfy upper bound `SupportsDunderLT[Any] | SupportsDunderGT[Any]` of type variable `SupportsRichComparisonT`

starlette (https://github.com/encode/starlette)

tests/middleware/test_base.py

[error] missing-argument - :247:33 - No argument provided for required parameter 1 of bound method `__init__`

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

static_frame/core/bus.py

[error] invalid-return-type - :671 -
Old: Return type does not match returned value: expected `InterGetItemLocReduces[Bus[Any], object_]`, found `InterGetItemLocReduces[Top[Index[Any]] | TypeBlocks | Top[Bus[Any]] | ... omitted 6 union elements, object_]`
New: Return type does not match returned value: expected `InterGetItemLocReduces[Bus[Any], object_]`, found `InterGetItemLocReduces[Top[Bus[Any]] | TypeBlocks | Batch | ... omitted 6 union elements, object_]`
[error] invalid-return-type - :675 -
Old: Return type does not match returned value: expected `InterGetItemILocReduces[Bus[Any], object_]`, found `InterGetItemILocReduces[Top[Index[Any]] | TypeBlocks | Top[Bus[Any]] | ... omitted 6 union elements, generic[object]]`
New: Return type does not match returned value: expected `InterGetItemILocReduces[Bus[Any], object_]`, found `InterGetItemILocReduces[Top[Bus[Any]] | TypeBlocks | Batch | ... omitted 6 union elements, generic[object]]`

static_frame/core/frame.py

[error] call-non-callable - :1318:29 - Object of type `object` is not callable
[error] no-matching-overload - :1324:31 - No overload of bound method `astype` matches arguments
[error] call-non-callable - :1454:29 - Object of type `object` is not callable
[error] no-matching-overload - :1460:31 - No overload of bound method `astype` matches arguments

static_frame/core/index.py

[error] invalid-return-type - :580 -
Old: Return type does not match returned value: expected `InterGetItemLocReduces[TVContainer_co@loc, TVDtype@Index]`, found `InterGetItemLocReduces[Any | Bottom[Series[Any, Any]], TVDtype@Index]`
New: Return type does not match returned value: expected `InterGetItemLocReduces[TVContainer_co@loc, TVDtype@Index]`, found `InterGetItemLocReduces[Top[Series[Any, Any]] | Any, TVDtype@Index]`

static_frame/core/index_correspondence.py

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

static_frame/core/index_hierarchy_set_utils.py

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

static_frame/core/node_selector.py

[error] invalid-return-type - :526 -
Old: Return type does not match returned value: expected `InterGetItemLocReduces[TVContainer_co@InterfaceSelectQuartet, Any]`, found `InterGetItemLocReduces[Unknown | Bottom[Series[Any, Any]], Any]`
New: Return type does not match returned value: expected `InterGetItemLocReduces[TVContainer_co@InterfaceSelectQuartet, Any]`, found `InterGetItemLocReduces[Top[Series[Any, Any]] | Unknown, Any]`

static_frame/core/reduce.py

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

static_frame/test/unit/test_bus.py

[warning] possibly-missing-attribute - :2137:26 - Attribute `to_pairs` may be missing on object of type `Series[Any, Any] | @Todo | ndarray[Any, Any]`
[warning] possibly-missing-attribute - :2138:26 - Attribute `to_pairs` may be missing on object of type `Series[Any, Any] | @Todo | ndarray[Any, Any]`
[warning] possibly-missing-attribute - :2166:26 - Attribute `to_pairs` may be missing on object of type `Series[Any, Any] | @Todo | ndarray[Any, Any]`
[warning] possibly-missing-attribute - :2167:26 - Attribute `to_pairs` may be missing on object of type `Series[Any, Any] | @Todo | ndarray[Any, Any]`

tornado (https://github.com/tornadoweb/tornado)

tornado/gen.py

[error] invalid-argument-type - :255 -
Old: Argument to bound method `__init__` is incorrect: Expected `None | Awaitable[Unknown] | list[Awaitable[Unknown]] | dict[Any, Awaitable[Unknown]] | Future[Unknown]`, found `_T@next | _T@next | _VT@next`
New: Argument to bound method `__init__` is incorrect: Expected `None | Awaitable[Unknown] | list[Awaitable[Unknown]] | dict[Any, Awaitable[Unknown]] | Future[Unknown]`, found `_T@next | _VT@next | _T@next`

trio (https://github.com/python-trio/trio)

src/trio/_file_io.py

[error] invalid-argument-type - :269:22 - Argument to bound method `readline` is incorrect: Argument type `AnyStr@__anext__` does not satisfy constraints (`str`, `bytes`) of type variable `AnyStr`

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

xarray/core/dataarray.py

[error] invalid-return-type - :5737 -
Old: Return type does not match returned value: expected `T_Xarray@map_blocks`, found `DataArray | Dataset`
New: Return type does not match returned value: expected `T_Xarray@map_blocks`, found `T_Xarray@map_blocks | DataArray | Dataset`

xarray/core/dataset.py

[error] invalid-argument-type - :5372:77 - Argument to function `__new__` is incorrect: Expected `Iterable[Buffer]`, found `set[Hashable] & ~AlwaysFalsy`
[error] invalid-return-type - :8866 -
Old: Return type does not match returned value: expected `T_Xarray@map_blocks`, found `DataArray | Dataset`
New: Return type does not match returned value: expected `T_Xarray@map_blocks`, found `T_Xarray@map_blocks | DataArray | Dataset`

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

zerver/actions/streams.py

[error] unresolved-attribute - :769:16 - Object of type `UserProfile` has no attribute `realm_id`
[error] unresolved-attribute - :1082:16 - Object of type `Stream` has no attribute `realm_id`
[error] unresolved-attribute - :1085:16 - Object of type `UserProfile` has no attribute `realm_id`
[error] unresolved-attribute - :1087:20 - Object of type `Stream` has no attribute `id`
[error] unresolved-attribute - :1092:23 - Object of type `Stream` has no attribute `id`

zerver/lib/export.py

[error] unresolved-attribute - :2319:26 - Object of type `Attachment` has no attribute `realm_id`