Ecosystem report

Old: main (merge base) 1d2286b8 New: 25626/merge 67919b0c
Lint Rule Removed Added Changed
Total 25 28 19
invalid-argument-type 6 14 6
invalid-return-type 4 3 7
invalid-assignment 6 3 3
no-matching-overload 5 2 0
unresolved-attribute 2 2 2
not-iterable 1 1 1
unsupported-operator 0 3 0
unused-type-ignore-comment 1 0 0
Project Removed Added Changed
Total 25 28 19
pandas 4 7 3
prefect 9 0 1
scikit-build-core 2 0 4
discord.py 2 3 0
xarray 2 1 2
spark 0 2 2
sympy 1 3 0
Tanjun 0 3 0
pytest 1 2 0
apprise 1 0 1
bokeh 0 1 1
core 1 0 1
psycopg 0 2 0
static-frame 1 0 1
vision 0 2 0
archinstall 0 1 0
django-modern-rest 0 0 1
hydra-zen 0 0 1
jax 0 1 0
mypy 1 0 0

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

tanjun/commands/slash.py

[error] invalid-assignment - Object of type `Self@CommandInteractionOption` is not assignable to `AutocompleteInteractionOption | None`
[error] unresolved-attribute - Attribute `name` is not defined on `None` in union `AutocompleteInteractionOption | None`
[error] unresolved-attribute - Attribute `name` is not defined on `None` in union `AutocompleteInteractionOption | None`

