Skip to content

Commit fa6421c

Browse files
committed
mypy fixup
1 parent 5857d67 commit fa6421c

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

@@ -1338,7 +1341,7 @@ def day_name(self, locale=None) -> npt.NDArray[np.object_]:
13381341
return result
13391342

13401343
@property
1341-
def time(self) -> npt.NDArray[np.object_]:
1344+
def time(self) -> npt.NDArray[np.object_] | ArrowExtensionArray:
13421345
"""
13431346
Returns numpy array of :class:`datetime.time` objects.
13441347

0 commit comments

Comments
 (0)