Ecosystem report

Old: main (merge base) 9e3bd442 New: 23471/merge 85e65929
Lint Rule Removed Added Changed
Total 139 13 19
invalid-argument-type 101 1 1
no-matching-overload 23 0 0
invalid-return-type 1 3 12
invalid-assignment 6 5 1
possibly-missing-attribute 5 1 4
possibly-missing-implicit-call 0 2 0
unresolved-attribute 0 1 1
not-iterable 1 0 0
unsupported-operator 1 0 0
unused-type-ignore-comment 1 0 0
Project Removed Added Changed
Total 139 13 19
xarray 46 0 1
prefect 10 4 5
koda-validate 12 0 3
pandas 10 1 4
scrapy 14 0 1
hydpy 8 4 0
pwndbg 9 0 0
discord.py 6 0 0
pylint 6 0 0
scikit-build-core flaky 2 0 4
aiohttp 4 0 0
core 1 1 1
beartype 0 2 0
pip 2 0 0
rich 2 0 0
rotki 2 0 0
static-frame 1 1 0
operator 1 0 0
setuptools 1 0 0
spack 1 0 0

aiohttp (https://github.com/aio-libs/aiohttp)

aiohttp/client.py

[error] invalid-argument-type - Argument to bound method `__aexit__` is incorrect: Argument type `_RetType_co@_BaseRequestContextManager` does not satisfy upper bound `ClientWebSocketResponse[_DecodeText@ClientWebSocketResponse]` of type variable `Self`
[error] invalid-argument-type - Argument to bound method `__aexit__` is incorrect: Expected `ClientResponse`, found `_RetType_co@_BaseRequestContextManager`
[error] invalid-argument-type - Argument to bound method `__aenter__` is incorrect: Argument type `_RetType_co@_BaseRequestContextManager` does not satisfy upper bound `ClientWebSocketResponse[_DecodeText@ClientWebSocketResponse]` of type variable `Self`
[error] invalid-argument-type - Argument to bound method `__aenter__` is incorrect: Expected `ClientResponse`, found `_RetType_co@_BaseRequestContextManager`

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

beartype/_util/api/standard/utilfunctools.py

[error] unresolved-attribute - Object of type `BeartypeableT@beartype_functools_lru_cache & Top[(...) -> object]` has no attribute `cache_parameters`

beartype/_decor/_nontype/_decordescriptor.py

[error] invalid-argument-type - Argument to function `beartype_func` is incorrect: Argument type `((Any, /) -> Any) | None` does not satisfy upper bound `((...) -> Any) | classmethod[Unknown, (...), Unknown] | property` of type variable `BeartypeableT`

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 `get` matches arguments

homeassistant/components/sonos/helpers.py

[warning] possibly-missing-attribute - Attribute `soco` may be missing on object of type `_T@wrapper`

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

discord/ext/commands/core.py

[warning] possibly-missing-attribute - Attribute `cog_command_error` may be missing on object of type `CogT@Command & ~None`
[warning] possibly-missing-attribute - Attribute `cog_before_invoke` may be missing on object of type `CogT@Command & ~None`
[error] invalid-argument-type - Argument to bound method `cog_before_invoke` is incorrect: Expected `Cog`, found `CogT@Command`
[warning] possibly-missing-attribute - Attribute `cog_after_invoke` may be missing on object of type `CogT@Command & ~None`
[error] invalid-argument-type - Argument to bound method `cog_after_invoke` is incorrect: Expected `Cog`, found `CogT@Command`
[warning] possibly-missing-attribute - Attribute `cog_check` may be missing on object of type `CogT@Command & ~None`

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

hydpy/auxs/calibtools.py

[error] invalid-argument-type - Argument to bound method `apply_value` is incorrect: Expected `Add`, found `TypeRule1@CalibrationInterface`
[error] invalid-argument-type - Argument to bound method `apply_value` is incorrect: Expected `MultiplyIUH`, found `TypeRule1@CalibrationInterface`
[error] invalid-argument-type - Argument to bound method `apply_value` is incorrect: Expected `Multiply`, found `TypeRule1@CalibrationInterface`
[error] invalid-argument-type - Argument to bound method `apply_value` is incorrect: Expected `ReplaceIUH`, found `TypeRule1@CalibrationInterface`
[error] invalid-argument-type - Argument to bound method `apply_value` is incorrect: Expected `Replace`, found `TypeRule1@CalibrationInterface`
[error] invalid-argument-type - Argument to bound method `reset_parameters` is incorrect: Expected `RuleIUH`, found `TypeRule1@CalibrationInterface`

hydpy/auxs/iuhtools.py

[error] invalid-return-type - Return type does not match returned value: expected `VectorFloatFlex@__call__`, found `ndarray[tuple[int], Unknown]`
[error] invalid-argument-type - Method `__getitem__` of type `Overload[(key: ndarray[tuple[Any, ...], dtype[integer[Any] | numpy.bool[builtins.bool]]] | tuple[ndarray[tuple[Any, ...], dtype[integer[Any] | numpy.bool[builtins.bool]]], ...], /) -> ndarray[tuple[Any, ...], dtype[float64]], (key: SupportsIndex | tuple[SupportsIndex, ...], /) -> Any, (key: SupportsIndex | slice[Any, Any, Any] | EllipsisType | ... omitted 5 union elements, /) -> ndarray[tuple[Any, ...], dtype[float64]], (key: str, /) -> ndarray[tuple[int] | tuple[Any, ...], dtype[Any]], (key: list[str], /) -> ndarray[tuple[int] | tuple[Any, ...], Unknown]]` cannot be called with key of type `bool` on object of type `VectorFloatFlex@__call__`
[error] invalid-argument-type - Method `__getitem__` of type `Overload[(key: ndarray[tuple[Any, ...], dtype[integer[Any] | numpy.bool[builtins.bool]]] | tuple[ndarray[tuple[Any, ...], dtype[integer[Any] | numpy.bool[builtins.bool]]], ...], /) -> ndarray[tuple[Any, ...], dtype[float64]], (key: SupportsIndex | tuple[SupportsIndex, ...], /) -> Any, (key: SupportsIndex | slice[Any, Any, Any] | EllipsisType | ... omitted 5 union elements, /) -> ndarray[tuple[Any, ...], dtype[float64]], (key: str, /) -> ndarray[tuple[int] | tuple[Any, ...], dtype[Any]], (key: list[str], /) -> ndarray[tuple[int] | tuple[Any, ...], Unknown]]` cannot be called with key of type `ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]` on object of type `VectorFloatFlex@__call__`
[warning] possibly-missing-implicit-call - Method `__getitem__` of type `VectorFloatFlex@__call__` may be missing
[warning] possibly-missing-implicit-call - Method `__getitem__` of type `VectorFloatFlex@__call__` may be missing
[error] invalid-assignment - Object of type `Any | ndarray[tuple[Any, ...], dtype[float64]]` is not assignable to `VectorFloatFlex@__call__`

koda-validate (https://github.com/keithasaurus/koda-validate)

koda_validate/generic.py

[error] invalid-argument-type - Argument to bound method `strip` is incorrect: Expected `bytes`, found `StrOrBytes@NotBlank`
[error] no-matching-overload - No overload of bound method `strip` matches arguments
[error] invalid-argument-type - Argument to bound method `startswith` is incorrect: Expected `bytes`, found `StrOrBytes@StartsWith`
[error] invalid-argument-type - Argument to bound method `startswith` is incorrect: Expected `str`, found `StrOrBytes@StartsWith`
[error] invalid-argument-type - Argument to bound method `endswith` is incorrect: Expected `bytes`, found `StrOrBytes@EndsWith`
[error] invalid-argument-type - Argument to bound method `endswith` is incorrect: Expected `str`, found `StrOrBytes@EndsWith`
[error] invalid-return-type - Return type does not match returned value: expected `StrOrBytes@Strip`, found `Unknown | bytes`
[error] invalid-return-type - Return type does not match returned value: expected `StrOrBytes@Strip`, found `str | bytes`
[error] invalid-argument-type - Argument to bound method `strip` is incorrect: Expected `bytes`, found `StrOrBytes@Strip`
[error] no-matching-overload - No overload of bound method `strip` matches arguments
[error] invalid-return-type - Return type does not match returned value: expected `StrOrBytes@UpperCase`, found `Unknown | bytes`
[error] invalid-return-type - Return type does not match returned value: expected `StrOrBytes@UpperCase`, found `str | bytes`
[error] invalid-argument-type - Argument to bound method `upper` is incorrect: Expected `bytes`, found `StrOrBytes@UpperCase`
[error] no-matching-overload - No overload of bound method `upper` matches arguments
[error] invalid-return-type - Return type does not match returned value: expected `StrOrBytes@LowerCase`, found `Unknown | bytes`
[error] invalid-return-type - Return type does not match returned value: expected `StrOrBytes@LowerCase`, found `str | bytes`
[error] invalid-argument-type - Argument to bound method `lower` is incorrect: Expected `bytes`, found `StrOrBytes@LowerCase`
[error] no-matching-overload - No overload of bound method `lower` matches arguments

operator (https://github.com/canonical/operator)

ops/pebble.py

[error] invalid-argument-type - Method `__getitem__` of type `(Overload[(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> LiteralString, (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str]) | (Overload[(key: SupportsIndex, /) -> int, (key: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> bytes])` cannot be called with key of type `slice[Any, Any, Any]` on object of type `AnyStr@ExecError`

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

pandas/core/algorithms.py

[error] no-matching-overload - No overload of bound method `astype` matches arguments
[error] no-matching-overload - No overload of bound method `astype` matches arguments
[error] invalid-return-type - Return type does not match returned value: expected `ArrayLikeT@_reconstruct_data`, found `ndarray[tuple[Any, ...], dtype[Any]] | ndarray[tuple[Any, ...], Unknown]`

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/dtypes/cast.py

[error] invalid-return-type - Return type does not match returned value: expected `NumpyIndexT@maybe_upcast_numeric_to_64bit`, found `Unknown | Index`
[error] invalid-return-type - Return type does not match returned value: expected `NumpyIndexT@maybe_upcast_numeric_to_64bit`, found `ndarray[tuple[Any, ...], Unknown] | Index`
[error] invalid-argument-type - Argument to bound method `astype` is incorrect: Expected `Index`, found `NumpyIndexT@maybe_upcast_numeric_to_64bit`
[error] no-matching-overload - No overload of bound method `astype` matches arguments
[error] invalid-return-type - Return type does not match returned value: expected `NumpyIndexT@maybe_upcast_numeric_to_64bit`, found `Unknown | Index`
[error] invalid-return-type - Return type does not match returned value: expected `NumpyIndexT@maybe_upcast_numeric_to_64bit`, found `ndarray[tuple[Any, ...], Unknown] | Index`
[error] invalid-argument-type - Argument to bound method `astype` is incorrect: Expected `Index`, found `NumpyIndexT@maybe_upcast_numeric_to_64bit`
[error] no-matching-overload - No overload of bound method `astype` matches arguments
[error] invalid-return-type - Return type does not match returned value: expected `NumpyIndexT@maybe_upcast_numeric_to_64bit`, found `Unknown | Index`
[error] invalid-return-type - Return type does not match returned value: expected `NumpyIndexT@maybe_upcast_numeric_to_64bit`, found `ndarray[tuple[Any, ...], Unknown] | Index`
[error] invalid-argument-type - Argument to bound method `astype` is incorrect: Expected `Index`, found `NumpyIndexT@maybe_upcast_numeric_to_64bit`
[error] no-matching-overload - No overload of bound method `astype` matches arguments

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 `Unknown | DatetimeIndex | TimedeltaIndex`

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

src/pip/_vendor/rich/progress.py

[error] invalid-argument-type - Argument to bound method `__enter__` is incorrect: Expected `BinaryIO`, found `_I@_ReadContext`
[error] invalid-argument-type - Argument to bound method `__enter__` is incorrect: Expected `TextIO`, found `_I@_ReadContext`

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

src/prefect/utilities/templating.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 `get` matches arguments
[error] invalid-assignment - Invalid subscript assignment with key of type `object` and value of type `Unknown` on object of type `dict[str, Any]`
[warning] possibly-missing-attribute - Attribute `replace` may be missing on object of type `T@apply_values | Unknown`
[warning] possibly-missing-attribute - Attribute `replace` may be missing on object of type `T@apply_values`
[error] no-matching-overload - No overload of bound method `replace` matches arguments
[error] invalid-assignment - Object of type `str` is not assignable to `T@apply_values`
[warning] possibly-missing-attribute - Attribute `replace` may be missing on object of type `T@apply_values | Unknown`
[warning] possibly-missing-attribute - Attribute `replace` may be missing on object of type `T@apply_values`
[error] no-matching-overload - No overload of bound method `replace` matches arguments
[error] invalid-assignment - Object of type `str` is not assignable to `T@apply_values`
[warning] possibly-missing-attribute - Attribute `replace` may be missing on object of type `T@resolve_variables | Unknown`
[warning] possibly-missing-attribute - Attribute `replace` may be missing on object of type `T@resolve_variables`
[error] no-matching-overload - No overload of bound method `replace` matches arguments
[error] invalid-assignment - Object of type `str` is not assignable to `T@resolve_variables`
[warning] possibly-missing-attribute - Attribute `replace` may be missing on object of type `T@resolve_variables | Unknown`
[warning] possibly-missing-attribute - Attribute `replace` may be missing on object of type `T@resolve_variables`
[error] no-matching-overload - No overload of bound method `replace` matches arguments
[error] invalid-assignment - Object of type `str` is not assignable to `T@resolve_variables`
[error] invalid-return-type - Return type does not match returned value: expected `T@resolve_variables`, found `dict[object, Unknown]`
[error] invalid-return-type - Return type does not match returned value: expected `T@resolve_variables`, found `dict[Any, Unknown]`

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

pwndbg/aglib/heap/ptmalloc.py

[error] invalid-argument-type - Argument to bound method `keys` is incorrect: Expected `Type`, found `TheType@GlibcMemoryAllocator`
[error] invalid-argument-type - Method `__getitem__` of type `(bound method TheValue@GlibcMemoryAllocator.__getitem__(idx: int | str) -> Value) | (bound method TheValue@GlibcMemoryAllocator.__getitem__(key: str) -> Value)` cannot be called with key of type `Literal["num_slots"]` on object of type `TheValue@GlibcMemoryAllocator`
[error] invalid-argument-type - Method `__getitem__` of type `(bound method TheValue@GlibcMemoryAllocator.__getitem__(idx: int | str) -> Value) | (bound method TheValue@GlibcMemoryAllocator.__getitem__(key: str) -> Value)` cannot be called with key of type `Literal["counts"]` on object of type `TheValue@GlibcMemoryAllocator`
[error] invalid-argument-type - Method `__getitem__` of type `(bound method TheValue@GlibcMemoryAllocator.__getitem__(idx: int | str) -> Value) | (bound method TheValue@GlibcMemoryAllocator.__getitem__(key: str) -> Value)` cannot be called with key of type `Literal["entries"]` on object of type `TheValue@GlibcMemoryAllocator`
[warning] possibly-missing-attribute - Attribute `address` may be missing on object of type `TheValue@GlibcMemoryAllocator`
[error] invalid-argument-type - Method `__getitem__` of type `(bound method TheValue@GlibcMemoryAllocator.__getitem__(idx: int | str) -> Value) | (bound method TheValue@GlibcMemoryAllocator.__getitem__(key: str) -> Value)` cannot be called with key of type `Literal["tcache_small_bins"]` on object of type `TheValue@GlibcMemoryAllocator`
[error] invalid-argument-type - Method `__getitem__` of type `(bound method TheValue@GlibcMemoryAllocator.__getitem__(idx: int | str) -> Value) | (bound method TheValue@GlibcMemoryAllocator.__getitem__(key: str) -> Value)` cannot be called with key of type `Literal["tcache_bins"]` on object of type `TheValue@GlibcMemoryAllocator`
[error] invalid-argument-type - Argument to bound method `keys` is incorrect: Expected `Type`, found `TheType@GlibcMemoryAllocator`
[error] invalid-argument-type - Method `__getitem__` of type `(bound method TheValue@GlibcMemoryAllocator.__getitem__(idx: int | str) -> Value) | (bound method TheValue@GlibcMemoryAllocator.__getitem__(key: str) -> Value)` cannot be called with key of type `Literal["tcache_count"]` on object of type `TheValue@GlibcMemoryAllocator`

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

pylint/checkers/unicode.py

[error] invalid-argument-type - Argument to bound method `endswith` is incorrect: Expected `bytes`, found `_StrLike@_map_positions_to_result`
[error] invalid-argument-type - Argument to bound method `endswith` is incorrect: Expected `str`, found `_StrLike@_map_positions_to_result`
[error] invalid-argument-type - Argument to bound method `find` is incorrect: Expected `bytes`, found `_StrLike@_map_positions_to_result`
[error] invalid-argument-type - Argument to bound method `find` is incorrect: Expected `str`, found `_StrLike@_map_positions_to_result`
[error] invalid-argument-type - Argument to bound method `find` is incorrect: Expected `bytes`, found `_StrLike@_map_positions_to_result`
[error] invalid-argument-type - Argument to bound method `find` is incorrect: Expected `str`, found `_StrLike@_map_positions_to_result`

rich (https://github.com/Textualize/rich)

rich/progress.py

[error] invalid-argument-type - Argument to bound method `__enter__` is incorrect: Expected `BinaryIO`, found `_I@_ReadContext`
[error] invalid-argument-type - Argument to bound method `__enter__` is incorrect: Expected `TextIO`, found `_I@_ReadContext`

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

rotkehlchen/chain/decoding/decoder.py

[error] invalid-argument-type - Argument to bound method `get_or_query_db_id` is incorrect: Expected `EvmTransaction`, found `T_Transaction@TransactionDecoder`
[error] invalid-argument-type - Argument to bound method `get_or_query_db_id` is incorrect: Expected `SolanaTransaction`, found `T_Transaction@TransactionDecoder`

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

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

scrapy/http/headers.py

[error] invalid-argument-type - Argument to bound method `title` is incorrect: Expected `bytes`, found `AnyStr@normkey`
[error] no-matching-overload - No overload of bound method `title` matches arguments

scrapy/utils/datatypes.py

[error] invalid-argument-type - Argument to bound method `lower` is incorrect: Expected `bytes`, found `AnyStr@__getitem__`
[error] no-matching-overload - No overload of bound method `lower` matches arguments
[error] invalid-argument-type - Argument to bound method `lower` is incorrect: Expected `bytes`, found `AnyStr@__setitem__`
[error] no-matching-overload - No overload of bound method `lower` matches arguments
[error] invalid-argument-type - Argument to bound method `lower` is incorrect: Expected `bytes`, found `AnyStr@__setitem__`
[error] no-matching-overload - No overload of bound method `lower` matches arguments
[error] invalid-argument-type - Argument to bound method `lower` is incorrect: Expected `bytes`, found `AnyStr@__delitem__`
[error] no-matching-overload - No overload of bound method `lower` matches arguments
[error] invalid-argument-type - Argument to bound method `lower` is incorrect: Expected `bytes`, found `AnyStr@__contains__`
[error] no-matching-overload - No overload of bound method `lower` matches arguments
[error] invalid-return-type - Return type does not match returned value: expected `AnyStr@normkey`, found `Unknown | bytes`
[error] invalid-return-type - Return type does not match returned value: expected `AnyStr@normkey`, found `str | bytes`
[error] invalid-argument-type - Argument to bound method `lower` is incorrect: Expected `bytes`, found `AnyStr@normkey`
[error] no-matching-overload - No overload of bound method `lower` matches arguments

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

setuptools/_distutils/util.py

[error] invalid-argument-type - Method `__getitem__` of type `(Overload[(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> LiteralString, (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str]) | (Overload[(key: SupportsIndex, /) -> int, (key: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> bytes])` cannot be called with key of type `slice[Literal[1], None, None]` on object of type `AnyStr@change_root`

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

lib/spack/spack/vendor/markupsafe/__init__.py

[error] invalid-assignment - Invalid subscript assignment with key of type `Any` and value of type `Markup` on object of type `_ListOrDict@_escape_argspec`

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

static_frame/core/node_values.py

[error] invalid-return-type - Return type does not match returned value: expected `TVContainer_co@func`, found `@Todo | IndexHierarchy | Series[Any, Any] | Index[Any]`
[warning] unused-type-ignore-comment - Unused blanket `type: ignore` directive

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

sympy/polys/domains/domain.py

[error] invalid-argument-type - Argument to bound method `map` is incorrect: Argument type `Iterable[int | Er@Domain]` does not satisfy upper bound `RingElement` of type variable `Er`

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

xarray/computation/rolling.py

[error] unsupported-operator - Operator `/=` is not supported between objects of type `T_Xarray@Rolling` and `Unknown`
[error] invalid-return-type - Return type does not match returned value: expected `T_Xarray@Coarsen`, found `DataArray`

xarray/core/coordinates.py

[error] invalid-argument-type - Method `__getitem__` of type `(bound method T_Xarray@assert_coordinate_consistent.__getitem__(key: Any) -> T_Xarray@assert_coordinate_consistent) | (Overload[(key: Hashable) -> DataArray, (key: Iterable[Hashable]) -> T_Xarray@assert_coordinate_consistent])` cannot be called with key of type `Unknown` on object of type `T_Xarray@assert_coordinate_consistent`
[error] invalid-argument-type - Method `__getitem__` of type `(bound method T_Xarray@assert_coordinate_consistent.__getitem__(key: Any) -> T_Xarray@assert_coordinate_consistent) | (Overload[(key: Hashable) -> DataArray, (key: Iterable[Hashable]) -> T_Xarray@assert_coordinate_consistent])` cannot be called with key of type `Unknown` on object of type `T_Xarray@assert_coordinate_consistent`

xarray/core/groupby.py

[error] invalid-argument-type - Argument to bound method `transpose` is incorrect: Argument type `T_Xarray@GroupBy` does not satisfy upper bound `DataArray` of type variable `Self`
[error] invalid-argument-type - Argument to bound method `transpose` is incorrect: Argument type `T_Xarray@GroupBy` does not satisfy upper bound `Dataset` of type variable `Self`
[error] invalid-argument-type - Argument to bound method `isel` is incorrect: Argument type `T_Xarray@GroupBy` does not satisfy upper bound `DataArray` of type variable `Self`
[error] invalid-argument-type - Argument to bound method `isel` is incorrect: Argument type `T_Xarray@GroupBy` does not satisfy upper bound `Dataset` of type variable `Self`
[error] invalid-argument-type - Argument to bound method `_to_temp_dataset` is incorrect: Expected `DataArray`, found `T_Xarray@GroupBy`
[error] invalid-argument-type - Argument to bound method `_shuffle` is incorrect: Argument type `T_Xarray@GroupBy` does not satisfy upper bound `DataArray` of type variable `Self`
[error] invalid-argument-type - Argument to bound method `_shuffle` is incorrect: Argument type `T_Xarray@GroupBy` does not satisfy upper bound `Dataset` of type variable `Self`
[error] invalid-argument-type - Argument to bound method `_from_temp_dataset` is incorrect: Argument type `T_Xarray@GroupBy` does not satisfy upper bound `DataArray` of type variable `Self`
[error] invalid-argument-type - Argument to bound method `isel` is incorrect: Argument type `T_Xarray@GroupBy` does not satisfy upper bound `DataArray` of type variable `Self`
[error] invalid-argument-type - Argument to bound method `isel` is incorrect: Argument type `T_Xarray@GroupBy` does not satisfy upper bound `Dataset` of type variable `Self`
[error] invalid-argument-type - Argument to bound method `isel` is incorrect: Argument type `T_Xarray@GroupBy` does not satisfy upper bound `DataArray` of type variable `Self`
[error] invalid-argument-type - Argument to bound method `isel` is incorrect: Argument type `T_Xarray@GroupBy` does not satisfy upper bound `Dataset` of type variable `Self`
[error] invalid-argument-type - Method `__getitem__` of type `(bound method T_Xarray@GroupBy.__getitem__(key: Any) -> T_Xarray@GroupBy) | (Overload[(key: Hashable) -> DataArray, (key: Iterable[Hashable]) -> T_Xarray@GroupBy])` cannot be called with key of type `Unknown` on object of type `T_Xarray@GroupBy`
[error] invalid-argument-type - Method `__getitem__` of type `(bound method T_Xarray@GroupBy.__getitem__(key: Any) -> T_Xarray@GroupBy) | (Overload[(key: Hashable) -> DataArray, (key: Iterable[Hashable]) -> T_Xarray@GroupBy])` cannot be called with key of type `Unknown` on object of type `T_Xarray@GroupBy`
[error] invalid-argument-type - Argument to bound method `drop_vars` is incorrect: Argument type `T_Xarray@GroupBy` does not satisfy upper bound `DataArray` of type variable `Self`
[error] invalid-argument-type - Argument to bound method `drop_vars` is incorrect: Argument type `T_Xarray@GroupBy` does not satisfy upper bound `Dataset` of type variable `Self`
[error] invalid-argument-type - Argument to bound method `transpose` is incorrect: Argument type `T_Xarray@GroupBy` does not satisfy upper bound `DataArray` of type variable `Self`
[error] invalid-argument-type - Argument to bound method `transpose` is incorrect: Argument type `T_Xarray@GroupBy` does not satisfy upper bound `Dataset` of type variable `Self`

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 | Unknown` is not assignable to `T_PandasOrXarrayIndex@Indexes`

xarray/core/resample.py

[error] invalid-argument-type - Argument to bound method `drop_vars` is incorrect: Argument type `T_Xarray@Resample` does not satisfy upper bound `DataArray` of type variable `Self`
[error] invalid-argument-type - Argument to bound method `drop_vars` is incorrect: Argument type `T_Xarray@Resample` does not satisfy upper bound `Dataset` of type variable `Self`
[error] invalid-argument-type - Argument to bound method `drop_vars` is incorrect: Argument type `T_Xarray@Resample` does not satisfy upper bound `DataArray` of type variable `Self`
[error] invalid-argument-type - Argument to bound method `drop_vars` is incorrect: Argument type `T_Xarray@Resample` does not satisfy upper bound `Dataset` of type variable `Self`
[error] invalid-argument-type - Argument to bound method `reindex` is incorrect: Argument type `T_Xarray@Resample` does not satisfy upper bound `DataArray` of type variable `Self`
[error] invalid-argument-type - Argument to bound method `reindex` is incorrect: Argument type `T_Xarray@Resample` does not satisfy upper bound `Dataset` of type variable `Self`
[error] invalid-argument-type - Argument to bound method `reindex` is incorrect: Argument type `T_Xarray@Resample` does not satisfy upper bound `DataArray` of type variable `Self`
[error] invalid-argument-type - Argument to bound method `reindex` is incorrect: Argument type `T_Xarray@Resample` does not satisfy upper bound `Dataset` of type variable `Self`
[error] invalid-argument-type - Argument to bound method `reindex` is incorrect: Argument type `T_Xarray@Resample` does not satisfy upper bound `DataArray` of type variable `Self`
[error] invalid-argument-type - Argument to bound method `reindex` is incorrect: Argument type `T_Xarray@Resample` does not satisfy upper bound `Dataset` of type variable `Self`
[error] invalid-argument-type - Argument to bound method `interp` is incorrect: Argument type `T_Xarray@Resample` does not satisfy upper bound `DataArray` of type variable `Self`
[error] invalid-argument-type - Argument to bound method `interp` is incorrect: Argument type `T_Xarray@Resample` does not satisfy upper bound `Dataset` of type variable `Self`

xarray/plot/facetgrid.py

[error] invalid-argument-type - Method `__getitem__` of type `(Overload[(key: Hashable) -> DataArray, (key: Iterable[Hashable]) -> T_DataArrayOrSet@FacetGrid]) | (bound method T_DataArrayOrSet@FacetGrid.__getitem__(key: Any) -> T_DataArrayOrSet@FacetGrid)` cannot be called with key of type `Hashable` on object of type `T_DataArrayOrSet@FacetGrid`
[error] invalid-argument-type - Method `__getitem__` of type `(Overload[(key: Hashable) -> DataArray, (key: Iterable[Hashable]) -> T_DataArrayOrSet@FacetGrid]) | (bound method T_DataArrayOrSet@FacetGrid.__getitem__(key: Any) -> T_DataArrayOrSet@FacetGrid)` cannot be called with key of type `Hashable` on object of type `T_DataArrayOrSet@FacetGrid`
[error] invalid-argument-type - Method `__getitem__` of type `(Overload[(key: Hashable) -> DataArray, (key: Iterable[Hashable]) -> T_DataArrayOrSet@FacetGrid]) | (bound method T_DataArrayOrSet@FacetGrid.__getitem__(key: Any) -> T_DataArrayOrSet@FacetGrid)` cannot be called with key of type `Hashable` on object of type `T_DataArrayOrSet@FacetGrid`
[error] invalid-argument-type - Method `__getitem__` of type `(Overload[(key: Hashable) -> DataArray, (key: Iterable[Hashable]) -> T_DataArrayOrSet@FacetGrid]) | (bound method T_DataArrayOrSet@FacetGrid.__getitem__(key: Any) -> T_DataArrayOrSet@FacetGrid)` cannot be called with key of type `Hashable` on object of type `T_DataArrayOrSet@FacetGrid`
[error] invalid-argument-type - Method `__getitem__` of type `(Overload[(key: Hashable) -> DataArray, (key: Iterable[Hashable]) -> T_DataArrayOrSet@FacetGrid]) | (bound method T_DataArrayOrSet@FacetGrid.__getitem__(key: Any) -> T_DataArrayOrSet@FacetGrid)` cannot be called with key of type `Hashable` on object of type `T_DataArrayOrSet@FacetGrid`
[error] invalid-argument-type - Method `__getitem__` of type `(Overload[(key: Hashable) -> DataArray, (key: Iterable[Hashable]) -> T_DataArrayOrSet@FacetGrid]) | (bound method T_DataArrayOrSet@FacetGrid.__getitem__(key: Any) -> T_DataArrayOrSet@FacetGrid)` cannot be called with key of type `Hashable` on object of type `T_DataArrayOrSet@FacetGrid`
[error] invalid-argument-type - Method `__getitem__` of type `(Overload[(key: Hashable) -> DataArray, (key: Iterable[Hashable]) -> T_DataArrayOrSet@FacetGrid]) | (bound method T_DataArrayOrSet@FacetGrid.__getitem__(key: Any) -> T_DataArrayOrSet@FacetGrid)` cannot be called with key of type `Hashable` on object of type `T_DataArrayOrSet@FacetGrid`
[error] invalid-argument-type - Method `__getitem__` of type `(Overload[(key: Hashable) -> DataArray, (key: Iterable[Hashable]) -> T_DataArrayOrSet@FacetGrid]) | (bound method T_DataArrayOrSet@FacetGrid.__getitem__(key: Any) -> T_DataArrayOrSet@FacetGrid)` cannot be called with key of type `Hashable` on object of type `T_DataArrayOrSet@FacetGrid`
[error] invalid-argument-type - Method `__getitem__` of type `(Overload[(key: Hashable) -> DataArray, (key: Iterable[Hashable]) -> T_DataArrayOrSet@FacetGrid]) | (bound method T_DataArrayOrSet@FacetGrid.__getitem__(key: Any) -> T_DataArrayOrSet@FacetGrid)` cannot be called with key of type `Hashable` on object of type `T_DataArrayOrSet@FacetGrid`
[error] invalid-argument-type - Method `__getitem__` of type `(Overload[(key: Hashable) -> DataArray, (key: Iterable[Hashable]) -> T_DataArrayOrSet@FacetGrid]) | (bound method T_DataArrayOrSet@FacetGrid.__getitem__(key: Any) -> T_DataArrayOrSet@FacetGrid)` cannot be called with key of type `Hashable` on object of type `T_DataArrayOrSet@FacetGrid`
[error] invalid-argument-type - Method `__getitem__` of type `(Overload[(key: Hashable) -> DataArray, (key: Iterable[Hashable]) -> T_DataArrayOrSet@FacetGrid]) | (bound method T_DataArrayOrSet@FacetGrid.__getitem__(key: Any) -> T_DataArrayOrSet@FacetGrid)` cannot be called with key of type `Hashable` on object of type `T_DataArrayOrSet@FacetGrid`
[error] invalid-argument-type - Method `__getitem__` of type `(Overload[(key: Hashable) -> DataArray, (key: Iterable[Hashable]) -> T_DataArrayOrSet@FacetGrid]) | (bound method T_DataArrayOrSet@FacetGrid.__getitem__(key: Any) -> T_DataArrayOrSet@FacetGrid)` cannot be called with key of type `Any` on object of type `T_DataArrayOrSet@FacetGrid`