Skip to content

Commit cc1212c

Browse files
committed
mypy fixup
1 parent f86ad36 commit cc1212c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pandas/core/arrays/datetimes.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,10 @@
8484
)
8585

8686
from pandas import DataFrame
87-
from pandas.core.arrays import PeriodArray
87+
from pandas.core.arrays import (
88+
ArrowExtensionArray,
89+
PeriodArray,
90+
)
8891

8992
_midnight = time(0, 0)
9093

@@ -1320,7 +1323,7 @@ def day_name(self, locale=None) -> npt.NDArray[np.object_]:
13201323
return result
13211324

13221325
@property
1323-
def time(self) -> npt.NDArray[np.object_]:
1326+
def time(self) -> npt.NDArray[np.object_] | ArrowExtensionArray:
13241327
"""
13251328
Returns numpy array of :class:`datetime.time` objects.
13261329

0 commit comments

Comments
 (0)