Skip to content

Commit 6362124

Browse files
committed
Fix mypy errors
1 parent 8413a36 commit 6362124

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

pandas/core/window/rolling.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1540,6 +1540,22 @@ def apply_func(values, begin, end, min_periods, raw=raw):
15401540

15411541
return apply_func
15421542

1543+
@overload
1544+
def pipe(
1545+
self,
1546+
func: Callable[Concatenate[Self, P], T],
1547+
*args: P.args,
1548+
**kwargs: P.kwargs,
1549+
) -> T: ...
1550+
1551+
@overload
1552+
def pipe(
1553+
self,
1554+
func: tuple[Callable[..., T], str],
1555+
*args: Any,
1556+
**kwargs: Any,
1557+
) -> T: ...
1558+
15431559
def pipe(
15441560
self,
15451561
func: Callable[Concatenate[Self, P], T] | tuple[Callable[..., T], str],

0 commit comments

Comments
 (0)