Skip to content

Commit 264f64b

Browse files
committed
remove overloads
1 parent 32ce2f3 commit 264f64b

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

pandas/core/dtypes/cast.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -245,18 +245,6 @@ def _disallow_mismatched_datetimelike(value, dtype: DtypeObj) -> None:
245245
raise TypeError(f"Cannot cast {value!r} to {dtype}")
246246

247247

248-
@overload
249-
def maybe_downcast_to_dtype(
250-
result: np.ndarray, dtype: str | np.dtype
251-
) -> np.ndarray: ...
252-
253-
254-
@overload
255-
def maybe_downcast_to_dtype(
256-
result: ExtensionArray, dtype: str | np.dtype
257-
) -> ArrayLike: ...
258-
259-
260248
def maybe_downcast_to_dtype(result: ArrayLike, dtype: np.dtype) -> ArrayLike:
261249
"""
262250
try to cast to the specified dtype (e.g. convert back to bool/int

0 commit comments

Comments
 (0)