apprise (https://github.com/caronc/apprise)

apprise/plugins/fortysixelks.py

[error] invalid-assignment - Object of type `list[LiteralString | None]` is not assignable to `Iterable[str] | None`
[error] invalid-assignment - Object of type `list[str | None]` is not assignable to `Iterable[str] | None`

apprise/plugins/pushover.py

[error] no-matching-overload - No overload of bound method `MutableMapping.update` matches arguments

archinstall (https://github.com/archlinux/archinstall)

archinstall/tui/components.py

[error] invalid-argument-type - Argument is incorrect: Expected `Self@MenuItem`, found `MenuItem & ~AlwaysFalsy`

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

src/bokeh/util/serialization.py

[error] invalid-argument-type - Argument to bound method `MaskedArray.filled` is incorrect: Argument type `MaskedArray[tuple[object, ...], dtype[object]]` does not satisfy upper bound `MaskedArray[_ShapeT_co@MaskedArray, _DTypeT_co@MaskedArray]` of type variable `Self`
[error] invalid-argument-type - Argument to bound method `MaskedArray.filled` is incorrect: Argument type `ndarray[tuple[Any, ...], dtype[Any]] & MaskedArray[tuple[object, ...], dtype[object]]` does not satisfy upper bound `MaskedArray[_ShapeT_co@MaskedArray, _DTypeT_co@MaskedArray]` of type variable `Self`
[error] invalid-argument-type - Argument to bound method `MaskedArray.filled` is incorrect: Argument type `ndarray[tuple[Any, ...], dtype[floating[Any]]] & MaskedArray[tuple[object, ...], dtype[object]]` does not satisfy upper bound `MaskedArray[_ShapeT_co@MaskedArray, _DTypeT_co@MaskedArray]` of type variable `Self`

core (https://github.com/home-assistant/core)

homeassistant/components/asuswrt/helpers.py

[error] invalid-return-type - Return type does not match returned value: expected `T@translate_to_legacy`, found `dict[Unknown, object]`
[error] invalid-return-type - Return type does not match returned value: expected `T@translate_to_legacy`, found `dict[str, Any]`
[error] no-matching-overload - No overload of bound method `dict.get` matches arguments

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

discord/ext/commands/core.py

[error] invalid-argument-type - Argument to bound method `Cog.cog_before_invoke` is incorrect: Expected `Cog`, found `CogT@Command`
[error] invalid-argument-type - Argument to bound method `Cog.cog_after_invoke` is incorrect: Expected `Cog`, found `CogT@Command`

discord/ui/container.py

[error] invalid-argument-type - Argument to bound method `Item.copy` is incorrect: Argument type `((Self@_init_children, Interaction[Any], Any, /) -> Coroutine[Any, Any, Any]) & Item[object]` does not satisfy upper bound `Item[V@Item]` of type variable `Self`

discord/ui/section.py

[error] invalid-argument-type - Argument to bound method `Item._update_view` is incorrect: Argument type `str & Item[object]` does not satisfy upper bound `Item[V@Item]` of type variable `Self`

discord/ui/view.py

[error] invalid-argument-type - Argument to bound method `Item.copy` is incorrect: Argument type `((Any, Interaction[Any], Any, /) -> Coroutine[Any, Any, Any]) & Item[object]` does not satisfy upper bound `Item[V@Item]` of type variable `Self`

django-modern-rest (https://github.com/wemake-services/django-modern-rest)

dmr/streaming/controller.py

[error] invalid-argument-type - Argument to bound method `StreamingController.to_stream` is incorrect: Argument type `StreamingController[object]` does not satisfy upper bound `StreamingController[_SerializerT_co@StreamingController]` of type variable `Self`
[error] invalid-argument-type - Argument to bound method `StreamingController.to_stream` is incorrect: Argument type `Controller[BaseSerializer] & StreamingController[object]` does not satisfy upper bound `StreamingController[_SerializerT_co@StreamingController]` of type variable `Self`

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

src/hydra_zen/third_party/beartype.py

[error] invalid-assignment - Object of type `(bound method _T@validates_with_beartype.__init__() -> None) & (Overload[(o: object, /) -> None, (name: str, bases: tuple[type, ...], dict: dict[str, Any], /, **kwds: Any) -> None])` is not assignable to attribute `__init__` on type `_T@validates_with_beartype & type`
[error] invalid-assignment - Object of type `(bound method _T@validates_with_beartype & type.__init__() -> None) & (Overload[(o: object, /) -> None, (name: str, bases: tuple[type, ...], dict: dict[str, Any], /, **kwds: Any) -> None])` is not assignable to attribute `__init__` on type `_T@validates_with_beartype & type`

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

jax/_src/numpy/lax_numpy.py

[error] not-iterable - Object of type `(Sequence[int] & tuple[object, ...]) | Array | ndarray[tuple[Any, ...], dtype[Any]] | ... omitted 11 union elements` may not be iterable

mypy (https://github.com/python/mypy)

mypy/checkmember.py

[error] invalid-return-type - Return type does not match returned value: expected `F@bind_self_fast`, found `CallableType`

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

pandas/core/algorithms.py

[error] no-matching-overload - No overload of bound method `ndarray.any` matches arguments

pandas/core/arrays/boolean.py

[error] invalid-return-type - Return type does not match returned value: expected `tuple[ndarray[tuple[Any, ...], dtype[Any]], ndarray[tuple[Any, ...], dtype[Any]]]`, found `tuple[(Unknown & ndarray[tuple[object, ...], dtype[object]]) | ndarray[tuple[int], dtype[Any]], Unknown | ndarray[Unknown, dtype[Any]] | None | ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]] | ndarray[tuple[Any, ...], dtype[Any]]]`
[error] invalid-return-type - Return type does not match returned value: expected `tuple[ndarray[tuple[Any, ...], dtype[Any]], ndarray[tuple[Any, ...], dtype[Any]]]`, found `tuple[(Unknown & ndarray[tuple[object, ...], dtype[object]] & ~BooleanArray) | ndarray[tuple[int], dtype[Any]], Unknown | ndarray[Unknown, dtype[Any]] | None | ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]] | ndarray[tuple[Any, ...], dtype[Any]]]`

pandas/core/arrays/datetimes.py

[error] invalid-assignment - Object of type `Timestamp` is not assignable to `_TimestampNoneT1@_maybe_normalize_endpoints`
[error] invalid-assignment - Object of type `Timestamp` is not assignable to `_TimestampNoneT2@_maybe_normalize_endpoints`

pandas/core/arrays/masked.py

[error] invalid-argument-type - Argument to bound method `BaseMaskedArray._maybe_mask_result` is incorrect: Expected `ndarray[tuple[Any, ...], dtype[Any]]`, found `ndarray[Unknown, dtype[Any]] | numpy.bool[builtins.bool] | ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]`

pandas/core/computation/pytables.py

[error] invalid-argument-type - Argument to bound method `ndarray.ravel` is incorrect: Argument type `ndarray[tuple[object, ...], dtype[object]]` does not satisfy upper bound `ndarray[_ShapeT_co@ndarray, _DTypeT_co@ndarray]` of type variable `Self`
[error] invalid-argument-type - Argument to bound method `ndarray.ravel` is incorrect: Argument type `list[Unknown] & ndarray[tuple[object, ...], dtype[object]]` does not satisfy upper bound `ndarray[_ShapeT_co@ndarray, _DTypeT_co@ndarray]` of type variable `Self`

pandas/core/groupby/groupby.py

[error] invalid-return-type - Return type does not match returned value: expected `NDFrameT@GroupBy`, found `NDFrameT@GroupBy | (Self'return@_constructor & Series)`

pandas/core/indexes/base.py

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

pandas/core/internals/blocks.py

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

pandas/core/ops/mask_ops.py

[error] unsupported-operator - Unary operator `~` is not supported for object of type `ndarray[tuple[Any, ...], dtype[Any]] | (NAType & ndarray[tuple[object, ...], dtype[object]])`
[error] invalid-return-type - Return type does not match returned value: expected `tuple[ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]], ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]]`, found `tuple[ndarray[tuple[Any, ...], dtype[Any]] | (NAType & ndarray[tuple[object, ...], dtype[object]]) | Unknown, Unknown | ndarray[tuple[Any, ...], dtype[Any]]]`

pandas/core/resample.py

[error] invalid-return-type - Return type does not match returned value: expected `FreqIndexT@_asfreq_compat`, found `PeriodIndex | DatetimeIndex | TimedeltaIndex`
[error] invalid-return-type - Return type does not match returned value: expected `FreqIndexT@_asfreq_compat`, found `(FreqIndexT@_asfreq_compat & ExactlySized[Literal[0, False]] & PeriodIndex) | DatetimeIndex | TimedeltaIndex`

pandas/core/sorting.py

[error] unsupported-operator - Unary operator `-` is not supported for object of type `(ExtensionArray & ndarray[tuple[object, ...], dtype[object]]) | ndarray[tuple[Any, ...], dtype[Any]] | (Index & ndarray[tuple[object, ...], dtype[object]]) | (Series & ndarray[tuple[object, ...], dtype[object]])`
[error] unsupported-operator - Unary operator `~` is not supported for object of type `(ExtensionArray & ndarray[tuple[object, ...], dtype[object]]) | ndarray[tuple[Any, ...], dtype[Any]] | (Index & ndarray[tuple[object, ...], dtype[object]]) | (Series & ndarray[tuple[object, ...], dtype[object]])`

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

src/prefect/utilities/templating/__init__.py

[error] invalid-argument-type - Argument to function `find_placeholders` is incorrect: Argument type `object` does not satisfy constraints (`str`, `int`, `int | float`, `bool`, `dict[Any, Any]`, `list[Any]`, `None`) of type variable `T`
[error] no-matching-overload - No overload of function `apply_values` matches arguments
[error] invalid-assignment - Invalid subscript assignment with key of type `object` and value of type `Unknown & ~<class 'NotSet'>` on object of type `dict[str, Any]`
[error] invalid-assignment - Invalid subscript assignment with key of type `object` and value of type `object` on object of type `dict[str, Any]`
[error] no-matching-overload - No overload of bound method `dict.get` matches arguments
[error] no-matching-overload - No overload of bound method `dict.get` matches arguments
[error] invalid-assignment - Invalid subscript assignment with key of type `object` and value of type `T@resolve_block_document_references | dict[str, Any]` on object of type `dict[str, Any]`
[error] invalid-argument-type - Argument to function `_resolve` is incorrect: Expected `T@resolve_block_document_references`, found `object`
[error] invalid-return-type - Return type does not match returned value: expected `T@resolve_variables`, found `dict[object, T@resolve_variables]`
[error] invalid-return-type - Return type does not match returned value: expected `T@resolve_variables`, found `dict[Any, T@resolve_variables]`
[error] invalid-argument-type - Argument to function `_resolve` is incorrect: Expected `T@resolve_variables`, found `object`

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

psycopg/psycopg/_copy.py

[error] invalid-assignment - Object of type `(bound method Writer & ~AlwaysFalsy.write(data: bytes | bytearray | memoryview[int]) -> None) | (bound method LibpqWriter.write(data: bytes | bytearray | memoryview[int]) -> None)` is not assignable to attribute `_write` of type `(bound method Writer.write(data: bytes | bytearray | memoryview[int]) -> None) | (bound method LibpqWriter.write(data: bytes | bytearray | memoryview[int]) -> None)`

psycopg/psycopg/_copy_async.py

[error] invalid-assignment - Object of type `(bound method AsyncWriter & ~AlwaysFalsy.write(data: bytes | bytearray | memoryview[int]) -> CoroutineType[Any, Any, None]) | (bound method AsyncLibpqWriter.write(data: bytes | bytearray | memoryview[int]) -> CoroutineType[Any, Any, None])` is not assignable to attribute `_write` of type `(bound method AsyncWriter.write(data: bytes | bytearray | memoryview[int]) -> CoroutineType[Any, Any, None]) | (bound method AsyncLibpqWriter.write(data: bytes | bytearray | memoryview[int]) -> CoroutineType[Any, Any, None])`

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

src/_pytest/assertion/util.py

[error] invalid-return-type - Return type does not match returned value: expected `list[str]`, found `list[LiteralString]`

src/_pytest/skipping.py

[error] invalid-argument-type - Argument to bound method `AbstractRaises.matches` is incorrect: Argument type `object` does not satisfy upper bound `BaseException` of type variable `BaseExcT_1`
[error] invalid-argument-type - Argument to bound method `AbstractRaises.matches` is incorrect: Argument type `object` does not satisfy upper bound `BaseException` of type variable `BaseExcT_1`

pytest-autoprofile (https://gitlab.com/TTsangSC/pytest-autoprofile)

src/pytest_autoprofile/importers.py

[error] invalid-return-type - Return type does not match returned value: expected `tuple[list[str], list[str]]`, found `tuple[list[str], list[LiteralString]]`
[error] invalid-return-type - Return type does not match returned value: expected `tuple[list[str], list[str]]`, found `tuple[list[str], list[str] | list[LiteralString]]`

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

src/scikit_build_core/metadata/__init__.py

[error] invalid-argument-type - Argument is incorrect: Expected `str`, found `object`
[error] invalid-argument-type - Argument is incorrect: Expected `str`, found `str | list[str] | dict[str, str]`
[error] invalid-argument-type - Argument is incorrect: Expected `str`, found `object`
[error] invalid-return-type - Return type does not match returned value: expected `T@_process_dynamic_metadata`, found `dict[object, dict[str, str]]`
[error] invalid-return-type - Return type does not match returned value: expected `T@_process_dynamic_metadata`, found `dict[str, dict[str, str]]`
[error] unresolved-attribute - Object of type `object` has no attribute `items`
[error] unresolved-attribute - Attribute `items` is not defined on `str`, `list[str]` in union `str | list[str] | dict[str, str]`
[error] invalid-return-type - Return type does not match returned value: expected `T@_process_dynamic_metadata`, found `dict[object, list[str]]`
[error] invalid-return-type - Return type does not match returned value: expected `T@_process_dynamic_metadata`, found `dict[str, list[str]]`
[error] not-iterable - Object of type `object` is not iterable

spark (https://github.com/apache/spark)

python/pyspark/mllib/feature.py

[error] invalid-return-type - Return type does not match returned value: expected `Vector | RDD[Vector]`, found `RDD[Vector | RDD[Vector]]`
[error] invalid-argument-type - Argument to bound method `RDD.map` is incorrect: Expected `(object, /) -> Vector | RDD[Vector]`, found `Overload[(document: Iterable[Hashable]) -> Vector, (document: RDD[Iterable[Hashable]]) -> RDD[Vector]]`

python/pyspark/pandas/base.py

[error] unresolved-attribute - Object of type `IndexOpsMixin` has no attribute `rename`
[error] unresolved-attribute - Object of type `IndexOpsLike@notnull` has no attribute `rename`

python/pyspark/sql/session.py

[error] invalid-argument-type - Argument to bound method `ndarray.squeeze` is incorrect: Argument type `ndarray[tuple[object, ...], dtype[object]]` does not satisfy upper bound `ndarray[_ShapeT_co@ndarray, _DTypeT_co@ndarray]` of type variable `Self`
[error] invalid-argument-type - Argument to bound method `ndarray.squeeze` is incorrect: Argument type `ndarray[tuple[object, ...], dtype[object]] & ~DataFrame` does not satisfy upper bound `ndarray[_ShapeT_co@ndarray, _DTypeT_co@ndarray]` of type variable `Self`

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

static_frame/core/container_util.py

[error] invalid-assignment - Object of type `Top[defaultdict[Unknown, Unknown]]` is not assignable to `None | Iterable[str | dtype[Any] | type | None] | dtype[Any] | type | dict[Hashable, str | dtype[Any] | type | None]`

static_frame/core/util.py

[error] not-iterable - Object of type `(int & ndarray[tuple[object, ...], dtype[object]]) | (list[int] & ndarray[tuple[object, ...], dtype[object]]) | (ndarray[Any, dtype[signedinteger[_64Bit]]] & ndarray[tuple[object, ...], dtype[object]])` is not iterable
[error] not-iterable - Object of type `(int & ndarray[tuple[object, ...], dtype[object]]) | (list[int] & ndarray[tuple[object, ...], dtype[object]]) | (ndarray[Any, dtype[signedinteger[_64Bit]]] & ndarray[tuple[object, ...], dtype[object]])` may not be iterable

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

sympy/polys/polyclasses.py

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

sympy/polys/rings.py

[error] invalid-argument-type - Argument to bound method `PolyElement._try_add_ground` is incorrect: Argument type `PolyElement[PolyElement[Er@PolyElement]] & ~PolyElement[Er@PolyElement]` does not satisfy upper bound `PolyElement[Er@PolyElement]` of type variable `Self`
[error] invalid-argument-type - Argument to bound method `PolyElement._try_rsub_ground` is incorrect: Argument type `PolyElement[PolyElement[Er@PolyElement]] & ~PolyElement[Er@PolyElement]` does not satisfy upper bound `PolyElement[Er@PolyElement]` of type variable `Self`
[error] invalid-argument-type - Argument to bound method `PolyElement._try_mul_ground` is incorrect: Argument type `PolyElement[PolyElement[Er@PolyElement]] & ~AlwaysFalsy & ~PolyElement[Er@PolyElement]` does not satisfy upper bound `PolyElement[Er@PolyElement]` of type variable `Self`

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

torchvision/transforms/functional.py

[error] no-matching-overload - No overload of bound method `ndarray.transpose` matches arguments
[error] invalid-argument-type - Argument to bound method `Image.transpose` is incorrect: Expected `Transpose`, found `tuple[Literal[2], Literal[0], Literal[1]]`

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

xarray/computation/rolling.py

[error] invalid-return-type - Return type does not match returned value: expected `T_Xarray@Coarsen`, found `DataArray`

xarray/core/groupby.py

[error] invalid-return-type - Return type does not match returned value: expected `T_Xarray@GroupBy`, found `DataArray`

xarray/core/indexes.py

[error] invalid-assignment - Object of type `Index` is not assignable to `T_PandasOrXarrayIndex@Indexes`
[error] invalid-assignment - Object of type `PandasIndex | (T_PandasOrXarrayIndex@Indexes & xarray.core.indexes.Index & ~Top[pandas.core.indexes.base.Index[Any]])` is not assignable to `T_PandasOrXarrayIndex@Indexes`

xarray/namedarray/core.py

[error] invalid-argument-type - Argument to bound method `_sparsearrayfunction.todense` is incorrect: Argument type `_sparsearrayfunction[object, object]` does not satisfy upper bound `_sparsearrayfunction[_ShapeType_co@_sparsearrayfunction, _DType_co@_sparsearrayfunction]` of type variable `Self`
[error] invalid-argument-type - Argument to bound method `_sparsearrayfunction.todense` is incorrect: Argument type `_arrayapi[Any, _DType_co@NamedArray] & _sparsearrayfunction[object, object]` does not satisfy upper bound `_sparsearrayfunction[_ShapeType_co@_sparsearrayfunction, _DType_co@_sparsearrayfunction]` of type variable `Self`
[error] invalid-argument-type - Argument to bound method `_sparsearrayfunction.todense` is incorrect: Argument type `_arrayfunction[Any, _DType_co@NamedArray] & _sparsearrayfunction[object, object]` does not satisfy upper bound `_sparsearrayfunction[_ShapeType_co@_sparsearrayfunction, _DType_co@_sparsearrayfunction]` of type variable `Self`