Skip to content

Commit 63444d0

Browse files
committed
mypy fixup
1 parent cf35e20 commit 63444d0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pandas/core/arrays/datetimes.py

+5-2
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

@@ -1309,7 +1312,7 @@ def day_name(self, locale=None) -> npt.NDArray[np.object_]:
13091312
return result
13101313

13111314
@property
1312-
def time(self) -> npt.NDArray[np.object_]:
1315+
def time(self) -> npt.NDArray[np.object_] | ArrowExtensionArray:
13131316
"""
13141317
Returns numpy array of :class:`datetime.time` objects.
13151318

0 commit comments

Comments
 (0)