Summary

Comparing branches/commits:
Old: main (merge base) bff32a41
New: 21199/merge 2fa253a9
Lint Rule Removed Added Changed
Total 34 43 14
no-matching-overload 3 25 0
invalid-assignment 7 0 14
invalid-argument-type 8 11 0
invalid-return-type 15 0 0
unsupported-operator 0 7 0
possibly-missing-attribute 1 0 0

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

tanjun/annotations.py

[error] invalid-argument-type - :1949:74 - Argument to bound method `__init__` is incorrect: Expected `int | float`, found `(int | float) & ~int`
[error] invalid-argument-type - :1996:74 - Argument to bound method `__init__` is incorrect: Expected `int | float`, found `(int | float) & ~int`
[error] invalid-argument-type - :2110:75 - Argument to bound method `__init__` is incorrect: Expected `int | float`, found `_NumberT@__getitem__ & ~float`

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

src/arti/internal/type_hints.py

[error] invalid-argument-type - :177:37 - Argument to function `_check_issubclass` is incorrect: Expected `type`, found `T@lenient_issubclass & ~tuple[object, ...]`

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

hydpy/core/devicetools.py

[error] invalid-return-type - :2541:20 - Return type does not match returned value: expected `tuple[t@_make_tuple | None, t@_make_tuple | None]`, found `tuple[None | str | int, None | str | int]`
[error] invalid-return-type - :2724:20 - Return type does not match returned value: expected `tuple[t@_make_tuple | None, t@_make_tuple | None]`, found `tuple[None | str | int, None | str | int]`

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

mitmproxy/net/check.py

[error] invalid-argument-type - :23:9 - Argument to bound method `decode` is incorrect: Expected `bytes`, found `AnyStr@is_valid_host`
[error] invalid-argument-type - :29:23 - Argument to bound method `endswith` is incorrect: Expected `bytes`, found `AnyStr@is_valid_host`
[error] invalid-argument-type - :29:23 - Argument to bound method `endswith` is incorrect: Expected `str`, found `AnyStr@is_valid_host`
[error] invalid-argument-type - :29:43 - Argument to bound method `endswith` is incorrect: Expected `str | tuple[str, ...]`, found `Literal[b"."]`
[error] invalid-argument-type - :32:43 - Argument to bound method `split` is incorrect: Expected `bytes`, found `AnyStr@is_valid_host`
[error] no-matching-overload - :32:43 - No overload of bound method `split` matches arguments
[error] invalid-argument-type - :36:30 - Argument to bound method `decode` is incorrect: Expected `bytes`, found `AnyStr@is_valid_host`

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

pandas/core/algorithms.py

[error] invalid-return-type - :214:16 - Return type does not match returned value: expected `ArrayLikeT@_reconstruct_data`, found `ExtensionArray`

pandas/core/arrays/datetimes.py

[error] invalid-assignment - :2891:13 -
Old: Object of type `Timestamp` is not assignable to `_TimestampNoneT1@_maybe_normalize_endpoints`
New: Object of type `Unknown | Timestamp` is not assignable to `_TimestampNoneT1@_maybe_normalize_endpoints`
[error] invalid-argument-type - :2891:21 - Argument to bound method `normalize` is incorrect: Argument type `_TimestampNoneT1@_maybe_normalize_endpoints` does not satisfy upper bound `Timestamp` of type variable `Self`
[error] invalid-assignment - :2894:13 -
Old: Object of type `Timestamp` is not assignable to `_TimestampNoneT2@_maybe_normalize_endpoints`
New: Object of type `Unknown | Timestamp` is not assignable to `_TimestampNoneT2@_maybe_normalize_endpoints`
[error] invalid-argument-type - :2894:19 - Argument to bound method `normalize` is incorrect: Argument type `_TimestampNoneT2@_maybe_normalize_endpoints` does not satisfy upper bound `Timestamp` of type variable `Self`

pandas/io/stata.py

[error] invalid-return-type - :2256:16 - Return type does not match returned value: expected `AnyStr@_pad_bytes`, found `bytes`
[error] invalid-return-type - :2257:12 - Return type does not match returned value: expected `AnyStr@_pad_bytes`, found `str`
[error] unsupported-operator - :2257:12 - Operator `+` is unsupported between objects of type `AnyStr@_pad_bytes & ~bytes` and `LiteralString`

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

src/prefect/utilities/templating.py

