Skip to content

Commit ce06dc2

Browse files
committed
fix(comment): #1274 (comment)
1 parent 533b15d commit ce06dc2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas-stubs/core/indexes/accessors.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,8 @@ class _DatetimeLikeOps(
164164
# in to the dt accessor
165165

166166
_DTTimestampTimedeltaReturnType = TypeVar(
167-
"_DTTimestampTimedeltaReturnType", bound=Series | DatetimeIndex | TimedeltaIndex
167+
"_DTTimestampTimedeltaReturnType",
168+
bound=Series | Series[Timestamp] | TimedeltaSeries | DatetimeIndex | TimedeltaIndex,
168169
)
169170

170171
class _DatetimeRoundingMethods(Generic[_DTTimestampTimedeltaReturnType]):

0 commit comments

Comments
 (0)