8000
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 3be4aba commit 25ce7edCopy full SHA for 25ce7ed
pandas/core/dtypes/cast.py
@@ -342,8 +342,10 @@ def maybe_cast_result_dtype(dtype: DtypeObj, how: str) -> DtypeObj:
342
return dtype
343
344
345
+# TODO: annotate obj, return type
346
+# both ArrayLike but not necessarily the same => need a Union (xref GH36100)
347
def maybe_cast_to_extension_array(
- cls: Type["ExtensionArray"], obj: ArrayLike, dtype: Optional[ExtensionDtype] = None
348
+ cls: Type["ExtensionArray"], obj, dtype: Optional[ExtensionDtype] = None
349
) -> ArrayLike:
350
"""
351
Call to `_from_sequence` that returns the object unchanged on Exception.
0 commit comments