We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c75b7f commit 2190f91Copy full SHA for 2190f91
pandas/core/dtypes/dtypes.py
@@ -2130,9 +2130,11 @@ def _get_common_dtype(self, dtypes: list[DtypeObj]) -> DtypeObj | None:
2130
PerformanceWarning,
2131
stacklevel=find_stack_level(),
2132
)
2133
-
2134
np_dtypes = (x.subtype if isinstance(x, SparseDtype) else x for x in dtypes)
2135
- return SparseDtype(np_find_common_type(*np_dtypes), fill_value=fill_value)
+ # error: Argument 1 to "np_find_common_type" has incompatible type
+ # "*Generator[Any | dtype[Any] | ExtensionDtype, None, None]";
2136
+ # expected "dtype[Any]" [arg-type]
2137
+ return SparseDtype(np_find_common_type(*np_dtypes), fill_value=fill_value) # type: ignore [arg-type]
2138
2139
2140
@register_extension_dtype
0 commit comments