@@ -88,6 +88,7 @@ from pandas._typing import (
88
88
QuantileInterpolation ,
89
89
Renamer ,
90
90
ReplaceMethod ,
91
+ RollingMethod ,
91
92
Scalar ,
92
93
SeriesAxisType ,
93
94
SortKind ,
@@ -1318,7 +1319,7 @@ class Series(IndexOpsMixin, NDFrame, Generic[S1]):
1318
1319
self ,
1319
1320
min_periods : int = ...,
1320
1321
axis : SeriesAxisType = ...,
1321
- method : Literal [ "single" , "table" ] = ...,
1322
+ method : RollingMethod = ...,
1322
1323
) -> Expanding [Series ]: ...
1323
1324
def floordiv (
1324
1325
self ,
@@ -1496,26 +1497,30 @@ class Series(IndexOpsMixin, NDFrame, Generic[S1]):
1496
1497
@overload
1497
1498
def rolling (
1498
1499
self ,
1499
- window ,
1500
+ window : int ,
1500
1501
min_periods : int | None = ...,
1501
1502
center : _bool = ...,
1502
1503
* ,
1503
1504
win_type : _str ,
1504
1505
on : _str | None = ...,
1505
1506
axis : SeriesAxisType = ...,
1506
1507
closed : _str | None = ...,
1508
+ step : int | None = ...,
1509
+ method : RollingMethod = ...,
1507
1510
) -> Window [Series ]: ...
1508
1511
@overload
1509
1512
def rolling (
1510
1513
self ,
1511
- window ,
1514
+ window : int ,
1512
1515
min_periods : int | None = ...,
1513
1516
center : _bool = ...,
1514
1517
* ,
1515
1518
win_type : None = ...,
1516
1519
on : _str | None = ...,
1517
1520
axis : SeriesAxisType = ...,
1518
1521
closed : _str | None = ...,
1522
+ step : int | None = ...,
1523
+ method : RollingMethod = ...,
1519
1524
) -> Rolling [Series ]: ...
1520
1525
def rpow (
1521
1526
self ,
0 commit comments