File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 75
75
from pandas .core .dtypes .inference import is_list_like
76
76
from pandas .core .dtypes .missing import is_valid_nat_for_dtype , isna , notna
77
77
78
- from pandas .core .indexes .datetimes import DatetimeIndex
79
-
80
78
if TYPE_CHECKING :
81
79
from pandas import Series
82
80
from pandas .core .arrays import ExtensionArray
81
+ from pandas .core .indexes .datetimes import DatetimeIndex
83
82
84
83
_int8_max = np .iinfo (np .int8 ).max
85
84
_int16_max = np .iinfo (np .int16 ).max
@@ -1020,7 +1019,7 @@ def astype_nansafe(
1020
1019
1021
1020
def maybe_convert_objects (
1022
1021
values : np .ndarray , convert_numeric : bool = True
1023
- ) -> Union [np .ndarray , DatetimeIndex ]:
1022
+ ) -> Union [np .ndarray , " DatetimeIndex" ]:
1024
1023
"""
1025
1024
If we have an object dtype array, try to coerce dates and/or numbers.
1026
1025
You can’t perform that action at this time.
0 commit comments