[error] invalid-argument-type - :92:47 - 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] invalid-argument-type - :94:47 - 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] invalid-return-type - :166:20 - Return type does not match returned value: expected `T@apply_values | type[NotSet]`, found `str`
[error] invalid-assignment - :199:25 - Object of type `str` is not assignable to `T@apply_values`
[error] invalid-assignment - :201:21 - Object of type `str` is not assignable to `T@apply_values`
[error] invalid-return-type - :203:20 - Return type does not match returned value: expected `T@apply_values | type[NotSet]`, found `str | T@apply_values`
[error] no-matching-overload - :207:29 - No overload of function `apply_values` matches arguments
[error] invalid-assignment - :214:17 - Method `__setitem__` of type `bound method dict[str, Any].__setitem__(key: str, value: Any, /) -> None` cannot be called with a key of type `object` and a value of type `Unknown & ~<class 'NotSet'>` on object of type `dict[str, Any]`
[error] invalid-assignment - :216:17 - Method `__setitem__` of type `bound method dict[str, Any].__setitem__(key: str, value: Any, /) -> None` cannot be called with a key of type `object` and a value of type `object` on object of type `dict[str, Any]`
[error] no-matching-overload - :222:29 - No overload of function `apply_values` matches arguments
[error] no-matching-overload - :311:29 - No overload of bound method `get` matches arguments
[error] invalid-assignment - :320:13 - Method `__setitem__` of type `bound method dict[str, Any].__setitem__(key: str, value: Any, /) -> None` cannot be called with a key of type `object` and a value of type `Unknown` on object of type `dict[str, Any]`
[error] invalid-return-type - :336:20 - Return type does not match returned value: expected `T@resolve_block_document_references | dict[str, Any]`, found `str`
[error] invalid-return-type - :412:20 - Return type does not match returned value: expected `T@resolve_variables`, found `str`
[error] invalid-assignment - :432:25 - Object of type `str` is not assignable to `T@resolve_variables`
[error] invalid-assignment - :434:25 - Object of type `str` is not assignable to `T@resolve_variables`
[error] invalid-return-type - :435:20 - Return type does not match returned value: expected `T@resolve_variables`, found `str | T@resolve_variables`

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

static_frame/core/node_values.py

[error] invalid-return-type - :176:20 - Return type does not match returned value: expected `TVContainer_co@InterfaceValues`, found `@Todo | IndexHierarchy | Series[Any, Any] | Index[Any]`
[warning] possibly-missing-attribute - :178:23 - Attribute `index` may be missing on object of type `TVContainer_co@InterfaceValues`

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

torchvision/datasets/utils.py

[error] invalid-return-type - :416:16 - Return type does not match returned value: expected `T@verify_str_arg`, found `str`
[error] invalid-return-type - :426:12 - Return type does not match returned value: expected `T@verify_str_arg`, found `str`

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

xarray/coding/cftime_offsets.py

