Skip to content

Commit c01be61

Browse files
committed
mypy fixup
1 parent d0a3374 commit c01be61

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
@@ -85,7 +85,10 @@
8585
)
8686

8787
from pandas import DataFrame
88-
from pandas.core.arrays import PeriodArray
88+
from pandas.core.arrays import (
89+
ArrowExtensionArray,
90+
PeriodArray,
91+
)
8992

9093
_midnight = time(0, 0)
9194

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

13231326
@property
1324-
def time(self) -> npt.NDArray[np.object_]:
1327+
def time(self) -> npt.NDArray[np.object_] | ArrowExtensionArray:
13251328
"""
13261329
Returns numpy array of :class:`datetime.time` objects.
13271330

0 commit comments

Comments
 (0)