Skip to content

Commit 5b4ea4c

Browse files
committed
mypy fixup
1 parent 23997f3 commit 5b4ea4c

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

9194
def tz_to_dtype(
@@ -1344,7 +1347,7 @@ def day_name(self, locale=None) -> npt.NDArray[np.object_]:
13441347
return result
13451348

13461349
@property
1347-
def time(self) -> npt.NDArray[np.object_]:
1350+
def time(self) -> npt.NDArray[np.object_] | ArrowExtensionArray:
13481351
"""
13491352
Returns numpy array of :class:`datetime.time` objects.
13501353

0 commit comments

Comments
 (0)