fix the diagnosis of typing error of decorator is very hard to read. #1115#2466
fix the diagnosis of typing error of decorator is very hard to read. #1115#2466asukaminato0721 wants to merge 6 commits into
Conversation
There was a problem hiding this comment.
Pull request overview
This PR fixes the readability of decorator error messages by preserving union type alias names in nested type positions. Previously, union type aliases like ResponseReturnValue = int | str | bytes | dict[str, int] | list[int] would be fully expanded in error messages, making them extremely difficult to read. Now, non-generic union type aliases maintain their names, resulting in more concise and readable error messages.
Changes:
- Modified
wrap_type_aliasinsolve.rsto set display names on non-generic union type aliases - Added test to verify union alias names are preserved in callable return types
- Added test to verify decorator error messages use union alias names instead of fully expanded types
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| pyrefly/lib/alt/solve.rs | Added logic to set display_name on non-generic union type aliases and their Type-wrapped variants |
| pyrefly/lib/test/type_alias.rs | Added test verifying union alias names appear in reveal_type output for callable return types |
| pyrefly/lib/test/decorators.rs | Added test verifying decorator error messages use union alias names for better readability |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This comment has been minimized.
This comment has been minimized.
1299db5 to
e8df24b
Compare
|
old new pass. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
cf944d7 to
6478e53
Compare
This comment has been minimized.
This comment has been minimized.
660b63a to
4dc44c1
Compare
This comment has been minimized.
This comment has been minimized.
778e9b6 to
0e57235
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
some of the errors shorten, but others get longer... |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Diff from mypy_primer, showing the effect of this PR on open source code: aioredis (https://github.com/aio-libs/aioredis)
- ERROR aioredis/client.py:4114:55-81: `dict[bytes | memoryview | str, Any | None]` is not assignable to `dict[ChannelT, (dict[str, str]) -> Awaitable[None]]` [bad-assignment]
+ ERROR aioredis/client.py:4114:55-81: `dict[bytes | memoryview | str, Any | None]` is not assignable to `dict[_StringLikeT, (dict[str, str]) -> Awaitable[None]]` [bad-assignment]
- ERROR aioredis/connection.py:441:16-24: Returned type `bytes | float | int | list[ResponseError | bytes | float | int | memoryview | str | None] | memoryview | str` is not assignable to declared return type `ResponseError | bytes | float | int | memoryview | str | None` [bad-return]
+ ERROR aioredis/connection.py:441:16-24: Returned type `bytes | float | int | list[EncodableT | ResponseError | None] | memoryview | str` is not assignable to declared return type `ResponseError | bytes | float | int | memoryview | str | None` [bad-return]
bokeh (https://github.com/bokeh/bokeh)
- (object: Any, dtype: _HasDType[dtype] | _HasNumPyDType[dtype] | dtype | list[Any] | str | _DTypeDict | tuple[Any, Any] | type[Any] | None = None, *, copy: _CopyMode | bool | None = True, order: _OrderKACF = 'K', subok: bool = False, ndmin: int = 0, ndmax: int = 0, like: _SupportsArrayFunc | None = None) -> ndarray
+ (object: Any, dtype: DTypeLike | None = None, *, copy: _CopyMode | bool | None = True, order: _OrderKACF = 'K', subok: bool = False, ndmin: int = 0, ndmax: int = 0, like: _SupportsArrayFunc | None = None) -> ndarray
- (object: Any, dtype: _HasDType[dtype] | _HasNumPyDType[dtype] | dtype | list[Any] | str | _DTypeDict | tuple[Any, Any] | type[Any] | None = None, *, copy: _CopyMode | bool | None = True, order: _OrderKACF = 'K', subok: bool = False, ndmin: int = 0, ndmax: int = 0, like: _SupportsArrayFunc | None = None) -> ndarray
+ (object: Any, dtype: DTypeLike | None = None, *, copy: _CopyMode | bool | None = True, order: _OrderKACF = 'K', subok: bool = False, ndmin: int = 0, ndmax: int = 0, like: _SupportsArrayFunc | None = None) -> ndarray
- (object: Any, dtype: _HasDType[dtype] | _HasNumPyDType[dtype] | dtype | list[Any] | str | _DTypeDict | tuple[Any, Any] | type[Any] | None = None, *, copy: _CopyMode | bool | None = True, order: _OrderKACF = 'K', subok: bool = False, ndmin: int = 0, ndmax: int = 0, like: _SupportsArrayFunc | None = None) -> ndarray
+ (object: Any, dtype: DTypeLike | None = None, *, copy: _CopyMode | bool | None = True, order: _OrderKACF = 'K', subok: bool = False, ndmin: int = 0, ndmax: int = 0, like: _SupportsArrayFunc | None = None) -> ndarray
- (object: Any, dtype: _HasDType[dtype] | _HasNumPyDType[dtype] | dtype | list[Any] | str | _DTypeDict | tuple[Any, Any] | type[Any] | None = None, *, copy: _CopyMode | bool | None = True, order: _OrderKACF = 'K', subok: bool = False, ndmin: int = 0, ndmax: int = 0, like: _SupportsArrayFunc | None = None) -> ndarray
+ (object: Any, dtype: DTypeLike | None = None, *, copy: _CopyMode | bool | None = True, order: _OrderKACF = 'K', subok: bool = False, ndmin: int = 0, ndmax: int = 0, like: _SupportsArrayFunc | None = None) -> ndarray
- (object: Any, dtype: _HasDType[dtype] | _HasNumPyDType[dtype] | dtype | list[Any] | str | _DTypeDict | tuple[Any, Any] | type[Any] | None = None, *, copy: _CopyMode | bool | None = True, order: _OrderKACF = 'K', subok: bool = False, ndmin: int = 0, ndmax: int = 0, like: _SupportsArrayFunc | None = None) -> ndarray
+ (object: Any, dtype: DTypeLike | None = None, *, copy: _CopyMode | bool | None = True, order: _OrderKACF = 'K', subok: bool = False, ndmin: int = 0, ndmax: int = 0, like: _SupportsArrayFunc | None = None) -> ndarray
- (object: Any, dtype: _HasDType[dtype] | _HasNumPyDType[dtype] | dtype | list[Any] | str | _DTypeDict | tuple[Any, Any] | type[Any] | None = None, *, copy: _CopyMode | bool | None = True, order: _OrderKACF = 'K', subok: bool = False, ndmin: int = 0, ndmax: int = 0, like: _SupportsArrayFunc | None = None) -> ndarray
+ (object: Any, dtype: DTypeLike | None = None, *, copy: _CopyMode | bool | None = True, order: _OrderKACF = 'K', subok: bool = False, ndmin: int = 0, ndmax: int = 0, like: _SupportsArrayFunc | None = None) -> ndarray
- (object: Any, dtype: _HasDType[dtype] | _HasNumPyDType[dtype] | dtype | list[Any] | str | _DTypeDict | tuple[Any, Any] | type[Any] | None = None, *, copy: _CopyMode | bool | None = True, order: _OrderKACF = 'K', subok: bool = False, ndmin: int = 0, ndmax: int = 0, like: _SupportsArrayFunc | None = None) -> ndarray
+ (object: Any, dtype: DTypeLike | None = None, *, copy: _CopyMode | bool | None = True, order: _OrderKACF = 'K', subok: bool = False, ndmin: int = 0, ndmax: int = 0, like: _SupportsArrayFunc | None = None) -> ndarray
- (object: Any, dtype: _HasDType[dtype] | _HasNumPyDType[dtype] | dtype | list[Any] | str | _DTypeDict | tuple[Any, Any] | type[Any] | None = None, *, copy: _CopyMode | bool | None = True, order: _OrderKACF = 'K', subok: bool = False, ndmin: int = 0, ndmax: int = 0, like: _SupportsArrayFunc | None = None) -> ndarray
+ (object: Any, dtype: DTypeLike | None = None, *, copy: _CopyMode | bool | None = True, order: _OrderKACF = 'K', subok: bool = False, ndmin: int = 0, ndmax: int = 0, like: _SupportsArrayFunc | None = None) -> ndarray
spark (https://github.com/apache/spark)
- ERROR python/pyspark/pandas/tests/computation/test_pivot.py:43:61-74: Argument `dict[str, str]` is not assignable to parameter `aggfunc` with type `Literal['all', 'any', 'bfill', 'corrwith', 'count', 'cummax', 'cummin', 'cumprod', 'cumsum', 'diff', 'ffill', 'first', 'idxmax', 'idxmin', 'kurt', 'last', 'max', 'mean', 'median', 'min', 'nunique', 'ohlc', 'pct_change', 'prod', 'quantile', 'rank', 'sem', 'shift', 'size', 'skew', 'std', 'sum', 'var'] | ((Series) -> Scalar) | Mapping[Any, Literal['all', 'any', 'bfill', 'corrwith', 'count', 'cummax', 'cummin', 'cumprod', 'cumsum', 'diff', 'ffill', 'first', 'idxmax', 'idxmin', 'kurt', 'last', 'max', 'mean', 'median', 'min', 'nunique', 'ohlc', 'pct_change', 'prod', 'quantile', 'rank', 'sem', 'shift', 'size', 'skew', 'std', 'sum', 'var'] | ((Series) -> Scalar) | ufunc] | Sequence[Literal['all', 'any', 'bfill', 'corrwith', 'count', 'cummax', 'cummin', 'cumprod', 'cumsum', 'diff', 'ffill', 'first', 'idxmax', 'idxmin', 'kurt', 'last', 'max', 'mean', 'median', 'min', 'nunique', 'ohlc', 'pct_change', 'prod', 'quantile', 'rank', 'sem', 'shift', 'size', 'skew', 'std', 'sum', 'var'] | ((Series) -> Scalar) | ufunc] | ufunc` in function `pandas.core.frame.DataFrame.pivot_table` [bad-argument-type]
+ ERROR python/pyspark/pandas/tests/computation/test_pivot.py:43:61-74: Argument `dict[str, str]` is not assignable to parameter `aggfunc` with type `Literal['all', 'any', 'bfill', 'corrwith', 'count', 'cummax', 'cummin', 'cumprod', 'cumsum', 'diff', 'ffill', 'first', 'idxmax', 'idxmin', 'kurt', 'last', 'max', 'mean', 'median', 'min', 'nunique', 'ohlc', 'pct_change', 'prod', 'quantile', 'rank', 'sem', 'shift', 'size', 'skew', 'std', 'sum', 'var'] | ((Series) -> Scalar) | Mapping[Any, ReductionKernelType | ufunc | PivotAggCallable[ScalarT] | Literal['bfill'] | Literal['cummax'] | Literal['cummin'] | Literal['cumprod'] | Literal['cumsum'] | Literal['diff'] | Literal['ffill'] | Literal['ohlc'] | Literal['pct_change'] | Literal['rank'] | Literal['shift']] | Sequence[ReductionKernelType | ufunc | PivotAggCallable[ScalarT] | Literal['bfill'] | Literal['cummax'] | Literal['cummin'] | Literal['cumprod'] | Literal['cumsum'] | Literal['diff'] | Literal['ffill'] | Literal['ohlc'] | Literal['pct_change'] | Literal['rank'] | Literal['shift']] | ufunc` in function `pandas.core.frame.DataFrame.pivot_table` [bad-argument-type]
- ERROR python/pyspark/pandas/tests/computation/test_pivot_table_adv.py:54:70-95: Argument `dict[str, str]` is not assignable to parameter `aggfunc` with type `Literal['all', 'any', 'bfill', 'corrwith', 'count', 'cummax', 'cummin', 'cumprod', 'cumsum', 'diff', 'ffill', 'first', 'idxmax', 'idxmin', 'kurt', 'last', 'max', 'mean', 'median', 'min', 'nunique', 'ohlc', 'pct_change', 'prod', 'quantile', 'rank', 'sem', 'shift', 'size', 'skew', 'std', 'sum', 'var'] | ((Series) -> Scalar) | Mapping[Any, Literal['all', 'any', 'bfill', 'corrwith', 'count', 'cummax', 'cummin', 'cumprod', 'cumsum', 'diff', 'ffill', 'first', 'idxmax', 'idxmin', 'kurt', 'last', 'max', 'mean', 'median', 'min', 'nunique', 'ohlc', 'pct_change', 'prod', 'quantile', 'rank', 'sem', 'shift', 'size', 'skew', 'std', 'sum', 'var'] | ((Series) -> Scalar) | ufunc] | Sequence[Literal['all', 'any', 'bfill', 'corrwith', 'count', 'cummax', 'cummin', 'cumprod', 'cumsum', 'diff', 'ffill', 'first', 'idxmax', 'idxmin', 'kurt', 'last', 'max', 'mean', 'median', 'min', 'nunique', 'ohlc', 'pct_change', 'prod', 'quantile', 'rank', 'sem', 'shift', 'size', 'skew', 'std', 'sum', 'var'] | ((Series) -> Scalar) | ufunc] | ufunc` in function `pandas.core.frame.DataFrame.pivot_table` [bad-argument-type]
+ ERROR python/pyspark/pandas/tests/computation/test_pivot_table_adv.py:54:70-95: Argument `dict[str, str]` is not assignable to parameter `aggfunc` with type `Literal['all', 'any', 'bfill', 'corrwith', 'count', 'cummax', 'cummin', 'cumprod', 'cumsum', 'diff', 'ffill', 'first', 'idxmax', 'idxmin', 'kurt', 'last', 'max', 'mean', 'median', 'min', 'nunique', 'ohlc', 'pct_change', 'prod', 'quantile', 'rank', 'sem', 'shift', 'size', 'skew', 'std', 'sum', 'var'] | ((Series) -> Scalar) | Mapping[Any, ReductionKernelType | ufunc | PivotAggCallable[ScalarT] | Literal['bfill'] | Literal['cummax'] | Literal['cummin'] | Literal['cumprod'] | Literal['cumsum'] | Literal['diff'] | Literal['ffill'] | Literal['ohlc'] | Literal['pct_change'] | Literal['rank'] | Literal['shift']] | Sequence[ReductionKernelType | ufunc | PivotAggCallable[ScalarT] | Literal['bfill'] | Literal['cummax'] | Literal['cummin'] | Literal['cumprod'] | Literal['cumsum'] | Literal['diff'] | Literal['ffill'] | Literal['ohlc'] | Literal['pct_change'] | Literal['rank'] | Literal['shift']] | ufunc` in function `pandas.core.frame.DataFrame.pivot_table` [bad-argument-type]
- ERROR python/pyspark/pandas/tests/computation/test_pivot_table_multi_idx_adv.py:68:25-64: Argument `dict[tuple[str, str], str]` is not assignable to parameter `aggfunc` with type `Literal['all', 'any', 'bfill', 'corrwith', 'count', 'cummax', 'cummin', 'cumprod', 'cumsum', 'diff', 'ffill', 'first', 'idxmax', 'idxmin', 'kurt', 'last', 'max', 'mean', 'median', 'min', 'nunique', 'ohlc', 'pct_change', 'prod', 'quantile', 'rank', 'sem', 'shift', 'size', 'skew', 'std', 'sum', 'var'] | ((Series) -> Scalar) | Mapping[Any, Literal['all', 'any', 'bfill', 'corrwith', 'count', 'cummax', 'cummin', 'cumprod', 'cumsum', 'diff', 'ffill', 'first', 'idxmax', 'idxmin', 'kurt', 'last', 'max', 'mean', 'median', 'min', 'nunique', 'ohlc', 'pct_change', 'prod', 'quantile', 'rank', 'sem', 'shift', 'size', 'skew', 'std', 'sum', 'var'] | ((Series) -> Scalar) | ufunc] | Sequence[Literal['all', 'any', 'bfill', 'corrwith', 'count', 'cummax', 'cummin', 'cumprod', 'cumsum', 'diff', 'ffill', 'first', 'idxmax', 'idxmin', 'kurt', 'last', 'max', 'mean', 'median', 'min', 'nunique', 'ohlc', 'pct_change', 'prod', 'quantile', 'rank', 'sem', 'shift', 'size', 'skew', 'std', 'sum', 'var'] | ((Series) -> Scalar) | ufunc] | ufunc` in function `pandas.core.frame.DataFrame.pivot_table` [bad-argument-type]
+ ERROR python/pyspark/pandas/tests/computation/test_pivot_table_multi_idx_adv.py:68:25-64: Argument `dict[tuple[str, str], str]` is not assignable to parameter `aggfunc` with type `Literal['all', 'any', 'bfill', 'corrwith', 'count', 'cummax', 'cummin', 'cumprod', 'cumsum', 'diff', 'ffill', 'first', 'idxmax', 'idxmin', 'kurt', 'last', 'max', 'mean', 'median', 'min', 'nunique', 'ohlc', 'pct_change', 'prod', 'quantile', 'rank', 'sem', 'shift', 'size', 'skew', 'std', 'sum', 'var'] | ((Series) -> Scalar) | Mapping[Any, ReductionKernelType | ufunc | PivotAggCallable[ScalarT] | Literal['bfill'] | Literal['cummax'] | Literal['cummin'] | Literal['cumprod'] | Literal['cumsum'] | Literal['diff'] | Literal['ffill'] | Literal['ohlc'] | Literal['pct_change'] | Literal['rank'] | Literal['shift']] | Sequence[ReductionKernelType | ufunc | PivotAggCallable[ScalarT] | Literal['bfill'] | Literal['cummax'] | Literal['cummin'] | Literal['cumprod'] | Literal['cumsum'] | Literal['diff'] | Literal['ffill'] | Literal['ohlc'] | Literal['pct_change'] | Literal['rank'] | Literal['shift']] | ufunc` in function `pandas.core.frame.DataFrame.pivot_table` [bad-argument-type]
- ERROR python/pyspark/pandas/tests/indexes/test_indexing.py:155:75-85: Argument `Series` is not assignable to parameter `other` with type `((...) -> DataFrame | Timedelta | Timestamp | bool | bytes | complex | complexfloating | date | datetime | datetime64 | float | floating | int | integer | str | timedelta | timedelta64) | DataFrame | Timedelta | Timestamp | bool | bytes | complex | complexfloating | date | datetime | datetime64 | float | floating | int | integer | str | timedelta | timedelta64 | None` in function `pandas.core.frame.DataFrame.where` [bad-argument-type]
+ ERROR python/pyspark/pandas/tests/indexes/test_indexing.py:155:75-85: Argument `Series` is not assignable to parameter `other` with type `((...) -> Scalar | Self@DataFrame) | DataFrame | Timedelta | Timestamp | bool | bytes | complex | complexfloating | date | datetime | datetime64 | float | floating | int | integer | str | timedelta | timedelta64 | None` in function `pandas.core.frame.DataFrame.where` [bad-argument-type]
altair (https://github.com/vega/altair)
- ERROR altair/utils/save.py:283:14-49: Cannot use `PluginEnabler[(narwhals.stable.v1.typing.DataFrameLike | altair.utils.core.DataFrameLike | NativeDataFrame | SupportsGeoInterface | dict[Any, Any] | Unknown, ...) -> Unknown, Unknown]` as a context manager [bad-context-manager]
- ERROR altair/utils/save.py:283:14-49: Cannot use `PluginEnabler[(narwhals.stable.v1.typing.DataFrameLike | altair.utils.core.DataFrameLike | NativeDataFrame | SupportsGeoInterface | dict[Any, Any] | Unknown, ...) -> Unknown, Unknown]` as a context manager [bad-context-manager]
+ ERROR altair/utils/save.py:283:14-49: Cannot use `PluginEnabler[(IntoDataFrame | dict[Any, Any] | SupportsGeoInterface | DataFrameLike, ...) -> Unknown, Unknown]` as a context manager [bad-context-manager]
+ ERROR altair/utils/save.py:283:14-49: Cannot use `PluginEnabler[(IntoDataFrame | dict[Any, Any] | SupportsGeoInterface | DataFrameLike, ...) -> Unknown, Unknown]` as a context manager [bad-context-manager]
- ERROR tests/vegalite/v6/test_api.py:2094:10-52: Cannot use `PluginEnabler[(narwhals.stable.v1.typing.DataFrameLike | altair.utils.core.DataFrameLike | NativeDataFrame | SupportsGeoInterface | dict[Any, Any] | Unknown, ...) -> Unknown, Unknown]` as a context manager [bad-context-manager]
- ERROR tests/vegalite/v6/test_api.py:2094:10-52: Cannot use `PluginEnabler[(narwhals.stable.v1.typing.DataFrameLike | altair.utils.core.DataFrameLike | NativeDataFrame | SupportsGeoInterface | dict[Any, Any] | Unknown, ...) -> Unknown, Unknown]` as a context manager [bad-context-manager]
- ERROR tests/vegalite/v6/test_geo_interface.py:32:10-66: Cannot use `PluginEnabler[(narwhals.stable.v1.typing.DataFrameLike | altair.utils.core.DataFrameLike | NativeDataFrame | SupportsGeoInterface | dict[Any, Any] | Unknown, ...) -> Unknown, Unknown]` as a context manager [bad-context-manager]
- ERROR tests/vegalite/v6/test_geo_interface.py:32:10-66: Cannot use `PluginEnabler[(narwhals.stable.v1.typing.DataFrameLike | altair.utils.core.DataFrameLike | NativeDataFrame | SupportsGeoInterface | dict[Any, Any] | Unknown, ...) -> Unknown, Unknown]` as a context manager [bad-context-manager]
- ERROR tests/vegalite/v6/test_geo_interface.py:52:10-66: Cannot use `PluginEnabler[(narwhals.stable.v1.typing.DataFrameLike | altair.utils.core.DataFrameLike | NativeDataFrame | SupportsGeoInterface | dict[Any, Any] | Unknown, ...) -> Unknown, Unknown]` as a context manager [bad-context-manager]
- ERROR tests/vegalite/v6/test_geo_interface.py:52:10-66: Cannot use `PluginEnabler[(narwhals.stable.v1.typing.DataFrameLike | altair.utils.core.DataFrameLike | NativeDataFrame | SupportsGeoInterface | dict[Any, Any] | Unknown, ...) -> Unknown, Unknown]` as a context manager [bad-context-manager]
- ERROR tests/vegalite/v6/test_geo_interface.py:72:10-66: Cannot use `PluginEnabler[(narwhals.stable.v1.typing.DataFrameLike | altair.utils.core.DataFrameLike | NativeDataFrame | SupportsGeoInterface | dict[Any, Any] | Unknown, ...) -> Unknown, Unknown]` as a context manager [bad-context-manager]
- ERROR tests/vegalite/v6/test_geo_interface.py:72:10-66: Cannot use `PluginEnabler[(narwhals.stable.v1.typing.DataFrameLike | altair.utils.core.DataFrameLike | NativeDataFrame | SupportsGeoInterface | dict[Any, Any] | Unknown, ...) -> Unknown, Unknown]` as a context manager [bad-context-manager]
- ERROR tests/vegalite/v6/test_geo_interface.py:102:10-66: Cannot use `PluginEnabler[(narwhals.stable.v1.typing.DataFrameLike | altair.utils.core.DataFrameLike | NativeDataFrame | SupportsGeoInterface | dict[Any, Any] | Unknown, ...) -> Unknown, Unknown]` as a context manager [bad-context-manager]
- ERROR tests/vegalite/v6/test_geo_interface.py:102:10-66: Cannot use `PluginEnabler[(narwhals.stable.v1.typing.DataFrameLike | altair.utils.core.DataFrameLike | NativeDataFrame | SupportsGeoInterface | dict[Any, Any] | Unknown, ...) -> Unknown, Unknown]` as a context manager [bad-context-manager]
- ERROR tests/vegalite/v6/test_geo_interface.py:122:10-66: Cannot use `PluginEnabler[(narwhals.stable.v1.typing.DataFrameLike | altair.utils.core.DataFrameLike | NativeDataFrame | SupportsGeoInterface | dict[Any, Any] | Unknown, ...) -> Unknown, Unknown]` as a context manager [bad-context-manager]
- ERROR tests/vegalite/v6/test_geo_interface.py:122:10-66: Cannot use `PluginEnabler[(narwhals.stable.v1.typing.DataFrameLike | altair.utils.core.DataFrameLike | NativeDataFrame | SupportsGeoInterface | dict[Any, Any] | Unknown, ...) -> Unknown, Unknown]` as a context manager [bad-context-manager]
- ERROR tests/vegalite/v6/test_geo_interface.py:132:10-66: Cannot use `PluginEnabler[(narwhals.stable.v1.typing.DataFrameLike | altair.utils.core.DataFrameLike | NativeDataFrame | SupportsGeoInterface | dict[Any, Any] | Unknown, ...) -> Unknown, Unknown]` as a context manager [bad-context-manager]
- ERROR tests/vegalite/v6/test_geo_interface.py:132:10-66: Cannot use `PluginEnabler[(narwhals.stable.v1.typing.DataFrameLike | altair.utils.core.DataFrameLike | NativeDataFrame | SupportsGeoInterface | dict[Any, Any] | Unknown, ...) -> Unknown, Unknown]` as a context manager [bad-context-manager]
- ERROR tests/vegalite/v6/test_geo_interface.py:168:10-66: Cannot use `PluginEnabler[(narwhals.stable.v1.typing.DataFrameLike | altair.utils.core.DataFrameLike | NativeDataFrame | SupportsGeoInterface | dict[Any, Any] | Unknown, ...) -> Unknown, Unknown]` as a context manager [bad-context-manager]
- ERROR tests/vegalite/v6/test_geo_interface.py:168:10-66: Cannot use `PluginEnabler[(narwhals.stable.v1.typing.DataFrameLike | altair.utils.core.DataFrameLike | NativeDataFrame | SupportsGeoInterface | dict[Any, Any] | Unknown, ...) -> Unknown, Unknown]` as a context manager [bad-context-manager]
- ERROR tests/vegalite/v6/test_geo_interface.py:210:10-66: Cannot use `PluginEnabler[(narwhals.stable.v1.typing.DataFrameLike | altair.utils.core.DataFrameLike | NativeDataFrame | SupportsGeoInterface | dict[Any, Any] | Unknown, ...) -> Unknown, Unknown]` as a context manager [bad-context-manager]
- ERROR tests/vegalite/v6/test_geo_interface.py:210:10-66: Cannot use `PluginEnabler[(narwhals.stable.v1.typing.DataFrameLike | altair.utils.core.DataFrameLike | NativeDataFrame | SupportsGeoInterface | dict[Any, Any] | Unknown, ...) -> Unknown, Unknown]` as a context manager [bad-context-manager]
+ ERROR tests/vegalite/v6/test_api.py:2094:10-52: Cannot use `PluginEnabler[(IntoDataFrame | dict[Any, Any] | SupportsGeoInterface | DataFrameLike, ...) -> Unknown, Unknown]` as a context manager [bad-context-manager]
+ ERROR tests/vegalite/v6/test_api.py:2094:10-52: Cannot use `PluginEnabler[(IntoDataFrame | dict[Any, Any] | SupportsGeoInterface | DataFrameLike, ...) -> Unknown, Unknown]` as a context manager [bad-context-manager]
+ ERROR tests/vegalite/v6/test_geo_interface.py:32:10-66: Cannot use `PluginEnabler[(IntoDataFrame | dict[Any, Any] | SupportsGeoInterface | DataFrameLike, ...) -> Unknown, Unknown]` as a context manager [bad-context-manager]
+ ERROR tests/vegalite/v6/test_geo_interface.py:32:10-66: Cannot use `PluginEnabler[(IntoDataFrame | dict[Any, Any] | SupportsGeoInterface | DataFrameLike, ...) -> Unknown, Unknown]` as a context manager [bad-context-manager]
+ ERROR tests/vegalite/v6/test_geo_interface.py:52:10-66: Cannot use `PluginEnabler[(IntoDataFrame | dict[Any, Any] | SupportsGeoInterface | DataFrameLike, ...) -> Unknown, Unknown]` as a context manager [bad-context-manager]
+ ERROR tests/vegalite/v6/test_geo_interface.py:52:10-66: Cannot use `PluginEnabler[(IntoDataFrame | dict[Any, Any] | SupportsGeoInterface | DataFrameLike, ...) -> Unknown, Unknown]` as a context manager [bad-context-manager]
+ ERROR tests/vegalite/v6/test_geo_interface.py:72:10-66: Cannot use `PluginEnabler[(IntoDataFrame | dict[Any, Any] | SupportsGeoInterface | DataFrameLike, ...) -> Unknown, Unknown]` as a context manager [bad-context-manager]
+ ERROR tests/vegalite/v6/test_geo_interface.py:72:10-66: Cannot use `PluginEnabler[(IntoDataFrame | dict[Any, Any] | SupportsGeoInterface | DataFrameLike, ...) -> Unknown, Unknown]` as a context manager [bad-context-manager]
+ ERROR tests/vegalite/v6/test_geo_interface.py:102:10-66: Cannot use `PluginEnabler[(IntoDataFrame | dict[Any, Any] | SupportsGeoInterface | DataFrameLike, ...) -> Unknown, Unknown]` as a context manager [bad-context-manager]
+ ERROR tests/vegalite/v6/test_geo_interface.py:102:10-66: Cannot use `PluginEnabler[(IntoDataFrame | dict[Any, Any] | SupportsGeoInterface | DataFrameLike, ...) -> Unknown, Unknown]` as a context manager [bad-context-manager]
+ ERROR tests/vegalite/v6/test_geo_interface.py:122:10-66: Cannot use `PluginEnabler[(IntoDataFrame | dict[Any, Any] | SupportsGeoInterface | DataFrameLike, ...) -> Unknown, Unknown]` as a context manager [bad-context-manager]
+ ERROR tests/vegalite/v6/test_geo_interface.py:122:10-66: Cannot use `PluginEnabler[(IntoDataFrame | dict[Any, Any] | SupportsGeoInterface | DataFrameLike, ...) -> Unknown, Unknown]` as a context manager [bad-context-manager]
+ ERROR tests/vegalite/v6/test_geo_interface.py:132:10-66: Cannot use `PluginEnabler[(IntoDataFrame | dict[Any, Any] | SupportsGeoInterface | DataFrameLike, ...) -> Unknown, Unknown]` as a context manager [bad-context-manager]
+ ERROR tests/vegalite/v6/test_geo_interface.py:132:10-66: Cannot use `PluginEnabler[(IntoDataFrame | dict[Any, Any] | SupportsGeoInterface | DataFrameLike, ...) -> Unknown, Unknown]` as a context manager [bad-context-manager]
+ ERROR tests/vegalite/v6/test_geo_interface.py:168:10-66: Cannot use `PluginEnabler[(IntoDataFrame | dict[Any, Any] | SupportsGeoInterface | DataFrameLike, ...) -> Unknown, Unknown]` as a context manager [bad-context-manager]
+ ERROR tests/vegalite/v6/test_geo_interface.py:168:10-66: Cannot use `PluginEnabler[(IntoDataFrame | dict[Any, Any] | SupportsGeoInterface | DataFrameLike, ...) -> Unknown, Unknown]` as a context manager [bad-context-manager]
+ ERROR tests/vegalite/v6/test_geo_interface.py:210:10-66: Cannot use `PluginEnabler[(IntoDataFrame | dict[Any, Any] | SupportsGeoInterface | DataFrameLike, ...) -> Unknown, Unknown]` as a context manager [bad-context-manager]
+ ERROR tests/vegalite/v6/test_geo_interface.py:210:10-66: Cannot use `PluginEnabler[(IntoDataFrame | dict[Any, Any] | SupportsGeoInterface | DataFrameLike, ...) -> Unknown, Unknown]` as a context manager [bad-context-manager]
prefect (https://github.com/PrefectHQ/prefect)
- ERROR src/prefect/context.py:1013:54-70: Argument `dict[Setting, Any]` is not assignable to parameter `updates` with type `Mapping[Literal['api.auth_string', 'api.enable_http2', 'api.key', 'api.request_timeout', 'api.ssl_cert_file', 'api.tls_insecure_skip_verify', 'api.url', 'cli.colors', 'cli.prompt', 'cli.wrap_lines', 'client.csrf_support_enabled', 'client.custom_headers', 'client.max_retries', 'client.metrics.enabled', 'client.metrics.port', 'client.retry_extra_codes', 'client.retry_jitter_factor', 'client.server_version_check_enabled', 'cloud.api_url', 'cloud.enable_orchestration_telemetry', 'cloud.max_log_size', 'cloud.ui_url', 'debug_mode', 'deployments.default_docker_build_namespace', 'deployments.default_work_pool_name', 'events.worker_max_queue_size', 'experiments.warn', 'flows.default_retries', 'flows.default_retry_delay_seconds', 'flows.heartbeat_frequency', 'home', 'internal.logging_level', 'logging.colors', 'logging.config_path', 'logging.extra_loggers', 'logging.level', 'logging.log_prints', 'logging.markup', 'logging.to_api.batch_interval', 'logging.to_api.batch_size', 'logging.to_api.enabled', 'logging.to_api.max_log_size', 'logging.to_api.when_missing_flow', 'plugins.allow', 'plugins.deny', 'plugins.enabled', 'plugins.safe_mode', 'plugins.setup_timeout_seconds', 'plugins.strict', 'profiles_path', 'results.default_serializer', 'results.default_storage_block', 'results.local_storage_path', 'results.persist_by_default', 'runner.auto_install_dependencies', 'runner.crash_on_cancellation_failure', 'runner.poll_frequency', 'runner.process_limit', 'runner.server.enable', 'runner.server.host', 'runner.server.log_level', 'runner.server.missed_polls_tolerance', 'runner.server.port', 'server.analytics_enabled', 'server.api.auth_string', 'server.api.base_path', 'server.api.cors_allowed_headers', 'server.api.cors_allowed_methods', 'server.api.cors_allowed_origins', 'server.api.csrf_protection_enabled', 'server.api.csrf_token_expiration', 'server.api.default_limit', 'server.api.host', 'server.api.keepalive_timeout', 'server.api.max_parameter_size', 'server.api.port', 'server.api.websocket_ping_interval', 'server.api.websocket_ping_timeout', 'server.concurrency.initial_deployment_lease_duration', 'server.concurrency.lease_storage', 'server.concurrency.maximum_concurrency_slot_wait_seconds', 'server.database.connection_timeout', 'server.database.connection_url', 'server.database.driver', 'server.database.echo', 'server.database.host', 'server.database.migrate_on_start', 'server.database.name', 'server.database.password', 'server.database.port', 'server.database.sqlalchemy.connect_args.application_name', 'server.database.sqlalchemy.connect_args.prepared_statement_cache_size', 'server.database.sqlalchemy.connect_args.search_path', 'server.database.sqlalchemy.connect_args.statement_cache_size', 'server.database.sqlalchemy.connect_args.tls.ca_file', 'server.database.sqlalchemy.connect_args.tls.cert_file', 'server.database.sqlalchemy.connect_args.tls.check_hostname', 'server.database.sqlalchemy.connect_args.tls.enabled', 'server.database.sqlalchemy.connect_args.tls.key_file', 'server.database.sqlalchemy.max_overflow', 'server.database.sqlalchemy.pool_recycle', 'server.database.sqlalchemy.pool_size', 'server.database.sqlalchemy.pool_timeout', 'server.database.timeout', 'server.database.user', 'server.deployment_schedule_max_scheduled_runs', 'server.deployments.concurrency_slot_wait_seconds', 'server.docket.name', 'server.docket.url', 'server.ephemeral.enabled', 'server.ephemeral.startup_timeout_seconds', 'server.events.causal_ordering', 'server.events.expired_bucket_buffer', 'server.events.maximum_event_name_length', 'server.events.maximum_labels_per_resource', 'server.events.maximum_related_resources', 'server.events.maximum_size_bytes', 'server.events.maximum_websocket_backfill', 'server.events.messaging_broker', 'server.events.messaging_cache', 'server.events.proactive_granularity', 'server.events.related_resource_cache_ttl', 'server.events.retention_period', 'server.events.stream_out_enabled', 'server.events.websocket_backfill_page_size', 'server.flow_run_graph.max_artifacts', 'server.flow_run_graph.max_nodes', 'server.log_retryable_errors', 'server.logging_level', 'server.logs.stream_out_enabled', 'server.logs.stream_publishing_enabled', 'server.memo_store_path', 'server.memoize_block_auto_registration', 'server.metrics_enabled', 'server.register_blocks_on_start', 'server.services.cancellation_cleanup.enabled', 'server.services.cancellation_cleanup.loop_seconds', 'server.services.cleanup_reconciler.batch_size', 'server.services.cleanup_reconciler.enabled', 'server.services.cleanup_reconciler.loop_seconds', 'server.services.db_vacuum.batch_size', 'server.services.db_vacuum.enabled', 'server.services.db_vacuum.event_retention_overrides', 'server.services.db_vacuum.loop_seconds', 'server.services.db_vacuum.retention_period', 'server.services.event_logger.enabled', 'server.services.event_persister.batch_size', 'server.services.event_persister.enabled', 'server.services.event_persister.flush_interval', 'server.services.event_persister.max_flush_retries', 'server.services.event_persister.queue_max_size', 'server.services.event_persister.read_batch_size', 'server.services.foreman.deployment_last_polled_timeout_seconds', 'server.services.foreman.enabled', 'server.services.foreman.fallback_heartbeat_interval_seconds', 'server.services.foreman.inactivity_heartbeat_multiple', 'server.services.foreman.loop_seconds', 'server.services.foreman.work_queue_last_polled_timeout_seconds', 'server.services.late_runs.after_seconds', 'server.services.late_runs.enabled', 'server.services.late_runs.loop_seconds', 'server.services.pause_expirations.enabled', 'server.services.pause_expirations.loop_seconds', 'server.services.repossessor.enabled', 'server.services.repossessor.loop_seconds', 'server.services.scheduler.deployment_batch_size', 'server.services.scheduler.enabled', 'server.services.scheduler.insert_batch_size', 'server.services.scheduler.loop_seconds', 'server.services.scheduler.max_runs', 'server.services.scheduler.max_scheduled_time', 'server.services.scheduler.min_runs', 'server.services.scheduler.min_scheduled_time', 'server.services.scheduler.recent_deployments_loop_seconds', 'server.services.task_run_recorder.batch_size', 'server.services.task_run_recorder.enabled', 'server.services.task_run_recorder.flush_interval', 'server.services.task_run_recorder.read_batch_size', 'server.services.triggers.enabled', 'server.services.triggers.pg_notify_heartbeat_interval_seconds', 'server.services.triggers.pg_notify_reconnect_interval_seconds', 'server.services.triggers.read_batch_size', 'server.tasks.max_cache_key_length', 'server.tasks.scheduling.max_retry_queue_size', 'server.tasks.scheduling.max_scheduled_queue_size', 'server.tasks.scheduling.pending_task_timeout', 'server.tasks.tag_concurrency_slot_wait_seconds', 'server.ui.api_url', 'server.ui.enabled', 'server.ui.serve_base', 'server.ui.show_promotional_content', 'server.ui.static_directory', 'server.ui.v2_enabled', 'server.worker_channel.cleanup_completed_idempotency_retention_seconds', 'server.worker_channel.cleanup_lease_seconds', 'server.worker_channel.cleanup_max_delivery_attempts', 'server.worker_channel.cleanup_queue_storage', 'silence_api_url_misconfiguration', 'tasks.default_no_cache', 'tasks.default_persist_result', 'tasks.default_retries', 'tasks.default_retry_delay_seconds', 'tasks.disable_caching', 'tasks.refresh_cache', 'tasks.runner.process_pool_max_workers', 'tasks.runner.thread_pool_max_workers', 'tasks.scheduling.default_storage_block', 'tasks.scheduling.delete_failed_submissions', 'telemetry.enable_resource_metrics', 'telemetry.resource_metrics_interval_seconds', 'testing.test_mode', 'testing.test_setting', 'testing.unit_test_loop_debug', 'testing.unit_test_mode', 'ui_url', 'worker.cancellation_poll_seconds', 'worker.debug_mode', 'worker.enable_cancellation', 'worker.heartbeat_seconds', 'worker.prefetch_seconds', 'worker.query_seconds', 'worker.webserver.host', 'worker.webserver.port'] | Setting, Any] | None` in function `prefect.settings.models.root.Settings.copy_with_update` [bad-argument-type]
+ ERROR src/prefect/context.py:1013:54-70: Argument `dict[Setting, Any]` is not assignable to parameter `updates` with type `Mapping[SettingAccessor | Setting, Any] | None` in function `prefect.settings.models.root.Settings.copy_with_update` [bad-argument-type]
colour (https://github.com/colour-science/colour)
- ERROR colour/plotting/common.py:1329:28-43: Argument `Buffer | Sequence[Buffer | ColourSwatch | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str] | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str` is not assignable to parameter `iterable` with type `Iterable[@_]` in function `list.__init__` [bad-argument-type]
+ ERROR colour/plotting/common.py:1329:28-43: Argument `Buffer | Sequence[ArrayLike | ColourSwatch] | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str` is not assignable to parameter `iterable` with type `Iterable[@_]` in function `list.__init__` [bad-argument-type]
freqtrade (https://github.com/freqtrade/freqtrade)
- ERROR freqtrade/freqai/data_kitchen.py:177:30-43: Argument `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | ndarray[tuple[int], dtype[float64]] | str | Unknown` is not assignable to parameter `data` with type `DataFrame | Index | Iterable[Index | Sequence[Any] | Series | dict[Any, Any] | ndarray[tuple[int]] | tuple[Hashable, ListLikeU]] | Sequence[Any] | Series | dict[Any, Any] | ndarray[tuple[int]] | None` in function `pandas.core.frame.DataFrame.__new__` [bad-argument-type]
+ ERROR freqtrade/freqai/data_kitchen.py:177:30-43: Argument `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | ndarray[tuple[int], dtype[float64]] | str | Unknown` is not assignable to parameter `data` with type `DataFrame | Index | Iterable[ListLikeU | tuple[Hashable, ListLikeU] | dict[Any, Any]] | Sequence[Any] | Series | dict[Any, Any] | ndarray[tuple[int]] | None` in function `pandas.core.frame.DataFrame.__new__` [bad-argument-type]
- ERROR freqtrade/optimize/backtesting.py:432:24-44: Returned type `tuple[Series | Timedelta | Timestamp | bool | bytes | complex | complexfloating | date | datetime | datetime64 | float | floating | int | integer | str | timedelta | timedelta64, Unknown]` is not assignable to declared return type `tuple[float | None, int]` [bad-return]
+ ERROR freqtrade/optimize/backtesting.py:432:24-44: Returned type `tuple[Scalar | Series[S1], Unknown]` is not assignable to declared return type `tuple[float | None, int]` [bad-return]
hydra-zen (https://github.com/mit-ll-responsible-ai/hydra-zen)
- ERROR tests/annotations/declarations.py:929:16-932:6: assert_type(StdBuilds[Unknown], StdBuilds[SupportedPrimitive]) failed [assert-type]
- ERROR tests/annotations/declarations.py:934:16-937:6: assert_type(StdBuilds[Unknown], StdBuilds[SupportedPrimitive]) failed [assert-type]
- ERROR tests/annotations/declarations.py:940:16-943:6: assert_type(PBuilds[Unknown], PBuilds[SupportedPrimitive]) failed [assert-type]
- ERROR tests/annotations/declarations.py:944:16-86: assert_type(PBuilds[Unknown], PBuilds[SupportedPrimitive]) failed [assert-type]
- ERROR tests/annotations/declarations.py:945:16-948:6: assert_type(PBuilds[Unknown], PBuilds[SupportedPrimitive]) failed [assert-type]
- ERROR tests/annotations/declarations.py:951:16-954:6: assert_type(FullBuilds[Unknown] | StdBuilds[Unknown], FullBuilds[SupportedPrimitive] | StdBuilds[SupportedPrimitive]) failed [assert-type]
- ERROR tests/annotations/declarations.py:956:16-959:6: assert_type(PBuilds[Unknown] | StdBuilds[Unknown], PBuilds[SupportedPrimitive] | StdBuilds[SupportedPrimitive]) failed [assert-type]
- ERROR tests/annotations/declarations.py:961:16-966:6: assert_type(PBuilds[Unknown] | StdBuilds[Unknown], PBuilds[SupportedPrimitive] | StdBuilds[SupportedPrimitive]) failed [assert-type]
- ERROR tests/annotations/declarations.py:969:16-978:6: assert_type(FullBuilds[Unknown] | PBuilds[Unknown] | StdBuilds[Unknown], FullBuilds[SupportedPrimitive] | PBuilds[SupportedPrimitive] | StdBuilds[SupportedPrimitive]) failed [assert-type]
- ERROR tests/annotations/declarations.py:980:16-989:6: assert_type(FullBuilds[Unknown] | PBuilds[Unknown] | StdBuilds[Unknown], FullBuilds[SupportedPrimitive] | PBuilds[SupportedPrimitive] | StdBuilds[SupportedPrimitive]) failed [assert-type]
+ ERROR tests/annotations/declarations.py:929:16-932:6: assert_type(StdBuilds[Unknown], StdBuilds[ByteString | Path | PosixPath | WindowsPath | bool | float | int | str | None | (...) -> Any | DataClass_ | DictConfig | Enum | ListConfig | Partial[Any] | SimpleNamespace | complex | range | set[Any] | timedelta | EmptyDict | Mapping[Any, SupportedPrimitive] | Sequence[SupportedPrimitive] | frozenset[SupportedPrimitive] | tuple[SupportedPrimitive, ...]]) failed [assert-type]
+ ERROR tests/annotations/declarations.py:934:16-937:6: assert_type(StdBuilds[Unknown], StdBuilds[ByteString | Path | PosixPath | WindowsPath | bool | float | int | str | None | (...) -> Any | DataClass_ | DictConfig | Enum | ListConfig | Partial[Any] | SimpleNamespace | complex | range | set[Any] | timedelta | EmptyDict | Mapping[Any, SupportedPrimitive] | Sequence[SupportedPrimitive] | frozenset[SupportedPrimitive] | tuple[SupportedPrimitive, ...]]) failed [assert-type]
+ ERROR tests/annotations/declarations.py:940:16-943:6: assert_type(PBuilds[Unknown], PBuilds[ByteString | Path | PosixPath | WindowsPath | bool | float | int | str | None | (...) -> Any | DataClass_ | DictConfig | Enum | ListConfig | Partial[Any] | SimpleNamespace | complex | range | set[Any] | timedelta | EmptyDict | Mapping[Any, SupportedPrimitive] | Sequence[SupportedPrimitive] | frozenset[SupportedPrimitive] | tuple[SupportedPrimitive, ...]]) failed [assert-type]
+ ERROR tests/annotations/declarations.py:944:16-86: assert_type(PBuilds[Unknown], PBuilds[ByteString | Path | PosixPath | WindowsPath | bool | float | int | str | None | (...) -> Any | DataClass_ | DictConfig | Enum | ListConfig | Partial[Any] | SimpleNamespace | complex | range | set[Any] | timedelta | EmptyDict | Mapping[Any, SupportedPrimitive] | Sequence[SupportedPrimitive] | frozenset[SupportedPrimitive] | tuple[SupportedPrimitive, ...]]) failed [assert-type]
+ ERROR tests/annotations/declarations.py:945:16-948:6: assert_type(PBuilds[Unknown], PBuilds[ByteString | Path | PosixPath | WindowsPath | bool | float | int | str | None | (...) -> Any | DataClass_ | DictConfig | Enum | ListConfig | Partial[Any] | SimpleNamespace | complex | range | set[Any] | timedelta | EmptyDict | Mapping[Any, SupportedPrimitive] | Sequence[SupportedPrimitive] | frozenset[SupportedPrimitive] | tuple[SupportedPrimitive, ...]]) failed [assert-type]
+ ERROR tests/annotations/declarations.py:951:16-954:6: assert_type(FullBuilds[Unknown] | StdBuilds[Unknown], FullBuilds[ByteString | Path | PosixPath | WindowsPath | bool | float | int | str | None | (...) -> Any | DataClass_ | DictConfig | Enum | ListConfig | Partial[Any] | SimpleNamespace | complex | range | set[Any] | timedelta | EmptyDict | Mapping[Any, SupportedPrimitive] | Sequence[SupportedPrimitive] | frozenset[SupportedPrimitive] | tuple[SupportedPrimitive, ...]] | StdBuilds[ByteString | Path | PosixPath | WindowsPath | bool | float | int | str | None | (...) -> Any | DataClass_ | DictConfig | Enum | ListConfig | Partial[Any] | SimpleNamespace | complex | range | set[Any] | timedelta | EmptyDict | Mapping[Any, SupportedPrimitive] | Sequence[SupportedPrimitive] | frozenset[SupportedPrimitive] | tuple[SupportedPrimitive, ...]]) failed [assert-type]
+ ERROR tests/annotations/declarations.py:956:16-959:6: assert_type(PBuilds[Unknown] | StdBuilds[Unknown], PBuilds[ByteString | Path | PosixPath | WindowsPath | bool | float | int | str | None | (...) -> Any | DataClass_ | DictConfig | Enum | ListConfig | Partial[Any] | SimpleNamespace | complex | range | set[Any] | timedelta | EmptyDict | Mapping[Any, SupportedPrimitive] | Sequence[SupportedPrimitive] | frozenset[SupportedPrimitive] | tuple[SupportedPrimitive, ...]] | StdBuilds[ByteString | Path | PosixPath | WindowsPath | bool | float | int | str | None | (...) -> Any | DataClass_ | DictConfig | Enum | ListConfig | Partial[Any] | SimpleNamespace | complex | range | set[Any] | timedelta | EmptyDict | Mapping[Any, SupportedPrimitive] | Sequence[SupportedPrimitive] | frozenset[SupportedPrimitive] | tuple[SupportedPrimitive, ...]]) failed [assert-type]
+ ERROR tests/annotations/declarations.py:961:16-966:6: assert_type(PBuilds[Unknown] | StdBuilds[Unknown], PBuilds[ByteString | Path | PosixPath | WindowsPath | bool | float | int | str | None | (...) -> Any | DataClass_ | DictConfig | Enum | ListConfig | Partial[Any] | SimpleNamespace | complex | range | set[Any] | timedelta | EmptyDict | Mapping[Any, SupportedPrimitive] | Sequence[SupportedPrimitive] | frozenset[SupportedPrimitive] | tuple[SupportedPrimitive, ...]] | StdBuilds[ByteString | Path | PosixPath | WindowsPath | bool | float | int | str | None | (...) -> Any | DataClass_ | DictConfig | Enum | ListConfig | Partial[Any] | SimpleNamespace | complex | range | set[Any] | timedelta | EmptyDict | Mapping[Any, SupportedPrimitive] | Sequence[SupportedPrimitive] | frozenset[SupportedPrimitive] | tuple[SupportedPrimitive, ...]]) failed [assert-type]
+ ERROR tests/annotations/declarations.py:969:16-978:6: assert_type(FullBuilds[Unknown] | PBuilds[Unknown] | StdBuilds[Unknown], FullBuilds[ByteString | Path | PosixPath | WindowsPath | bool | float | int | str | None | (...) -> Any | DataClass_ | DictConfig | Enum | ListConfig | Partial[Any] | SimpleNamespace | complex | range | set[Any] | timedelta | EmptyDict | Mapping[Any, SupportedPrimitive] | Sequence[SupportedPrimitive] | frozenset[SupportedPrimitive] | tuple[SupportedPrimitive, ...]] | PBuilds[ByteString | Path | PosixPath | WindowsPath | bool | float | int | str | None | (...) -> Any | DataClass_ | DictConfig | Enum | ListConfig | Partial[Any] | SimpleNamespace | complex | range | set[Any] | timedelta | EmptyDict | Mapping[Any, SupportedPrimitive] | Sequence[SupportedPrimitive] | frozenset[SupportedPrimitive] | tuple[SupportedPrimitive, ...]] | StdBuilds[ByteString | Path | PosixPath | WindowsPath | bool | float | int | str | None | (...) -> Any | DataClass_ | DictConfig | Enum | ListConfig | Partial[Any] | SimpleNamespace | complex | range | set[Any] | timedelta | EmptyDict | Mapping[Any, SupportedPrimitive] | Sequence[SupportedPrimitive] | frozenset[SupportedPrimitive] | tuple[SupportedPrimitive, ...]]) failed [assert-type]
+ ERROR tests/annotations/declarations.py:980:16-989:6: assert_type(FullBuilds[Unknown] | PBuilds[Unknown] | StdBuilds[Unknown], FullBuilds[ByteString | Path | PosixPath | WindowsPath | bool | float | int | str | None | (...) -> Any | DataClass_ | DictConfig | Enum | ListConfig | Partial[Any] | SimpleNamespace | complex | range | set[Any] | timedelta | EmptyDict | Mapping[Any, SupportedPrimitive] | Sequence[SupportedPrimitive] | frozenset[SupportedPrimitive] | tuple[SupportedPrimitive, ...]] | PBuilds[ByteString | Path | PosixPath | WindowsPath | bool | float | int | str | None | (...) -> Any | DataClass_ | DictConfig | Enum | ListConfig | Partial[Any] | SimpleNamespace | complex | range | set[Any] | timedelta | EmptyDict | Mapping[Any, SupportedPrimitive] | Sequence[SupportedPrimitive] | frozenset[SupportedPrimitive] | tuple[SupportedPrimitive, ...]] | StdBuilds[ByteString | Path | PosixPath | WindowsPath | bool | float | int | str | None | (...) -> Any | DataClass_ | DictConfig | Enum | ListConfig | Partial[Any] | SimpleNamespace | complex | range | set[Any] | timedelta | EmptyDict | Mapping[Any, SupportedPrimitive] | Sequence[SupportedPrimitive] | frozenset[SupportedPrimitive] | tuple[SupportedPrimitive, ...]]) failed [assert-type]
- ERROR src/hydra_zen/structured_configs/_implementations.py:1326:20-1342:14: Returned type `dict[HydraSupportedType, HydraSupportedType]` is not assignable to declared return type `_T` [bad-return]
+ ERROR src/hydra_zen/structured_configs/_implementations.py:1326:20-1342:14: Returned type `dict[ByteString | Path | PosixPath | WindowsPath | bool | float | int | str | None | DataClass_ | DictConfig | Enum | ListConfig | Mapping[Any, HydraSupportedType] | Sequence[HydraSupportedType] | _MISSING_TYPE | tuple[HydraSupportedType, ...] | type[DataClass_], ByteString | Path | PosixPath | WindowsPath | bool | float | int | str | None | DataClass_ | DictConfig | Enum | ListConfig | Mapping[Any, HydraSupportedType] | Sequence[HydraSupportedType] | _MISSING_TYPE | tuple[HydraSupportedType, ...] | type[DataClass_]]` is not assignable to declared return type `_T` [bad-return]
ibis (https://github.com/ibis-project/ibis)
- ERROR ibis/backends/tests/test_client.py:464:31-42: Expected a type form, got instance of `(pairs: Iterable[tuple[str, IntoDtype]] | Mapping[str, IntoDtype] | Schema | None = None, /, *, names: Iterable[str] | None = None, types: Iterable[DataType | str] | None = None) -> Schema` [not-a-type]
+ ERROR ibis/backends/tests/test_client.py:464:31-42: Expected a type form, got instance of `(pairs: IntoSchema | None = None, /, *, names: Iterable[str] | None = None, types: Iterable[DataType | str] | None = None) -> Schema` [not-a-type]
aiohttp (https://github.com/aio-libs/aiohttp)
- ERROR aiohttp/client.py:923:13-23: Implementation signature `(self: Self@ClientSession, url: StrOrURL, *, method: str = ..., protocols: Collection[str] = ..., timeout: ClientWSTimeout | _SENTINEL = ..., receive_timeout: float | None = None, autoclose: bool = True, autoping: bool = True, heartbeat: float | None = None, origin: str | None = None, params: Query = None, headers: CIMultiDict[str] | CIMultiDictProxy[str] | Iterable[tuple[istr | str, str]] | Mapping[istr, str] | Mapping[str, str] | None = None, proxy: URL | str | None = None, ssl: Fingerprint | SSLContext | bool = True, server_hostname: str | None = None, proxy_headers: CIMultiDict[str] | CIMultiDictProxy[str] | Iterable[tuple[istr | str, str]] | Mapping[istr, str] | Mapping[str, str] | None = None, compress: int = 0, max_msg_size: int = ..., decode_text: bool = True) -> _BaseRequestContextManager[ClientWebSocketResponse[bool]]` does not accept all arguments that overload signature `(self: Self@ClientSession, url: StrOrURL, *, decode_text: Literal[True] = ..., **kwargs: Unpack[_WSConnectOptions]) -> _BaseRequestContextManager[ClientWebSocketResponse]` accepts [inconsistent-overload]
+ ERROR aiohttp/client.py:923:13-23: Implementation signature `(self: Self@ClientSession, url: StrOrURL, *, method: str = ..., protocols: Collection[str] = ..., timeout: ClientWSTimeout | _SENTINEL = ..., receive_timeout: float | None = None, autoclose: bool = True, autoping: bool = True, heartbeat: float | None = None, origin: str | None = None, params: Query = None, headers: LooseHeaders | None = None, proxy: URL | str | None = None, ssl: Fingerprint | SSLContext | bool = True, server_hostname: str | None = None, proxy_headers: LooseHeaders | None = None, compress: int = 0, max_msg_size: int = ..., decode_text: bool = True) -> _BaseRequestContextManager[ClientWebSocketResponse[bool]]` does not accept all arguments that overload signature `(self: Self@ClientSession, url: StrOrURL, *, decode_text: Literal[True] = ..., **kwargs: Unpack[_WSConnectOptions]) -> _BaseRequestContextManager[ClientWebSocketResponse]` accepts [inconsistent-overload]
- ERROR aiohttp/client.py:932:13-23: Implementation signature `(self: Self@ClientSession, url: StrOrURL, *, method: str = ..., protocols: Collection[str] = ..., timeout: ClientWSTimeout | _SENTINEL = ..., receive_timeout: float | None = None, autoclose: bool = True, autoping: bool = True, heartbeat: float | None = None, origin: str | None = None, params: Query = None, headers: CIMultiDict[str] | CIMultiDictProxy[str] | Iterable[tuple[istr | str, str]] | Mapping[istr, str] | Mapping[str, str] | None = None, proxy: URL | str | None = None, ssl: Fingerprint | SSLContext | bool = True, server_hostname: str | None = None, proxy_headers: CIMultiDict[str] | CIMultiDictProxy[str] | Iterable[tuple[istr | str, str]] | Mapping[istr, str] | Mapping[str, str] | None = None, compress: int = 0, max_msg_size: int = ..., decode_text: bool = True) -> _BaseRequestContextManager[ClientWebSocketResponse[bool]]` does not accept all arguments that overload signature `(self: Self@ClientSession, url: StrOrURL, *, decode_text: Literal[False], **kwargs: Unpack[_WSConnectOptions]) -> _BaseRequestContextManager[ClientWebSocketResponse[Literal[False]]]` accepts [inconsistent-overload]
+ ERROR aiohttp/client.py:932:13-23: Implementation signature `(self: Self@ClientSession, url: StrOrURL, *, method: str = ..., protocols: Collection[str] = ..., timeout: ClientWSTimeout | _SENTINEL = ..., receive_timeout: float | None = None, autoclose: bool = True, autoping: bool = True, heartbeat: float | None = None, origin: str | None = None, params: Query = None, headers: LooseHeaders | None = None, proxy: URL | str | None = None, ssl: Fingerprint | SSLContext | bool = True, server_hostname: str | None = None, proxy_headers: LooseHeaders | None = None, compress: int = 0, max_msg_size: int = ..., decode_text: bool = True) -> _BaseRequestContextManager[ClientWebSocketResponse[bool]]` does not accept all arguments that overload signature `(self: Self@ClientSession, url: StrOrURL, *, decode_text: Literal[False], **kwargs: Unpack[_WSConnectOptions]) -> _BaseRequestContextManager[ClientWebSocketResponse[Literal[False]]]` accepts [inconsistent-overload]
- ERROR aiohttp/client.py:941:13-23: Implementation signature `(self: Self@ClientSession, url: StrOrURL, *, method: str = ..., protocols: Collection[str] = ..., timeout: ClientWSTimeout | _SENTINEL = ..., receive_timeout: float | None = None, autoclose: bool = True, autoping: bool = True, heartbeat: float | None = None, origin: str | None = None, params: Query = None, headers: CIMultiDict[str] | CIMultiDictProxy[str] | Iterable[tuple[istr | str, str]] | Mapping[istr, str] | Mapping[str, str] | None = None, proxy: URL | str | None = None, ssl: Fingerprint | SSLContext | bool = True, server_hostname: str | None = None, proxy_headers: CIMultiDict[str] | CIMultiDictProxy[str] | Iterable[tuple[istr | str, str]] | Mapping[istr, str] | Mapping[str, str] | None = None, compress: int = 0, max_msg_size: int = ..., decode_text: bool = True) -> _BaseRequestContextManager[ClientWebSocketResponse[bool]]` does not accept all arguments that overload signature `(self: Self@ClientSession, url: StrOrURL, *, decode_text: bool = ..., **kwargs: Unpack[_WSConnectOptions]) -> _BaseRequestContextManager[ClientWebSocketResponse[bool]]` accepts [inconsistent-overload]
+ ERROR aiohttp/client.py:941:13-23: Implementation signature `(self: Self@ClientSession, url: StrOrURL, *, method: str = ..., protocols: Collection[str] = ..., timeout: ClientWSTimeout | _SENTINEL = ..., receive_timeout: float | None = None, autoclose: bool = True, autoping: bool = True, heartbeat: float | None = None, origin: str | None = None, params: Query = None, headers: LooseHeaders | None = None, proxy: URL | str | None = None, ssl: Fingerprint | SSLContext | bool = True, server_hostname: str | None = None, proxy_headers: LooseHeaders | None = None, compress: int = 0, max_msg_size: int = ..., decode_text: bool = True) -> _BaseRequestContextManager[ClientWebSocketResponse[bool]]` does not accept all arguments that overload signature `(self: Self@ClientSession, url: StrOrURL, *, decode_text: bool = ..., **kwargs: Unpack[_WSConnectOptions]) -> _BaseRequestContextManager[ClientWebSocketResponse[bool]]` accepts [inconsistent-overload]
- ERROR aiohttp/client.py:998:19-30: Implementation signature `(self: Self@ClientSession, url: StrOrURL, *, method: str = ..., protocols: Collection[str] = ..., timeout: ClientWSTimeout | _SENTINEL = ..., receive_timeout: float | None = None, autoclose: bool = True, autoping: bool = True, heartbeat: float | None = None, origin: str | None = None, params: Query = None, headers: CIMultiDict[str] | CIMultiDictProxy[str] | Iterable[tuple[istr | str, str]] | Mapping[istr, str] | Mapping[str, str] | None = None, proxy: URL | str | None = None, ssl: Fingerprint | SSLContext | bool = True, server_hostname: str | None = None, proxy_headers: CIMultiDict[str] | CIMultiDictProxy[str] | Iterable[tuple[istr | str, str]] | Mapping[istr, str] | Mapping[str, str] | None = None, compress: int = 0, max_msg_size: int = ..., decode_text: bool = True) -> Coroutine[Unknown, Unknown, ClientWebSocketResponse[bool]]` does not accept all arguments that overload signature `(self: Self@ClientSession, url: StrOrURL, *, decode_text: Literal[True] = ..., **kwargs: Unpack[_WSConnectOptions]) -> Coroutine[Unknown, Unknown, ClientWebSocketResponse]` accepts [inconsistent-overload]
+ ERROR aiohttp/client.py:998:19-30: Implementation signature `(self: Self@ClientSession, url: StrOrURL, *, method: str = ..., protocols: Collection[str] = ..., timeout: ClientWSTimeout | _SENTINEL = ..., receive_timeout: float | None = None, autoclose: bool = True, autoping: bool = True, heartbeat: float | None = None, origin: str | None = None, params: Query = None, headers: LooseHeaders | None = None, proxy: URL | str | None = None, ssl: Fingerprint | SSLContext | bool = True, server_hostname: str | None = None, proxy_headers: LooseHeaders | None = None, compress: int = 0, max_msg_size: int = ..., decode_text: bool = True) -> Coroutine[Unknown, Unknown, ClientWebSocketResponse[bool]]` does not accept all arguments that overload signature `(self: Self@ClientSession, url: StrOrURL, *, decode_text: Literal[True] = ..., **kwargs: Unpack[_WSConnectOptions]) -> Coroutine[Unknown, Unknown, ClientWebSocketResponse]` accepts [inconsistent-overload]
- ERROR aiohttp/client.py:1007:19-30: Implementation signature `(self: Self@ClientSession, url: StrOrURL, *, method: str = ..., protocols: Collection[str] = ..., timeout: ClientWSTimeout | _SENTINEL = ..., receive_timeout: float | None = None, autoclose: bool = True, autoping: bool = True, heartbeat: float | None = None, origin: str | None = None, params: Query = None, headers: CIMultiDict[str] | CIMultiDictProxy[str] | Iterable[tuple[istr | str, str]] | Mapping[istr, str] | Mapping[str, str] | None = None, proxy: URL | str | None = None, ssl: Fingerprint | SSLContext | bool = True, server_hostname: str | None = None, proxy_headers: CIMultiDict[str] | CIMultiDictProxy[str] | Iterable[tuple[istr | str, str]] | Mapping[istr, str] | Mapping[str, str] | None = None, compress: int = 0, max_msg_size: int = ..., decode_text: bool = True) -> Coroutine[Unknown, Unknown, ClientWebSocketResponse[bool]]` does not accept all arguments that overload signature `(self: Self@ClientSession, url: StrOrURL, *, decode_text: Literal[False], **kwargs: Unpack[_WSConnectOptions]) -> Coroutine[Unknown, Unknown, ClientWebSocketResponse[Literal[False]]]` accepts [inconsistent-overload]
+ ERROR aiohttp/client.py:1007:19-30: Implementation signature `(self: Self@ClientSession, url: StrOrURL, *, method: str = ..., protocols: Collection[str] = ..., timeout: ClientWSTimeout | _SENTINEL = ..., receive_timeout: float | None = None, autoclose: bool = True, autoping: bool = True, heartbeat: float | None = None, origin: str | None = None, params: Query = None, headers: LooseHeaders | None = None, proxy: URL | str | None = None, ssl: Fingerprint | SSLContext | bool = True, server_hostname: str | None = None, proxy_headers: LooseHeaders | None = None, compress: int = 0, max_msg_size: int = ..., decode_text: bool = True) -> Coroutine[Unknown, Unknown, ClientWebSocketResponse[bool]]` does not accept all arguments that overload signature `(self: Self@ClientSession, url: StrOrURL, *, decode_text: Literal[False], **kwargs: Unpack[_WSConnectOptions]) -> Coroutine[Unknown, Unknown, ClientWebSocketResponse[Literal[False]]]` accepts [inconsistent-overload]
- ERROR aiohttp/client.py:1016:19-30: Implementation signature `(self: Self@ClientSession, url: StrOrURL, *, method: str = ..., protocols: Collection[str] = ..., timeout: ClientWSTimeout | _SENTINEL = ..., receive_timeout: float | None = None, autoclose: bool = True, autoping: bool = True, heartbeat: float | None = None, origin: str | None = None, params: Query = None, headers: CIMultiDict[str] | CIMultiDictProxy[str] | Iterable[tuple[istr | str, str]] | Mapping[istr, str] | Mapping[str, str] | None = None, proxy: URL | str | None = None, ssl: Fingerprint | SSLContext | bool = True, server_hostname: str | None = None, proxy_headers: CIMultiDict[str] | CIMultiDictProxy[str] | Iterable[tuple[istr | str, str]] | Mapping[istr, str] | Mapping[str, str] | None = None, compress: int = 0, max_msg_size: int = ..., decode_text: bool = True) -> Coroutine[Unknown, Unknown, ClientWebSocketResponse[bool]]` does not accept all arguments that overload signature `(self: Self@ClientSession, url: StrOrURL, *, decode_text: bool = ..., **kwargs: Unpack[_WSConnectOptions]) -> Coroutine[Unknown, Unknown, ClientWebSocketResponse[bool]]` accepts [inconsistent-overload]
+ ERROR aiohttp/client.py:1016:19-30: Implementation signature `(self: Self@ClientSession, url: StrOrURL, *, method: str = ..., protocols: Collection[str] = ..., timeout: ClientWSTimeout | _SENTINEL = ..., receive_timeout: float | None = None, autoclose: bool = True, autoping: bool = True, heartbeat: float | None = None, origin: str | None = None, params: Query = None, headers: LooseHeaders | None = None, proxy: URL | str | None = None, ssl: Fingerprint | SSLContext | bool = True, server_hostname: str | None = None, proxy_headers: LooseHeaders | None = None, compress: int = 0, max_msg_size: int = ..., decode_text: bool = True) -> Coroutine[Unknown, Unknown, ClientWebSocketResponse[bool]]` does not accept all arguments that overload signature `(self: Self@ClientSession, url: StrOrURL, *, decode_text: bool = ..., **kwargs: Unpack[_WSConnectOptions]) -> Coroutine[Unknown, Unknown, ClientWebSocketResponse[bool]]` accepts [inconsistent-overload]
static-frame (https://github.com/static-frame/static-frame)
- ERROR static_frame/core/container_util.py:1720:13-29: Argument `list[ndarray] | list[ndarray[Any, Any]]` is not assignable to parameter `labels` with type `Iterable[Hashable | Sequence[TLabel] | builtins.bool | numpy.bool | bytes | complex | date | datetime | datetime64 | float | inexact | int | integer | str | timedelta64 | tuple[TLabel, ...] | None]` in function `static_frame.core.index_base.IndexBase.from_labels` [bad-argument-type]
+ ERROR static_frame/core/container_util.py:1720:13-29: Argument `list[ndarray] | list[ndarray[Any, Any]]` is not assignable to parameter `labels` with type `Iterable[TLabel | Sequence[TLabel]]` in function `static_frame.core.index_base.IndexBase.from_labels` [bad-argument-type]
- ERROR static_frame/core/frame.py:4717:17-4719:40: `Hashable | builtins.bool | numpy.bool | bytes | complex | date | datetime | datetime64 | float | inexact | int | integer | str | timedelta64 | tuple[str, ...] | tuple[TLabel, ...] | None` is not assignable to `tuple[TName]` [bad-assignment]
+ ERROR static_frame/core/frame.py:4717:17-4719:40: `Hashable | builtins.bool | numpy.bool | bytes | complex | date | datetime | datetime64 | float | inexact | int | integer | str | timedelta64 | tuple[str, ...] | tuple[TLabel, ...] | None` is not assignable to `tuple[TLabel]` [bad-assignment]
- ERROR static_frame/core/frame.py:10475:19-10481:14: `tuple[int | integer | list[int] | ndarray[Any, Any] | slice[Any, Any, Any] | None, Frame | Hashable | IndexBase | Series | builtins.bool | numpy.bool | bytes | complex | date | datetime | datetime64 | float | inexact | int | integer | list[Hashable | builtins.bool | numpy.bool | bytes | complex | date | datetime | datetime64 | float | inexact | int | integer | str | timedelta64 | tuple[TLabel, ...] | None] | list[int] | list[str] | ndarray[Any, Any] | slice[Any, Any, Any] | str | timedelta64 | tuple[TLabel, ...] | None]` is not assignable to variable `key` with type `tuple[TILocSelector, TILocSelector]` [bad-assignment]
+ ERROR static_frame/core/frame.py:10475:19-10481:14: `tuple[int | integer | list[int] | ndarray[Any, Any] | slice[Any, Any, Any] | None, TLocSelector | Frame]` is not assignable to variable `key` with type `tuple[TILocSelector, TILocSelector]` [bad-assignment]
- ERROR static_frame/test/property/strategies.py:979:21-44: Argument `(cls: type[Index], labels: Iterable[TLabel], /, *, name: TName = None) -> Index` is not assignable to parameter `cls` with type `(...) -> IndexHierarchy` in function `get_index_hierarchy` [bad-argument-type]
+ ERROR static_frame/test/property/strategies.py:979:21-44: Argument `(cls: type[Index], labels: Iterable[TLabel], /, *, name: TLabel = None) -> Index` is not assignable to parameter `cls` with type `(...) -> IndexHierarchy` in function `get_index_hierarchy` [bad-argument-type]
- ERROR static_frame/test/unit/test_store_zip.py:342:13-59: Cannot yield from `Generator[tuple[TName, Frame]]`, which is not assignable to declared return type `Generator[tuple[str, Frame], None, Unknown]` [invalid-yield]
+ ERROR static_frame/test/unit/test_store_zip.py:342:13-59: Cannot yield from `Generator[tuple[TLabel, Frame]]`, which is not assignable to declared return type `Generator[tuple[str, Frame], None, Unknown]` [invalid-yield]
- (a: Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str | None, axis: None = None, out: None = None, keepdims: Literal[0, False] | _NoValueType = ..., *, where: _NestedSequence[_SupportsArray[dtype[numpy.bool]]] | _NestedSequence[builtins.bool] | _NoValueType | _SupportsArray[dtype[numpy.bool]] | builtins.bool = ...) -> numpy.bool
- (a: Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str | None, axis: int | tuple[int, ...] | None = None, out: None = None, keepdims: _NoValueType | builtins.bool | numpy.bool = ..., *, where: _NestedSequence[_SupportsArray[dtype[numpy.bool]]] | _NestedSequence[builtins.bool] | _NoValueType | _SupportsArray[dtype[numpy.bool]] | builtins.bool = ...) -> Any
- [_ArrayT: ndarray[Any, Any]](a: Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str | None, axis: int | tuple[int, ...] | None, out: _ArrayT, keepdims: _NoValueType | builtins.bool | numpy.bool = ..., *, where: _NestedSequence[_SupportsArray[dtype[numpy.bool]]] | _NestedSequence[builtins.bool] | _NoValueType | _SupportsArray[dtype[numpy.bool]] | builtins.bool = ...) -> _ArrayT
- [_ArrayT: ndarray[Any, Any]](a: Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str | None, axis: int | tuple[int, ...] | None = None, *, out: _ArrayT, keepdims: _NoValueType | builtins.bool | numpy.bool = ..., where: _NestedSequence[_SupportsArray[dtype[numpy.bool]]] | _NestedSequence[builtins.bool] | _NoValueType | _SupportsArray[dtype[numpy.bool]] | builtins.bool = ...) -> _ArrayT
+ (a: ArrayLike | None, axis: None = None, out: None = None, keepdims: Literal[0, False] | _NoValueType = ..., *, where: _ArrayLikeBool_co | _NoValueType = ...) -> numpy.bool
+ (a: ArrayLike | None, axis: int | tuple[int, ...] | None = None, out: None = None, keepdims: _NoValueType | builtins.bool | numpy.bool = ..., *, where: _ArrayLikeBool_co | _NoValueType = ...) -> Any
+ [_ArrayT: ndarray[Any, Any]](a: ArrayLike | None, axis: int | tuple[int, ...] | None, out: _ArrayT, keepdims: _NoValueType | builtins.bool | numpy.bool = ..., *, where: _ArrayLikeBool_co | _NoValueType = ...) -> _ArrayT
+ [_ArrayT: ndarray[Any, Any]](a: ArrayLike | None, axis: int | tuple[int, ...] | None = None, *, out: _ArrayT, keepdims: _NoValueType | builtins.bool | numpy.bool = ..., where: _ArrayLikeBool_co | _NoValueType = ...) -> _ArrayT
pandas (https://github.com/pandas-dev/pandas)
- ERROR pandas/core/frame.py:18579:35-18585:14: No matching overload found for function `DataFrame.quantile` called with arguments: (list[ExtensionArray | Index | Sequence[float] | Series | float | ndarray], axis=int, numeric_only=bool, interpolation=Literal['higher', 'linear', 'lower', 'midpoint', 'nearest'], method=Literal['single', 'table']) [no-matching-overload]
+ ERROR pandas/core/frame.py:18579:35-18585:14: No matching overload found for function `DataFrame.quantile` called with arguments: (list[AnyArrayLike | float | Sequence[float]], axis=int, numeric_only=bool, interpolation=Literal['higher', 'linear', 'lower', 'midpoint', 'nearest'], method=Literal['single', 'table']) [no-matching-overload]
- ERROR pandas/io/parsers/readers.py:317:5-13: Implementation signature `(filepath_or_buffer: PathLike[str] | ReadCsvBuffer[bytes] | ReadCsvBuffer[str] | str, *, sep: _NoDefault | str | None = _NoDefault.no_default, delimiter: _NoDefault | str | None = None, header: Literal['infer'] | Sequence[int] | int | None = 'infer', names: Sequence[Hashable] | _NoDefault | None = _NoDefault.no_default, index_col: Literal[False] | Hashable | Sequence[Hashable] | None = None, usecols: UsecolsArgType = None, dtype: ExtensionDtype | Mapping[Hashable, ExtensionDtype | dtype | str | type[bool | complex | object | str]] | dtype | str | type[bool | complex | object | str] | None = None, engine: Literal['c', 'pyarrow', 'python', 'python-fwf'] | None = None, converters: Mapping[HashableT, (...) -> Unknown] | None = None, true_values: list[Unknown] | None = None, false_values: list[Unknown] | None = None, skipinitialspace: bool = False, skiprows: ((Hashable) -> bool) | int | list[int] | None = None, skipfooter: int = 0, nrows: int | None = None, na_values: Hashable | Iterable[Hashable] | Mapping[Hashable, Iterable[Hashable]] | None = None, keep_default_na: bool = True, na_filter: bool = True, skip_blank_lines: bool = True, parse_dates: Sequence[Hashable] | bool | None = None, date_format: dict[Hashable, str] | str | None = None, dayfirst: bool = False, cache_dates: bool = True, iterator: bool = False, chunksize: int | None = None, compression: CompressionOptions = 'infer', thousands: str | None = None, decimal: str = '.', lineterminator: str | None = None, quotechar: str = '"', quoting: int = 0, doublequote: bool = True, escapechar: str | None = None, comment: str | None = None, encoding: str | None = None, encoding_errors: str | None = 'strict', dialect: Dialect | str | type[Dialect] | None = None, on_bad_lines: str = 'error', low_memory: bool = True, memory_map: bool = False, float_precision: Literal['high', 'legacy', 'round_trip'] | None = None, storage_options: dict[str, Any] | None = None, dtype_backend: Literal['numpy_nullable', 'pyarrow'] | _NoDefault = _NoDefault.no_default) -> DataFrame | TextFileReader` does not accept all arguments that overload signature `(filepath_or_buffer: PathLike[str] | ReadCsvBuffer[bytes] | ReadCsvBuffer[str] | str, *, iterator: Literal[True], chunksize: int | None = ..., **kwds: Unpack[_read_shared[HashableT]]) -> TextFileReader` accepts [inconsistent-overload]
+ ERROR pandas/io/parsers/readers.py:317:5-13: Implementation signature `(filepath_or_buffer: PathLike[str] | ReadCsvBuffer[bytes] | ReadCsvBuffer[str] | str, *, sep: _NoDefault | str | None = _NoDefault.no_default, delimiter: _NoDefault | str | None = None, header: Literal['infer'] | Sequence[int] | int | None = 'infer', names: Sequence[Hashable] | _NoDefault | None = _NoDefault.no_default, index_col: Literal[False] | Hashable | Sequence[Hashable] | None = None, usecols: UsecolsArgType = None, dtype: DtypeArg | None = None, engine: CSVEngine | None = None, converters: Mapping[HashableT, (...) -> Unknown] | None = None, true_values: list[Unknown] | None = None, false_values: list[Unknown] | None = None, skipinitialspace: bool = False, skiprows: ((Hashable) -> bool) | int | list[int] | None = None, skipfooter: int = 0, nrows: int | None = None, na_values: Hashable | Iterable[Hashable] | Mapping[Hashable, Iterable[Hashable]] | None = None, keep_default_na: bool = True, na_filter: bool = True, skip_blank_lines: bool = True, parse_dates: Sequence[Hashable] | bool | None = None, date_format: dict[Hashable, str] | str | None = None, dayfirst: bool = False, cache_dates: bool = True, iterator: bool = False, chunksize: int | None = None, compression: CompressionOptions = 'infer', thousands: str | None = None, decimal: str = '.', lineterminator: str | None = None, quotechar: str = '"', quoting: int = 0, doublequote: bool = True, escapechar: str | None = None, comment: str | None = None, encoding: str | None = None, encoding_errors: str | None = 'strict', dialect: Dialect | str | type[Dialect] | None = None, on_bad_lines: str = 'error', low_memory: bool = True, memory_map: bool = False, float_precision: Literal['high', 'legacy', 'round_trip'] | None = None, storage_options: dict[str, Any] | None = None, dtype_backend: Literal['numpy_nullable', 'pyarrow'] | _NoDefault = _NoDefault.no_default) -> DataFrame | TextFileReader` does not accept all arguments that overload signature `(filepath_or_buffer: PathLike[str] | ReadCsvBuffer[bytes] | ReadCsvBuffer[str] | str, *, iterator: Literal[True], chunksize: int | None = ..., **kwds: Unpack[_read_shared[HashableT]]) -> TextFileReader` accepts [inconsistent-overload]
- ERROR pandas/io/parsers/readers.py:327:5-13: Implementation signature `(filepath_or_buffer: PathLike[str] | ReadCsvBuffer[bytes] | ReadCsvBuffer[str] | str, *, sep: _NoDefault | str | None = _NoDefault.no_default, delimiter: _NoDefault | str | None = None, header: Literal['infer'] | Sequence[int] | int | None = 'infer', names: Sequence[Hashable] | _NoDefault | None = _NoDefault.no_default, index_col: Literal[False] | Hashable | Sequence[Hashable] | None = None, usecols: UsecolsArgType = None, dtype: ExtensionDtype | Mapping[Hashable, ExtensionDtype | dtype | str | type[bool | complex | object | str]] | dtype | str | type[bool | complex | object | str] | None = None, engine: Literal['c', 'pyarrow', 'python', 'python-fwf'] | None = None, converters: Mapping[HashableT, (...) -> Unknown] | None = None, true_values: list[Unknown] | None = None, false_values: list[Unknown] | None = None, skipinitialspace: bool = False, skiprows: ((Hashable) -> bool) | int | list[int] | None = None, skipfooter: int = 0, nrows: int | None = None, na_values: Hashable | Iterable[Hashable] | Mapping[Hashable, Iterable[Hashable]] | None = None, keep_default_na: bool = True, na_filter: bool = True, skip_blank_lines: bool = True, parse_dates: Sequence[Hashable] | bool | None = None, date_format: dict[Hashable, str] | str | None = None, dayfirst: bool = False, cache_dates: bool = True, iterator: bool = False, chunksize: int | None = None, compression: CompressionOptions = 'infer', thousands: str | None = None, decimal: str = '.', lineterminator: str | None = None, quotechar: str = '"', quoting: int = 0, doublequote: bool = True, escapechar: str | None = None, comment: str | None = None, encoding: str | None = None, encoding_errors: str | None = 'strict', dialect: Dialect | str | type[Dialect] | None = None, on_bad_lines: str = 'error', low_memory: bool = True, memory_map: bool = False, float_precision: Literal['high', 'legacy', 'round_trip'] | None = None, storage_options: dict[str, Any] | None = None, dtype_backend: Literal['numpy_nullable', 'pyarrow'] | _NoDefault = _NoDefault.no_default) -> DataFrame | TextFileReader` does not accept all arguments that overload signature `(filepath_or_buffer: PathLike[str] | ReadCsvBuffer[bytes] | ReadCsvBuffer[str] | str, *, iterator: bool = ..., chunksize: int, **kwds: Unpack[_read_shared[HashableT]]) -> TextFileReader` accepts [inconsistent-overload]
+ ERROR pandas/io/parsers/readers.py:327:5-13: Implementation signature `(filepath_or_buffer: PathLike[str] | ReadCsvBuffer[bytes] | ReadCsvBuffer[str] | str, *, sep: _NoDefault | str | None = _NoDefault.no_default, delimiter: _NoDefault | str | None = None, header: Literal['infer'] | Sequence[int] | int | None = 'infer', names: Sequence[Hashable] | _NoDefault | None = _NoDefault.no_default, index_col: Literal[False] | Hashable | Sequence[Hashable] | None = None, usecols: UsecolsArgType = None, dtype: DtypeArg | None = None, engine: CSVEngine | None = None, converters: Mapping[HashableT, (...) -> Unknown] | None = None, true_values: list[Unknown] | None = None, false_values: list[Unknown] | None = None, skipinitialspace: bool = False, skiprows: ((Hashable) -> bool) | int | list[int] | None = None, skipfooter: int = 0, nrows: int | None = None, na_values: Hashable | Iterable[Hashable] | Mapping[Hashable, Iterable[Hashable]] | None = None, keep_default_na: bool = True, na_filter: bool = True, skip_blank_lines: bool = True, parse_dates: Sequence[Hashable] | bool | None = None, date_format: dict[Hashable, str] | str | None = None, dayfirst: bool = False, cache_dates: bool = True, iterator: bool = False, chunksize: int | None = None, compression: CompressionOptions = 'infer', thousands: str | None = None, decimal: str = '.', lineterminator: str | None = None, quotechar: str = '"', quoting: int = 0, doublequote: bool = True, escapechar: str | None = None, comment: str | None = None, encoding: str | None = None, encoding_errors: str | None = 'strict', dialect: Dialect | str | type[Dialect] | None = None, on_bad_lines: str = 'error', low_memory: bool = True, memory_map: bool = False, float_precision: Literal['high', 'legacy', 'round_trip'] | None = None, storage_options: dict[str, Any] | None = None, dtype_backend: Literal['numpy_nullable', 'pyarrow'] | _NoDefault = _NoDefault.no_default) -> DataFrame | TextFileReader` does not accept all arguments that overload signature `(filepath_or_buffer: PathLike[str] | ReadCsvBuffer[bytes] | ReadCsvBuffer[str] | str, *, iterator: bool = ..., chunksize: int, **kwds: Unpack[_read_shared[HashableT]]) -> TextFileReader` accepts [inconsistent-overload]
- ERROR pandas/io/parsers/readers.py:337:5-13: Implementation signature `(filepath_or_buffer: PathLike[str] | ReadCsvBuffer[bytes] | ReadCsvBuffer[str] | str, *, sep: _NoDefault | str | None = _NoDefault.no_default, delimiter: _NoDefault | str | None = None, header: Literal['infer'] | Sequence[int] | int | None = 'infer', names: Sequence[Hashable] | _NoDefault | None = _NoDefault.no_default, index_col: Literal[False] | Hashable | Sequence[Hashable] | None = None, usecols: UsecolsArgType = None, dtype: ExtensionDtype | Mapping[Hashable, ExtensionDtype | dtype | str | type[bool | complex | object | str]] | dtype | str | type[bool | complex | object | str] | None = None, engine: Literal['c', 'pyarrow', 'python', 'python-fwf'] | None = None, converters: Mapping[HashableT, (...) -> Unknown] | None = None, true_values: list[Unknown] | None = None, false_values: list[Unknown] | None = None, skipinitialspace: bool = False, skiprows: ((Hashable) -> bool) | int | list[int] | None = None, skipfooter: int = 0, nrows: int | None = None, na_values: Hashable | Iterable[Hashable] | Mapping[Hashable, Iterable[Hashable]] | None = None, keep_default_na: bool = True, na_filter: bool = True, skip_blank_lines: bool = True, parse_dates: Sequence[Hashable] | bool | None = None, date_format: dict[Hashable, str] | str | None = None, dayfirst: bool = False, cache_dates: bool = True, iterator: bool = False, chunksize: int | None = None, compression: CompressionOptions = 'infer', thousands: str | None = None, decimal: str = '.', lineterminator: str | None = None, quotechar: str = '"', quoting: int = 0, doublequote: bool = True, escapechar: str | None = None, comment: str | None = None, encoding: str | None = None, encoding_errors: str | None = 'strict', dialect: Dialect | str | type[Dialect] | None = None, on_bad_lines: str = 'error', low_memory: bool = True, memory_map: bool = False, float_precision: Literal['high', 'legacy', 'round_trip'] | None = None, storage_options: dict[str, Any] | None = None, dtype_backend: Literal['numpy_nullable', 'pyarrow'] | _NoDefault = _NoDefault.no_default) -> DataFrame | TextFileReader` does not accept all arguments that overload signature `(filepath_or_buffer: PathLike[str] | ReadCsvBuffer[bytes] | ReadCsvBuffer[str] | str, *, iterator: Literal[False] = ..., chunksize: None = ..., **kwds: Unpack[_read_shared[HashableT]]) -> DataFrame` accepts [inconsistent-overload]
+ ERROR pandas/io/parsers/readers.py:337:5-13: Implementation signature `(filepath_or_buffer: PathLike[str] | ReadCsvBuffer[bytes] | ReadCsvBuffer[str] | str, *, sep: _NoDefault | str | None = _NoDefault.no_default, delimiter: _NoDefault | str | None = None, header: Literal['infer'] | Sequence[int] | int | None = 'infer', names: Sequence[Hashable] | _NoDefault | None = _NoDefault.no_default, index_col: Literal[False] | Hashable | Sequence[Hashable] | None = None, usecols: UsecolsArgType = None, dtype: DtypeArg | None = None, engine: CSVEngine | None = None, converters: Mapping[HashableT, (...) -> Unknown] | None = None, true_values: list[Unknown] | None = None, false_values: list[Unknown] | None = None, skipinitialspace: bool = False, skiprows: ((Hashable) -> bool) | int | list[int] | None = None, skipfooter: int = 0, nrows: int | None = None, na_values: Hashable | Iterable[Hashable] | Mapping[Hashable, Iterable[Hashable]] | None = None, keep_default_na: bool = True, na_filter: bool = True, skip_blank_lines: bool = True, parse_dates: Sequence[Hashable] | bool | None = None, date_format: dict[Hashable, str] | str | None = None, dayfirst: bool = False, cache_dates: bool = True, iterator: bool = False, chunksize: int | None = None, compression: CompressionOptions = 'infer', thousands: str | None = None, decimal: str = '.', lineterminator: str | None = None, quotechar: str = '"', quoting: int = 0, doublequote: bool = True, escapechar: str | None = None, comment: str | None = None, encoding: str | None = None, encoding_errors: str | None = 'strict', dialect: Dialect | str | type[Dialect] | None = None, on_bad_lines: str = 'error', low_memory: bool = True, memory_map: bool = False, float_precision: Literal['high', 'legacy', 'round_trip'] | None = None, storage_options: dict[str, Any] | None = None, dtype_backend: Literal['numpy_nullable', 'pyarrow'] | _NoDefault = _NoDefault.no_default) -> DataFrame | TextFileReader` does not accept all arguments that overload signature `(filepath_or_buffer: PathLike[str] | ReadCsvBuffer[bytes] | ReadCsvBuffer[str] | str, *, iterator: Literal[False] = ..., chunksize: None = ..., **kwds: Unpack[_read_shared[HashableT]]) -> DataFrame` accepts [inconsistent-overload]
- ERROR pandas/io/parsers/readers.py:347:5-13: Implementation signature `(filepath_or_buffer: PathLike[str] | ReadCsvBuffer[bytes] | ReadCsvBuffer[str] | str, *, sep: _NoDefault | str | None = _NoDefault.no_default, delimiter: _NoDefault | str | None = None, header: Literal['infer'] | Sequence[int] | int | None = 'infer', names: Sequence[Hashable] | _NoDefault | None = _NoDefault.no_default, index_col: Literal[False] | Hashable | Sequence[Hashable] | None = None, usecols: UsecolsArgType = None, dtype: ExtensionDtype | Mapping[Hashable, ExtensionDtype | dtype | str | type[bool | complex | object | str]] | dtype | str | type[bool | complex | object | str] | None = None, engine: Literal['c', 'pyarrow', 'python', 'python-fwf'] | None = None, converters: Mapping[HashableT, (...) -> Unknown] | None = None, true_values: list[Unknown] | None = None, false_values: list[Unknown] | None = None, skipinitialspace: bool = False, skiprows: ((Hashable) -> bool) | int | list[int] | None = None, skipfooter: int = 0, nrows: int | None = None, na_values: Hashable | Iterable[Hashable] | Mapping[Hashable, Iterable[Hashable]] | None = None, keep_default_na: bool = True, na_filter: bool = True, skip_blank_lines: bool = True, parse_dates: Sequence[Hashable] | bool | None = None, date_format: dict[Hashable, str] | str | None = None, dayfirst: bool = False, cache_dates: bool = True, iterator: bool = False, chunksize: int | None = None, compression: CompressionOptions = 'infer', thousands: str | None = None, decimal: str = '.', lineterminator: str | None = None, quotechar: str = '"', quoting: int = 0, doublequote: bool = True, escapechar: str | None = None, comment: str | None = None, encoding: str | None = None, encoding_errors: str | None = 'strict', dialect: Dialect | str | type[Dialect] | None = None, on_bad_lines: str = 'error', low_memory: bool = True, memory_map: bool = False, float_precision: Literal['high', 'legacy', 'round_trip'] | None = None, storage_options: dict[str, Any] | None = None, dtype_backend: Literal['numpy_nullable', 'pyarrow'] | _NoDefault = _NoDefault.no_default) -> DataFrame | TextFileReader` does not accept all arguments that overload signature `(filepath_or_buffer: PathLike[str] | ReadCsvBuffer[bytes] | ReadCsvBuffer[str] | str, *, iterator: bool = ..., chunksize: int | None = ..., **kwds: Unpack[_read_shared[HashableT]]) -> DataFrame | TextFileReader` accepts [inconsistent-overload]
+ ERROR pandas/io/parsers/readers.py:347:5-13: Implementation signature `(filepath_or_buffer: PathLike[str] | ReadCsvBuffer[bytes] | ReadCsvBuffer[str] | str, *, sep: _NoDefault | str | None = _NoDefault.no_default, delimiter: _NoDefault | str | None = None, header: Literal['infer'] | Sequence[int] | int | None = 'infer', names: Sequence[Hashable] | _NoDefault | None = _NoDefault.no_default, index_col: Literal[False] | Hashable | Sequence[Hashable] | None = None, usecols: UsecolsArgType = None, dtype: DtypeArg | None = None, engine: CSVEngine | None = None, converters: Mapping[HashableT, (...) -> Unknown] | None = None, true_values: list[Unknown] | None = None, false_values: list[Unknown] | None = None, skipinitialspace: bool = False, skiprows: ((Hashable) -> bool) | int | list[int] | None = None, skipfooter: int = 0, nrows: int | None = None, na_values: Hashable | Iterable[Hashable] | Mapping[Hashable, Iterable[Hashable]] | None = None, keep_default_na: bool = True, na_filter: bool = True, skip_blank_lines: bool = True, parse_dates: Sequence[Hashable] | bool | None = None, date_format: dict[Hashable, str] | str | None = None, dayfirst: bool = False, cache_dates: bool = True, iterator: bool = False, chunksize: int | None = None, compression: CompressionOptions = 'infer', thousands: str | None = None, decimal: str = '.', lineterminator: str | None = None, quotechar: str = '"', quoting: int = 0, doublequote: bool = True, escapechar: str | None = None, comment: str | None = None, encoding: str | None = None, encoding_errors: str | None = 'strict', dialect: Dialect | str | type[Dialect] | None = None, on_bad_lines: str = 'error', low_memory: bool = True, memory_map: bool = False, float_precision: Literal['high', 'legacy', 'round_trip'] | None = None, storage_options: dict[str, Any] | None = None, dtype_backend: Literal['numpy_nullable', 'pyarrow'] | _NoDefault = _NoDefault.no_default) -> DataFrame | TextFileReader` does not accept all arguments that overload signature `(filepath_or_buffer: PathLike[str] | ReadCsvBuffer[bytes] | ReadCsvBuffer[str] | str, *, iterator: bool = ..., chunksize: int | None = ..., **kwds: Unpack[_read_shared[HashableT]]) -> DataFrame | TextFileReader` accepts [inconsistent-overload]
- ERROR pandas/io/parsers/readers.py:904:5-15: Implementation signature `(filepath_or_buffer: PathLike[str] | ReadCsvBuffer[bytes] | ReadCsvBuffer[str] | str, *, sep: _NoDefault | str | None = _NoDefault.no_default, delimiter: _NoDefault | str | None = None, header: Literal['infer'] | Sequence[int] | int | None = 'infer', names: Sequence[Hashable] | _NoDefault | None = _NoDefault.no_default, index_col: Literal[False] | Hashable | Sequence[Hashable] | None = None, usecols: UsecolsArgType = None, dtype: ExtensionDtype | Mapping[Hashable, ExtensionDtype | dtype | str | type[bool | complex | object | str]] | dtype | str | type[bool | complex | object | str] | None = None, engine: Literal['c', 'pyarrow', 'python', 'python-fwf'] | None = None, converters: Mapping[HashableT, (...) -> Unknown] | None = None, true_values: list[Unknown] | None = None, false_values: list[Unknown] | None = None, skipinitialspace: bool = False, skiprows: ((Hashable) -> bool) | int | list[int] | None = None, skipfooter: int = 0, nrows: int | None = None, na_values: Hashable | Iterable[Hashable] | Mapping[Hashable, Iterable[Hashable]] | None = None, keep_default_na: bool = True, na_filter: bool = True, skip_blank_lines: bool = True, parse_dates: Sequence[Hashable] | bool | None = None, date_format: dict[Hashable, str] | str | None = None, dayfirst: bool = False, cache_dates: bool = True, iterator: bool = False, chunksize: int | None = None, compression: CompressionOptions = 'infer', thousands: str | None = None, decimal: str = '.', lineterminator: str | None = None, quotechar: str = '"', quoting: int = 0, doublequote: bool = True, escapechar: str | None = None, comment: str | None = None, encoding: str | None = None, encoding_errors: str | None = 'strict', dialect: Dialect | str | type[Dialect] | None = None, on_bad_lines: str = 'error', low_memory: bool = True, memory_map: bool = False, float_precision: Literal['high', 'legacy', 'round_trip'] | None = None, storage_options: dict[str, Any] | None = None, dtype_backend: Literal['numpy_nullable', 'pyarrow'] | _NoDefault = _NoDefault.no_default) -> DataFrame | TextFileReader` does not accept all arguments that overload signature `(filepath_or_buffer: PathLike[str] | ReadCsvBuffer[bytes] | ReadCsvBuffer[str] | str, *, iterator: Literal[True], chunksize: int | None = ..., **kwds: Unpack[_read_shared[HashableT]]) -> TextFileReader` accepts [inconsistent-overload]
+ ERROR pandas/io/parsers/readers.py:904:5-15: Implementation signature `(filepath_or_buffer: PathLike[str] | ReadCsvBuffer[bytes] | ReadCsvBuffer[str] | str, *, sep: _NoDefault | str | None = _NoDefault.no_default, delimiter: _NoDefault | str | None = None, header: Literal['infer'] | Sequence[int] | int | None = 'infer', names: Sequence[Hashable] | _NoDefault | None = _NoDefault.no_default, index_col: Literal[False] | Hashable | Sequence[Hashable] | None = None, usecols: UsecolsArgType = None, dtype: DtypeArg | None = None, engine: CSVEngine | None = None, converters: Mapping[HashableT, (...) -> Unknown] | None = None, true_values: list[Unknown] | None = None, false_values: list[Unknown] | None = None, skipinitialspace: bool = False, skiprows: ((Hashable) -> bool) | int | list[int] | None = None, skipfooter: int = 0, nrows: int | None = None, na_values: Hashable | Iterable[Hashable] | Mapping[Hashable, Iterable[Hashable]] | None = None, keep_default_na: bool = True, na_filter: bool = True, skip_blank_lines: bool = True, parse_dates: Sequence[Hashable] | bool | None = None, date_format: dict[Hashable, str] | str | None = None, dayfirst: bool = False, cache_dates: bool = True, iterator: bool = False, chunksize: int | None = None, compression: CompressionOptions = 'infer', thousands: str | None = None, decimal: str = '.', lineterminator: str | None = None, quotechar: str = '"', quoting: int = 0, doublequote: bool = True, escapechar: str | None = None, comment: str | None = None, encoding: str | None = None, encoding_errors: str | None = 'strict', dialect: Dialect | str | type[Dialect] | None = None, on_bad_lines: str = 'error', low_memory: bool = True, memory_map: bool = False, float_precision: Literal['high', 'legacy', 'round_trip'] | None = None, storage_options: dict[str, Any] | None = None, dtype_backend: Literal['numpy_nullable', 'pyarrow'] | _NoDefault = _NoDefault.no_default) -> DataFrame | TextFileReader` does not accept all arguments that overload signature `(filepath_or_buffer: PathLike[str] | ReadCsvBuffer[bytes] | ReadCsvBuffer[str] | str, *, iterator: Literal[True], chunksize: int | None = ..., **kwds: Unpack[_read_shared[HashableT]]) -> TextFileReader` accepts [inconsistent-overload]
... (truncated 6 lines) ...
meson (https://github.com/mesonbuild/meson)
- ERROR mesonbuild/interpreter/interpreter.py:499:41-42: Argument `list[TYPE_elementary] | list[TYPE_var]` is not assignable to parameter `invalues` with type `list[CustomTarget | CustomTargetIndex | File | GeneratedList] | list[ExecutableSerialisation | HoldableObject | MesonInterpreterObject | Sequence[TYPE_elementary] | Sequence[TYPE_var] | bool | dict[str, TYPE_elementary] | dict[str, TYPE_var] | int | str]` in function `Interpreter.process_new_values` [bad-argument-type]
+ ERROR mesonbuild/interpreter/interpreter.py:499:41-42: Argument `list[TYPE_elementary] | list[TYPE_var]` is not assignable to parameter `invalues` with type `list[GeneratedTypes | File] | list[TYPE_var | ExecutableSerialisation]` in function `Interpreter.process_new_values` [bad-argument-type]
- ERROR mesonbuild/interpreter/type_checking.py:502:48-507:2: `KwargInfo[list[BuildTarget | CustomTarget | CustomTargetIndex | ExtractedObjects | File | GeneratedList | StructuredSources | str] | None]` is not assignable to `KwargInfo[list[BuildTarget | CustomTarget | CustomTargetIndex | ExtractedObjects | File | GeneratedList | StructuredSources | str]]` [bad-assignment]
+ ERROR mesonbuild/interpreter/type_checking.py:502:48-507:2: `KwargInfo[list[GeneratedTypes | BuildTarget | ExtractedObjects | File | StructuredSources | str] | None]` is not assignable to `KwargInfo[list[GeneratedTypes | BuildTarget | ExtractedObjects | File | StructuredSources | str]]` [bad-assignment]
- ERROR mesonbuild/modules/_qt.py:649:54-85: `list[File | str]` is not assignable to `list[CustomTarget | CustomTargetIndex | File | GeneratedList | str]` [bad-assignment]
+ ERROR mesonbuild/modules/_qt.py:649:54-85: `list[File | str]` is not assignable to `list[TargetSources | str]` [bad-assignment]
core (https://github.com/home-assistant/core)
- ERROR homeassistant/core.py:2628:32-2636:10: Unpacked argument `tuple[str, str, (ServiceCall) -> Coroutine[Any, Any, ServiceResponse] | dict[str, bool | dict[str, JsonValueType] | float | int | list[JsonValueType] | str | None] | None, Schema | None, SupportsResponse]` is not assignable to parameter `*args` with type `tuple[str, str, (ServiceCall) -> Coroutine[Any, Any, dict[str, bool | dict[str, JsonValueType] | float | int | list[JsonValueType] | str | None] | dict[str, dict[str, bool | dict[str, JsonValueType] | float | int | list[JsonValueType] | str | None] | None] | None] | dict[str, bool | dict[str, JsonValueType] | float | int | list[JsonValueType] | str | None] | dict[str, dict[str, bool | dict[str, JsonValueType] | float | int | list[JsonValueType] | str | None] | None] | None, All | Any | Schema | None, SupportsResponse, HassJobType | None, Mapping[str, str] | None]` in function `homeassistant.util.async_.run_callback_threadsafe` [bad-argument-type]
+ ERROR homeassistant/core.py:2628:32-2636:10: Unpacked argument `tuple[str, str, (ServiceCall) -> Coroutine[Any, Any, ServiceResponse] | dict[str, bool | dict[str, JsonValueType] | float | int | list[JsonValueType] | str | None] | None, Schema | None, SupportsResponse]` is not assignable to parameter `*args` with type `tuple[str, str, (ServiceCall) -> Coroutine[Any, Any, dict[str, bool | dict[str, JsonValueType] | float | int | list[JsonValueType] | str | None] | dict[str, dict[str, bool | dict[str, JsonValueType] | float | int | list[JsonValueType] | str | None] | None] | None] | dict[str, bool | dict[str, JsonValueType] | float | int | list[JsonValueType] | str | None] | dict[str, dict[str, bool | dict[str, JsonValueType] | float | int | list[JsonValueType] | str | None] | None] | None, VolSchemaType | None, SupportsResponse, HassJobType | None, Mapping[str, str] | None]` in function `homeassistant.util.async_.run_callback_threadsafe` [bad-argument-type]
- ERROR homeassistant/helpers/intent.py:978:31-985:14: No matching overload found for function `typing.MutableMapping.update` called with arguments: (dict[Required, ((Any) -> Any) | All | Any | Schema]) [no-matching-overload]
+ ERROR homeassistant/helpers/intent.py:978:31-985:14: No matching overload found for function `typing.MutableMapping.update` called with arguments: (dict[Required, VolSchemaType | (Any) -> Any]) [no-matching-overload]
- ERROR homeassistant/helpers/intent.py:988:31-995:14: No matching overload found for function `typing.MutableMapping.update` called with arguments: (dict[Optional, ((Any) -> Any) | All | Any | Schema]) [no-matching-overload]
+ ERROR homeassistant/helpers/intent.py:988:31-995:14: No matching overload found for function `typing.MutableMapping.update` called with arguments: (dict[Optional, VolSchemaType | (Any) -> Any]) [no-matching-overload]
xarray (https://github.com/pydata/xarray)
- ERROR xarray/core/_typed_ops.py:519:9-16: Implementation signature `(self: Self@DataArrayOpsMixin, other: DaCompatible) -> DataTree | Dataset | Self@DataArrayOpsMixin` does not accept all arguments that overload signature `(self: Self@DataArrayOpsMixin, other: Dataset) -> Dataset` accepts [inconsistent-overload]
+ ERROR xarray/core/_typed_ops.py:519:9-16: Implementation signature `(self: Self@DataArrayOpsMixin, other: ArrayLike | generic | Variable | DataArray) -> DataTree | Dataset | Self@DataArrayOpsMixin` does not accept all arguments that overload signature `(self: Self@DataArrayOpsMixin, other: Dataset) -> Dataset` accepts [inconsistent-overload]
- ERROR xarray/core/_typed_ops.py:531:9-16: Implementation signature `(self: Self@DataArrayOpsMixin, other: DaCompatible) -> DataTree | Dataset | Self@DataArrayOpsMixin` does not accept all arguments that overload signature `(self: Self@DataArrayOpsMixin, other: Dataset) -> Dataset` accepts [inconsistent-overload]
+ ERROR xarray/core/_typed_ops.py:531:9-16: Implementation signature `(self: Self@DataArrayOpsMixin, other: ArrayLike | generic | Variable | DataArray) -> DataTree | Dataset | Self@DataArrayOpsMixin` does not accept all arguments that overload signature `(self: Self@DataArrayOpsMixin, other: Dataset) -> Dataset` accepts [inconsistent-overload]
- ERROR xarray/core/_typed_ops.py:543:9-16: Implementation signature `(self: Self@DataArrayOpsMixin, other: DaCompatible) -> DataTree | Dataset | Self@DataArrayOpsMixin` does not accept all arguments that overload signature `(self: Self@DataArrayOpsMixin, other: Dataset) -> Dataset` accepts [inconsistent-overload]
+ ERROR xarray/core/_typed_ops.py:543:9-16: Implementation signature `(self: Self@DataArrayOpsMixin, other: ArrayLike | generic | Variable | DataArray) -> DataTree | Dataset | Self@DataArrayOpsMixin` does not accept all arguments that overload signature `(self: Self@DataArrayOpsMixin, other: Dataset) -> Dataset` accepts [inconsistent-overload]
- ERROR xarray/core/_typed_ops.py:555:9-16: Implementation signature `(self: Self@DataArrayOpsMixin, other: DaCompatible) -> DataTree | Dataset | Self@DataArrayOpsMixin` does not accept all arguments that overload signature `(self: Self@DataArrayOpsMixin, other: Dataset) -> Dataset` accepts [inconsistent-overload]
+ ERROR xarray/core/_typed_ops.py:555:9-16: Implementation signature `(self: Self@DataArrayOpsMixin, other: ArrayLike | generic | Variable | DataArray) -> DataTree | Dataset | Self@DataArrayOpsMixin` does not accept all arguments that overload signature `(self: Self@DataArrayOpsMixin, other: Dataset) -> Dataset` accepts [inconsistent-overload]
- ERROR xarray/core/_typed_ops.py:567:9-20: Implementation signature `(self: Self@DataArrayOpsMixin, other: DaCompatible) -> DataTree | Dataset | Self@DataArrayOpsMixin` does not accept all arguments that overload signature `(self: Self@DataArrayOpsMixin, other: Dataset) -> Dataset` accepts [inconsistent-overload]
+ ERROR xarray/core/_typed_ops.py:567:9-20: Implementation signature `(self: Self@DataArrayOpsMixin, other: ArrayLike | generic | Variable | DataArray) -> DataTree | Dataset | Self@DataArrayOpsMixin` does not accept all arguments that overload signature `(self: Self@DataArrayOpsMixin, other: Dataset) -> Dataset` accepts [inconsistent-overload]
- ERROR xarray/core/_typed_ops.py:579:9-21: Implementation signature `(self: Self@DataArrayOpsMixin, other: DaCompatible) -> DataTree | Dataset | Self@DataArrayOpsMixin` does not accept all arguments that overload signature `(self: Self@DataArrayOpsMixin, other: Dataset) -> Dataset` accepts [inconsistent-overload]
+ ERROR xarray/core/_typed_ops.py:579:9-21: Implementation signature `(self: Self@DataArrayOpsMixin, other: ArrayLike | generic | Variable | DataArray) -> DataTree | Dataset | Self@DataArrayOpsMixin` does not accept all arguments that overload signature `(self: Self@DataArrayOpsMixin, other: Dataset) -> Dataset` accepts [inconsistent-overload]
- ERROR xarray/core/_typed_ops.py:591:9-16: Implementation signature `(self: Self@DataArrayOpsMixin, other: DaCompatible) -> DataTree | Dataset | Self@DataArrayOpsMixin` does not accept all arguments that overload signature `(self: Self@DataArrayOpsMixin, other: Dataset) -> Dataset` accepts [inconsistent-overload]
+ ERROR xarray/core/_typed_ops.py:591:9-16: Implementation signature `(self: Self@DataArrayOpsMixin, other: ArrayLike | generic | Variable | DataArray) -> DataTree | Dataset | Self@DataArrayOpsMixin` does not accept all arguments that overload signature `(self: Self@DataArrayOpsMixin, other: Dataset) -> Dataset` accepts [inconsistent-overload]
- ERROR xarray/core/_typed_ops.py:603:9-16: Implementation signature `(self: Self@DataArrayOpsMixin, other: DaCompatible) -> DataTree | Dataset | Self@DataArrayOpsMixin` does not accept all arguments that overload signature `(self: Self@DataArrayOpsMixin, other: Dataset) -> Dataset` accepts [inconsistent-overload]
+ ERROR xarray/core/_typed_ops.py:603:9-16: Implementation signature `(self: Self@DataArrayOpsMixin, other: ArrayLike | generic | Variable | DataArray) -> DataTree | Dataset | Self@DataArrayOpsMixin` does not accept all arguments that overload signature `(self: Self@DataArrayOpsMixin, other: Dataset) -> Dataset` accepts [inconsistent-overload]
- ERROR xarray/core/_typed_ops.py:615:9-16: Implementation signature `(self: Self@DataArrayOpsMixin, other: DaCompatible) -> DataTree | Dataset | Self@DataArrayOpsMixin` does not accept all arguments that overload signature `(self: Self@DataArrayOpsMixin, other: Dataset) -> Dataset` accepts [inconsistent-overload]
+ ERROR xarray/core/_typed_ops.py:615:9-16: Implementation signature `(self: Self@DataArrayOpsMixin, other: ArrayLike | generic | Variable | DataArray) -> DataTree | Dataset | Self@DataArrayOpsMixin` does not accept all arguments that overload signature `(self: Self@DataArrayOpsMixin, other: Dataset) -> Dataset` accepts [inconsistent-overload]
- ERROR xarray/core/_typed_ops.py:627:9-15: Implementation signature `(self: Self@DataArrayOpsMixin, other: DaCompatible) -> DataTree | Dataset | Self@DataArrayOpsMixin` does not accept all arguments that overload signature `(self: Self@DataArrayOpsMixin, other: Dataset) -> Dataset` accepts [inconsistent-overload]
+ ERROR xarray/core/_typed_ops.py:627:9-15: Implementation signature `(self: Self@DataArrayOpsMixin, other: ArrayLike | generic | Variable | DataArray) -> DataTree | Dataset | Self@DataArrayOpsMixin` does not accept all arguments that overload signature `(self: Self@DataArrayOpsMixin, other: Dataset) -> Dataset` accepts [inconsistent-overload]
... (truncated 64 lines) ...``` |
Primer Diff Classification➖ 16 neutral | 16 project(s) total | +96, -96 errors
Detailed analysis➖ Neutral (16)aioredis (+2, -2)
spark (+4, -4)
altair (+10, -10)
prefect (+1, -1)
colour (+1, -1)
freqtrade (+2, -2)
hydra-zen (+11, -11)
ibis (+1, -1)
aiohttp (+6, -6)
static-frame (+5, -5)
pandas (+9, -9)
meson (+3, -3)
core (+3, -3)
xarray (+36, -36)
pydantic (+1, -1)
discord.py (+1, -1)
Was this helpful? React with 👍 or 👎 Classification by primer-classifier (15 heuristic, 1 LLM) |
Summary
Fixes #1115
Fixed union alias display so non-generic union type aliases keep their name in nested type positions, which makes decorator error messages readable.
Test Plan
add tests to check this.