Ecosystem report

Old: main (merge base) 7e1bc1e7 New: 22400/merge 90a24011
Lint Rule Removed Added Changed
Total 47 19 22
type-assertion-failure 26 8 1
invalid-argument-type 2 6 9
unsupported-operator 11 0 0
invalid-return-type 0 0 8
no-matching-overload 8 0 0
invalid-assignment 0 3 4
missing-argument 0 2 0
Project Removed Added Changed
Total 47 19 22
pandas-stubs 45 8 1
Tanjun 0 1 8
jax 0 1 2
vision 0 3 0
xarray 1 0 2
pandas 0 0 2
pip 0 2 0
prefect 0 0 2
scikit-learn 0 2 0
Expression flaky 0 0 1
anyio 0 0 1
bokeh 0 0 1
dd-trace-py flaky 0 1 0
discord.py 0 0 1
ibis 1 0 0
rotki 0 1 0
tornado 0 0 1

Failed Projects

Project Old Status New Status Old Return Code New Return Code
sympy
https://github.com/sympy/sympy
success timeout 1 None

Expression (https://github.com/cognitedata/Expression)

tests/test_map.py

[error] invalid-argument-type - Argument to function `pipe` is incorrect: Expected `(Map[str, int] | Unknown, /) -> Unknown | Map[str, int] | _A'return@curry_flip`, found `(_A'return@curry_flip, /) -> _A'return@curry_flip`
[error] invalid-argument-type - Argument to function `pipe` is incorrect: Expected `(Map[str, int] | Unknown, /) -> _A'return@curry_flip | Unknown | Map[str, int]`, found `(_A'return@curry_flip, /) -> _A'return@curry_flip`

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

tanjun/clients.py

[error] invalid-return-type - Return type does not match returned value: expected `((...) -> Coroutine[Any, Any, _T@get_callback_override] | _T@get_callback_override) | None`, found `((...) -> Coroutine[Any, Any, _T@get_callback_override | Coroutine[Any, Any, _T@get_callback_override]] | _T@get_callback_override) | None`
[error] invalid-return-type - Return type does not match returned value: expected `((...) -> Coroutine[Any, Any, _T@get_callback_override] | _T@get_callback_override) | None`, found `((...) -> Coroutine[Any, Any, Coroutine[Any, Any, _T@get_callback_override] | _T@get_callback_override] | _T@get_callback_override) | None`

tanjun/dependencies/data.py

[error] invalid-argument-type - Argument to bound method `LazyConstant.set_value` is incorrect: Expected `_T@make_lc_resolver`, found `_T@make_lc_resolver | Coroutine[Any, Any, _T@make_lc_resolver]`
[error] invalid-argument-type - Argument to bound method `LazyConstant.set_value` is incorrect: Expected `_T@make_lc_resolver`, found `Coroutine[Any, Any, _T@make_lc_resolver] | _T@make_lc_resolver`
[error] invalid-return-type - Return type does not match returned value: expected `_T@make_lc_resolver`, found `_T@make_lc_resolver | Coroutine[Any, Any, _T@make_lc_resolver]`
[error] invalid-return-type - Return type does not match returned value: expected `_T@make_lc_resolver`, found `Coroutine[Any, Any, _T@make_lc_resolver] | _T@make_lc_resolver`
[error] invalid-return-type - Return type does not match returned value: expected `_T@inject_lc`, found `_T@inject_lc | Coroutine[Any, Any, _T@inject_lc]`
[error] invalid-return-type - Return type does not match returned value: expected `_T@inject_lc`, found `Coroutine[Any, Any, _T@inject_lc] | _T@inject_lc`
[error] invalid-assignment - Object of type `_T@_CacheCallback | Coroutine[Any, Any, _T@_CacheCallback]` is not assignable to attribute `_result` of type `_T@_CacheCallback | Literal[_DefaultFlag.NO_DEFAULT]`
[error] invalid-assignment - Object of type `Coroutine[Any, Any, _T@_CacheCallback] | _T@_CacheCallback` is not assignable to attribute `_result` of type `_T@_CacheCallback | Literal[_DefaultFlag.NO_DEFAULT]`
[error] invalid-return-type - Return type does not match returned value: expected `_T@_CacheCallback`, found `_T@_CacheCallback | Coroutine[Any, Any, _T@_CacheCallback]`
[error] invalid-return-type - Return type does not match returned value: expected `_T@_CacheCallback`, found `Coroutine[Any, Any, _T@_CacheCallback] | _T@_CacheCallback`
[error] invalid-return-type - Return type does not match returned value: expected `(...) -> Coroutine[Any, Any, _T@cache_callback]`, found `_CacheCallback[_T@cache_callback | Coroutine[Any, Any, _T@cache_callback]]`
[error] invalid-return-type - Return type does not match returned value: expected `(...) -> Coroutine[Any, Any, _T@cache_callback]`, found `_CacheCallback[_T@_CacheCallback]`
[error] invalid-argument-type - Argument to `_CacheCallback.__init__` is incorrect: Expected `_CacheCallback[_T@cache_callback] | _CacheCallback[Coroutine[Any, Any, Coroutine[Any, Any, _T@cache_callback] | _T@cache_callback] | _T@cache_callback]`, found `_CacheCallback[Coroutine[Any, Any, _T@cache_callback] | _T@cache_callback]`
[error] invalid-return-type - Return type does not match returned value: expected `_T@cached_inject`, found `_T@cached_inject | Coroutine[Any, Any, _T@cached_inject | Coroutine[Any, Any, _T@cached_inject]]`
[error] invalid-return-type - Return type does not match returned value: expected `_T@cached_inject`, found `Coroutine[Any, Any, Coroutine[Any, Any, _T@cached_inject] | _T@cached_inject] | _T@cached_inject`

anyio (https://github.com/agronholm/anyio)

src/anyio/from_thread.py

[error] invalid-argument-type - Argument to bound method `BlockingPortal._spawn_task_from_thread` is incorrect: Expected `Future[T_Retval@start_task_soon | Awaitable[T_Retval@start_task_soon]]`, found `Future[T_Retval@start_task_soon]`
[error] invalid-argument-type - Argument to bound method `BlockingPortal._spawn_task_from_thread` is incorrect: Expected `Future[Awaitable[T_Retval@start_task_soon] | T_Retval@start_task_soon]`, found `Future[T_Retval@start_task_soon]`

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

src/bokeh/settings.py

[error] invalid-argument-type - Argument to `PrioritizedSetting.__init__` is incorrect: Expected `((str | int | None, /) -> str | int | None) | None`, found `def convert_logging(value: str | int) -> int | None`
[error] invalid-argument-type - Argument to `PrioritizedSetting.__init__` is incorrect: Expected `((str, /) -> str) | None`, found `def convert_logging(value: str | int) -> int | None`

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

ddtrace/debugging/_encoding.py

[error] invalid-assignment - Object of type `enumerate[str]` is not assignable to attribute `_iter` of type `enumerate[LiteralString]`

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

discord/app_commands/checks.py

[error] invalid-assignment - Object of type `Cooldown | None | Coroutine[Any, Any, Cooldown | None]` is not assignable to `Cooldown | None`
[error] invalid-assignment - Object of type `Coroutine[Any, Any, Cooldown | None] | None | Cooldown` is not assignable to `Cooldown | None`

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

ibis/backends/bigquery/tests/system/test_client.py

[error] invalid-argument-type - Argument to constructor `map.__new__` is incorrect: Expected `(Iterable[list[str]] | Iterable[list[bytes]], /) -> dict[str, str] | dict[bytes, bytes]`, found `<class 'dict'>`

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

jax/_src/numpy/einsum.py

[error] invalid-argument-type - Method `__getitem__` of type `bound method Counter[LiteralString].__getitem__(key: LiteralString, /) -> int` cannot be called with key of type `str` on object of type `Counter[LiteralString]`

jax/_src/pallas/fuser/block_spec.py

[error] invalid-argument-type - Argument to constructor `map.__new__` is incorrect: Expected `(Element | Squeezed | Blocked | ... omitted 4 union elements, /) -> int | None`, found `def _block_size(dim: Element | int | None) -> int | None`
[error] invalid-argument-type - Argument to constructor `map.__new__` is incorrect: Expected `(Element | int | None | ... omitted 4 union elements, /) -> int | None`, found `def _block_size(dim: Element | int | None) -> int | None`
[error] invalid-argument-type - Argument to constructor `map.__new__` is incorrect: Expected `Iterable[Element | Squeezed | Blocked | ... omitted 4 union elements]`, found `Sequence[Element | Squeezed | Blocked | ... omitted 4 union elements] | None`
[error] invalid-argument-type - Argument to constructor `map.__new__` is incorrect: Expected `Iterable[Element | int | None | ... omitted 4 union elements]`, found `Sequence[Element | Squeezed | Blocked | ... omitted 4 union elements] | None`

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

pandas/tests/arithmetic/test_datetime64.py

[error] invalid-argument-type - Argument to constructor `map.__new__` is incorrect: Expected `(Unknown, str, /) -> timedelta64[int] | timedelta64[None] | timedelta64[timedelta]`, found `<class 'timedelta64'>`
[error] invalid-argument-type - Argument to constructor `map.__new__` is incorrect: Expected `(str | bytes | None | ... omitted 7 union elements, str | Literal[b"Y", b"M", b"W", b"D", b"h", ... omitted 8 literals] | tuple[Literal["Y", "M", "W", "D", "h", ... omitted 22 literals], SupportsIndex], /) -> timedelta64[None] | timedelta64[int] | timedelta64[timedelta]`, found `<class 'timedelta64'>`

pandas/tests/io/json/test_readlines.py

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

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

tests/indexes/float/test_floordiv.py

[error] type-assertion-failure - Type `Index[int]` does not match asserted type `TimedeltaIndex`
[error] unsupported-operator - Operator `//` is not supported between objects of type `Index[int | float]` and `timedelta`

tests/indexes/int/test_floordiv.py

[error] type-assertion-failure - Type `Index[int]` does not match asserted type `TimedeltaIndex`
[error] unsupported-operator - Operator `//` is not supported between objects of type `Index[int]` and `timedelta`

tests/indexes/str/test_add.py

[error] type-assertion-failure - Type `Unknown` does not match asserted type `Index[str]`
[error] unsupported-operator - Operator `+` is not supported between objects of type `Index[str]` and `Literal["right"]`

tests/indexes/test_add.py

[error] type-assertion-failure - Type `Unknown` does not match asserted type `Index[str]`
[error] type-assertion-failure - Type `Unknown` does not match asserted type `Index[str]`

tests/indexes/test_floordiv.py

[error] type-assertion-failure - Type `Index[int]` does not match asserted type `TimedeltaIndex`
[error] unsupported-operator - Operator `//` is not supported between objects of type `Index[Any]` and `timedelta`

tests/series/float/test_floordiv.py

[error] type-assertion-failure - Type `Series[int]` does not match asserted type `Series[Timedelta]`
[error] type-assertion-failure - Type `Series[int]` does not match asserted type `Series[Timedelta]`
[error] unsupported-operator - Operator `//` is not supported between objects of type `Series[int | float]` and `timedelta`
[error] no-matching-overload - No overload of bound method `Series.floordiv` matches arguments

tests/series/int/test_floordiv.py

[error] type-assertion-failure - Type `Series[int]` does not match asserted type `Series[Timedelta]`
[error] type-assertion-failure - Type `Series[int]` does not match asserted type `Series[Timedelta]`
[error] unsupported-operator - Operator `//` is not supported between objects of type `Series[int]` and `timedelta`
[error] no-matching-overload - No overload of bound method `Series.floordiv` matches arguments

tests/series/str/test_add.py

[error] type-assertion-failure - Type `Unknown` does not match asserted type `Series[str]`
[error] unsupported-operator - Operator `+` is not supported between objects of type `Series[str]` and `Literal["right"]`
[error] type-assertion-failure - Type `Unknown` does not match asserted type `Series[str]`
[error] no-matching-overload - No overload of bound method `Series.add` matches arguments
[error] type-assertion-failure - Type `Unknown` does not match asserted type `Series[str]`
[error] unsupported-operator - Operator `+` is not supported between objects of type `Series[str]` and `tuple[str, ...]`
[error] type-assertion-failure - Type `Unknown` does not match asserted type `Series[str]`
[error] no-matching-overload - No overload of bound method `Series.add` matches arguments

tests/series/test_add.py

[error] type-assertion-failure - Type `Unknown` does not match asserted type `Series[str]`
[error] type-assertion-failure - Type `Unknown` does not match asserted type `Series[str]`

tests/series/test_floordiv.py

[error] type-assertion-failure - Type `Series[int]` does not match asserted type `Series[Timedelta]`
[error] type-assertion-failure - Type `Unknown` does not match asserted type `Series[Timedelta]`
[error] type-assertion-failure - Type `Series[int]` does not match asserted type `Series[Timedelta]`

tests/series/timedelta/test_floordiv.py

[error] type-assertion-failure - Type `Series[Timedelta]` does not match asserted type `Series[int]`
[error] type-assertion-failure - Type `Unknown` does not match asserted type `Series[int]`
[error] unsupported-operator - Operator `//` is not supported between objects of type `timedelta` and `Series[Timedelta]`
[error] type-assertion-failure - Type `Series[Timedelta]` does not match asserted type `Series[int]`
[error] type-assertion-failure - Type `Series[Timedelta]` does not match asserted type `Series[int]`
[error] type-assertion-failure - Type `Series[Timedelta]` does not match asserted type `Series[int]`

tests/series/timedelta/test_truediv.py

[error] type-assertion-failure - Type `Series[Timedelta]` does not match asserted type `Series[int | float]`
[error] type-assertion-failure - Type `Unknown` does not match asserted type `Series[int | float]`
[error] unsupported-operator - Operator `/` is not supported between objects of type `timedelta` and `Series[Timedelta]`
[error] type-assertion-failure - Type `Series[Timedelta]` does not match asserted type `Series[int | float]`
[error] type-assertion-failure - Type `Series[Timedelta]` does not match asserted type `Series[int | float]`
[error] type-assertion-failure - Type `Unknown` does not match asserted type `Series[int | float]`
[error] no-matching-overload - No overload of bound method `Series.rtruediv` matches arguments
[error] type-assertion-failure - Type `Unknown` does not match asserted type `Series[int | float]`
[error] no-matching-overload - No overload of bound method `Series.rtruediv` matches arguments
[error] type-assertion-failure - Type `Series[Timedelta]` does not match asserted type `Series[int | float]`
[error] type-assertion-failure - Type `Series[Timedelta]` does not match asserted type `Series[int | float]`
[error] type-assertion-failure - Type `Series[Timedelta]` does not match asserted type `Series[int | float]`
[error] type-assertion-failure - Type `Unknown` does not match asserted type `Series[int | float]`
[error] no-matching-overload - No overload of bound method `Series.rtruediv` matches arguments
[error] type-assertion-failure - Type `Unknown` does not match asserted type `Series[int | float]`
[error] no-matching-overload - No overload of bound method `Series.rtruediv` matches arguments

tests/test_timefuncs.py

[error] type-assertion-failure - Type `Series[Timedelta]` does not match asserted type `Series[int | float]`
[error] unsupported-operator - Operator `/` is not supported between objects of type `Series[Timestamp]` and `timedelta64[timedelta]`

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

src/pip/_internal/cli/spinners.py

[error] invalid-assignment - Object of type `cycle[str]` is not assignable to attribute `_spin_cycle` of type `cycle[LiteralString]`
[error] invalid-assignment - Object of type `cycle[str]` is not assignable to attribute `_spin_cycle` of type `cycle[LiteralString]`

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

src/prefect/utilities/asyncutils/__init__.py

[error] invalid-return-type - Return type does not match returned value: expected `R@run_coro_as_sync | None`, found `CoroutineType[Any, Any, R@run_coro_as_sync | None] | R@run_coro_as_sync | None`
[error] invalid-return-type - Return type does not match returned value: expected `R@run_coro_as_sync | None`, found `CoroutineType[Any, Any, R@run_coro_as_sync | None] | None | R@run_coro_as_sync`
[error] invalid-return-type - Return type does not match returned value: expected `R@run_coro_as_sync | None`, found `CoroutineType[Any, Any, R@run_coro_as_sync | None] | R@run_coro_as_sync | None`
[error] invalid-return-type - Return type does not match returned value: expected `R@run_coro_as_sync | None`, found `CoroutineType[Any, Any, R@run_coro_as_sync | None] | None | R@run_coro_as_sync`

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

rotkehlchen/chain/ethereum/oracles/uniswap.py

[error] invalid-argument-type - Argument to `FVal.__init__` is incorrect: Expected `int | float | bytes | ... omitted 3 union elements`, found `SupportsMul[SupportsRMul[Never, Never] | Divergent, Never] | Literal[1]`

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

sklearn/model_selection/_search.py

[error] missing-argument - No argument provided for required parameter `initial`
[error] invalid-argument-type - Argument is incorrect: Expected `Iterable[SupportsRMul[SupportsMul[SupportsRMul[SupportsMul[SupportsRMul[Never, Never], Never], SupportsMul[SupportsRMul[Never, Never], Never]], Never], SupportsMul[SupportsRMul[SupportsMul[SupportsRMul[Never, Never], Never], SupportsMul[SupportsRMul[Never, Never], Never]], Never]]]`, found `GeneratorType[int, None, None]`

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

tornado/gen.py

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

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

torchvision/prototype/datasets/_builtin/mnist.py

[error] missing-argument - No argument provided for required parameter `initial`
[error] invalid-argument-type - Argument is incorrect: Expected `Iterable[SupportsRMul[SupportsMul[SupportsRMul[SupportsMul[SupportsRMul[Never, Never], Never], SupportsMul[SupportsRMul[Never, Never], Never]], Never], SupportsMul[SupportsRMul[SupportsMul[SupportsRMul[Never, Never], Never], SupportsMul[SupportsRMul[Never, Never], Never]], Never]]]`, found `(list[int] & ~AlwaysFalsy) | (list[Unknown] & ~AlwaysFalsy)`
[error] invalid-argument-type - Argument is incorrect: Expected `int`, found `SupportsMul[SupportsRMul[Never, Never], Never] | Literal[1]`

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

xarray/core/dataarray.py

[error] invalid-assignment - Object of type `dict[Hashable, object]` is not assignable to `str | int | tuple[int, ...] | None | Mapping[Any, Resampler | str | int | tuple[int, ...] | None]`
[error] invalid-assignment - Object of type `dict[object, object]` is not assignable to `str | int | tuple[int, ...] | None | Mapping[Any, Resampler | str | int | tuple[int, ...] | None]`

xarray/core/indexes.py

[error] invalid-assignment - Object of type `dict[Any, T_PandasOrXarrayIndex@Indexes | Index | Unknown]` is not assignable to attribute `_indexes` of type `dict[Any, T_PandasOrXarrayIndex@Indexes]`
[error] invalid-assignment - Object of type `dict[Any, Index | T_PandasOrXarrayIndex@Indexes]` is not assignable to attribute `_indexes` of type `dict[Any, T_PandasOrXarrayIndex@Indexes]`

xarray/structure/combine.py

[error] invalid-argument-type - Argument to function `_infer_tile_ids_from_nested_list` is incorrect: Expected `NestedSequence[NestedSequence[T@_infer_concat_order_from_positions]]`, found `NestedSequence[T@_infer_concat_order_from_positions]`