File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ from typing_extensions import TypeAlias
32
32
33
33
from pandas ._libs .interval import Interval
34
34
from pandas ._libs .tslibs import (
35
+ BaseOffset ,
35
36
Period ,
36
37
Timedelta ,
37
38
Timestamp ,
@@ -527,7 +528,8 @@ S1 = TypeVar(
527
528
| datetime .timedelta # includes pd.Timedelta
528
529
| Period
529
530
| Interval
530
- | CategoricalDtype ,
531
+ | CategoricalDtype
532
+ | BaseOffset ,
531
533
)
532
534
533
535
IndexingInt : TypeAlias = (
Original file line number Diff line number Diff line change @@ -2137,7 +2137,7 @@ class PeriodSeries(Series[Period]):
2137
2137
def dt (self ) -> PeriodProperties : ... # type: ignore[override] # pyright: ignore[reportIncompatibleMethodOverride]
2138
2138
def __sub__ (self , other : PeriodSeries ) -> OffsetSeries : ... # type: ignore[override] # pyright: ignore[reportIncompatibleMethodOverride]
2139
2139
2140
- class OffsetSeries (Series ):
2140
+ class OffsetSeries (Series [ BaseOffset ] ):
2141
2141
@overload # type: ignore[override]
2142
2142
def __radd__ (self , other : Period ) -> PeriodSeries : ...
2143
2143
@overload
You can’t perform that action at this time.
0 commit comments