Skip to content

Commit ca626c5

Browse files
committed
more type hints
1 parent fdc8ad0 commit ca626c5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pandas/core/dtypes/cast.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,10 @@
8080
notna,
8181
)
8282

83-
from pandas.core.indexes.datetimes import DatetimeIndex
84-
8583
if TYPE_CHECKING:
8684
from pandas import Series
8785
from pandas.core.arrays import ExtensionArray
86+
from pandas.core.indexes.datetimes import DatetimeIndex
8887

8988
_int8_max = np.iinfo(np.int8).max
9089
_int16_max = np.iinfo(np.int16).max
@@ -1084,7 +1083,7 @@ def astype_nansafe(
10841083

10851084
def maybe_convert_objects(
10861085
values: np.ndarray, convert_numeric: bool = True
1087-
) -> Union[np.ndarray, DatetimeIndex]:
1086+
) -> Union[np.ndarray, "DatetimeIndex"]:
10881087
"""
10891088
If we have an object dtype array, try to coerce dates and/or numbers.
10901089

0 commit comments

Comments
 (0)