[error] unsupported-operator - :1519:49 - Operator `not in` is not supported for types `str` and `T_FreqStr@_legacy_to_new_freq`, in comparing `Literal["ME"]` with `T_FreqStr@_legacy_to_new_freq & ~AlwaysFalsy`
[error] unsupported-operator - :1521:53 - Operator `not in` is not supported for types `str` and `T_FreqStr@_legacy_to_new_freq`, in comparing `Literal["QE"]` with `T_FreqStr@_legacy_to_new_freq & ~AlwaysFalsy`
[error] unsupported-operator - :1523:52 - Operator `not in` is not supported for types `str` and `T_FreqStr@_legacy_to_new_freq`, in comparing `Literal["YS"]` with `T_FreqStr@_legacy_to_new_freq & ~AlwaysFalsy`
[error] unsupported-operator - :1526:12 - Operator `in` is not supported for types `str` and `T_FreqStr@_legacy_to_new_freq`, in comparing `Literal["A-"]` with `T_FreqStr@_legacy_to_new_freq & ~AlwaysFalsy`
[error] unsupported-operator - :1531:14 - Operator `in` is not supported for types `str` and `T_FreqStr@_legacy_to_new_freq`, in comparing `Literal["Y-"]` with `T_FreqStr@_legacy_to_new_freq & ~AlwaysFalsy`
[error] invalid-argument-type - :1533:14 - Argument to bound method `endswith` is incorrect: Expected `str`, found `T_FreqStr@_legacy_to_new_freq`
[error] unsupported-operator - :1536:14 - Operator `not in` is not supported for types `str` and `T_FreqStr@_legacy_to_new_freq`, in comparing `Literal["YE"]` with `T_FreqStr@_legacy_to_new_freq & ~AlwaysFalsy`
[error] invalid-argument-type - :1536:35 - Argument to bound method `endswith` is incorrect: Expected `str`, found `T_FreqStr@_legacy_to_new_freq`
[error] invalid-return-type - :1517:16 - Return type does not match returned value: expected `T_FreqStr@_legacy_to_new_freq`, found `str & ~AlwaysFalsy`
[error] invalid-return-type - :1550:12 - Return type does not match returned value: expected `T_FreqStr@_legacy_to_new_freq`, found `(str & ~AlwaysFalsy) | T_FreqStr@_legacy_to_new_freq`
[error] invalid-assignment - :1520:9 -
Old: Object of type `str` is not assignable to `T_FreqStr@_legacy_to_new_freq`
New: Object of type `Unknown | str` is not assignable to `T_FreqStr@_legacy_to_new_freq`
[error] no-matching-overload - :1520:16 - No overload of bound method `replace` matches arguments
[error] no-matching-overload - :1520:16 - No overload of bound method `replace` matches arguments
[error] invalid-assignment - :1522:9 -
Old: Object of type `str` is not assignable to `T_FreqStr@_legacy_to_new_freq`
New: Object of type `Unknown | str` is not assignable to `T_FreqStr@_legacy_to_new_freq`
[error] no-matching-overload - :1522:16 - No overload of bound method `replace` matches arguments
[error] no-matching-overload - :1522:16 - No overload of bound method `replace` matches arguments
[error] invalid-assignment - :1524:9 -
Old: Object of type `str` is not assignable to `T_FreqStr@_legacy_to_new_freq`
New: Object of type `Unknown | str` is not assignable to `T_FreqStr@_legacy_to_new_freq`
[error] no-matching-overload - :1524:16 - No overload of bound method `replace` matches arguments
[error] no-matching-overload - :1524:16 - No overload of bound method `replace` matches arguments
[error] invalid-assignment - :1530:13 -
Old: Object of type `str` is not assignable to `T_FreqStr@_legacy_to_new_freq`
New: Object of type `Unknown | str` is not assignable to `T_FreqStr@_legacy_to_new_freq`
[error] no-matching-overload - :1530:20 - No overload of bound method `replace` matches arguments
[error] no-matching-overload - :1530:20 - No overload of bound method `replace` matches arguments
[error] invalid-assignment - :1532:13 -
Old: Object of type `str` is not assignable to `T_FreqStr@_legacy_to_new_freq`
New: Object of type `Unknown | str` is not assignable to `T_FreqStr@_legacy_to_new_freq`
[error] no-matching-overload - :1532:20 - No overload of bound method `replace` matches arguments
[error] no-matching-overload - :1532:20 - No overload of bound method `replace` matches arguments
[error] invalid-assignment - :1535:13 -
Old: Object of type `str` is not assignable to `T_FreqStr@_legacy_to_new_freq`
New: Object of type `Unknown | str` is not assignable to `T_FreqStr@_legacy_to_new_freq`
[error] no-matching-overload - :1535:20 - No overload of bound method `replace` matches arguments
[error] no-matching-overload - :1535:20 - No overload of bound method `replace` matches arguments
[error] invalid-assignment - :1538:13 -
Old: Object of type `str` is not assignable to `T_FreqStr@_legacy_to_new_freq`
New: Object of type `Unknown | str` is not assignable to `T_FreqStr@_legacy_to_new_freq`
[error] no-matching-overload - :1538:20 - No overload of bound method `replace` matches arguments
[error] no-matching-overload - :1538:20 - No overload of bound method `replace` matches arguments
[error] invalid-assignment - :1540:9 -
Old: Object of type `str` is not assignable to `T_FreqStr@_legacy_to_new_freq`
New: Object of type `Unknown | str` is not assignable to `T_FreqStr@_legacy_to_new_freq`
[error] no-matching-overload - :1540:16 - No overload of bound method `replace` matches arguments
[error] no-matching-overload - :1540:16 - No overload of bound method `replace` matches arguments
[error] invalid-assignment - :1542:9 -
Old: Object of type `str` is not assignable to `T_FreqStr@_legacy_to_new_freq`
New: Object of type `Unknown | str` is not assignable to `T_FreqStr@_legacy_to_new_freq`
[error] no-matching-overload - :1542:16 - No overload of bound method `replace` matches arguments
[error] no-matching-overload - :1542:16 - No overload of bound method `replace` matches arguments
[error] invalid-assignment - :1544:9 -
Old: Object of type `str` is not assignable to `T_FreqStr@_legacy_to_new_freq`
New: Object of type `Unknown | str` is not assignable to `T_FreqStr@_legacy_to_new_freq`
[error] no-matching-overload - :1544:16 - No overload of bound method `replace` matches arguments
[error] no-matching-overload - :1544:16 - No overload of bound method `replace` matches arguments
[error] invalid-assignment - :1546:9 -
Old: Object of type `str` is not assignable to `T_FreqStr@_legacy_to_new_freq`
New: Object of type `Unknown | str` is not assignable to `T_FreqStr@_legacy_to_new_freq`
[error] no-matching-overload - :1546:16 - No overload of bound method `replace` matches arguments
[error] no-matching-overload - :1546:16 - No overload of bound method `replace` matches arguments
[error] invalid-assignment - :1548:9 -
Old: Object of type `str` is not assignable to `T_FreqStr@_legacy_to_new_freq`
New: Object of type `Unknown | str` is not assignable to `T_FreqStr@_legacy_to_new_freq`
[error] no-matching-overload - :1548:16 - No overload of bound method `replace` matches arguments
[error] no-matching-overload - :1548:16 - No overload of bound method `replace` matches arguments

xarray/computation/rolling.py

[error] invalid-argument-type - :1192:19 - Argument to bound method `_to_temp_dataset` is incorrect: Expected `DataArray`, found `T_Xarray@Coarsen`
[error] invalid-argument-type - :1216:20 - Argument to bound method `_from_temp_dataset` is incorrect: Argument type `T_Xarray@Coarsen` does not satisfy upper bound `DataArray` of type variable `Self`

xarray/core/indexes.py

[error] invalid-argument-type - :1893:24 - Argument to bound method `create_variables` is incorrect: Expected `Index`, found `T_PandasOrXarrayIndex@Indexes`