Skip to content

Commit 4924a6d

Browse files
committed
ENH: Change return type of _to_datetime_with_unit to Index
1 parent b9b2d7a commit 4924a6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/tools/datetimes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ def _array_strptime_with_fallback(
479479
return Index(result, dtype=result.dtype, name=name)
480480

481481

482-
def _to_datetime_with_unit(arg, unit, name, utc: bool, errors: str) -> DatetimeIndex:
482+
def _to_datetime_with_unit(arg, unit, name, utc: bool, errors: str) -> Index:
483483
"""
484484
to_datetime specialized to the case where a 'unit' is passed.
485485

0 commit comments

Comments
 (0)