Skip to content

Commit 7a66daa

Browse files
authored
type window/* (#1564)
type window
1 parent f2c6de4 commit 7a66daa

File tree

3 files changed

+3
-33
lines changed

3 files changed

+3
-33
lines changed

pandas-stubs/core/window/ewm.pyi

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from typing import Any
2-
31
from pandas import (
42
DataFrame,
53
Series,
@@ -47,29 +45,3 @@ class ExponentialMovingWindow(BaseWindow[NDFrameT]):
4745
class ExponentialMovingWindowGroupby(
4846
BaseWindowGroupby[NDFrameT], ExponentialMovingWindow[NDFrameT]
4947
): ...
50-
51-
class OnlineExponentialMovingWindow(ExponentialMovingWindow[NDFrameT]):
52-
def reset(self) -> None: ...
53-
def aggregate(self, func, *args: Any, **kwargs: Any): ...
54-
def std(self, bias: bool = False, *args: Any, **kwargs: Any): ...
55-
def corr(
56-
self,
57-
other: DataFrame | Series | None = None,
58-
pairwise: bool | None = None,
59-
numeric_only: bool = False,
60-
): ...
61-
def cov(
62-
self,
63-
other: DataFrame | Series | None = None,
64-
pairwise: bool | None = None,
65-
bias: bool = False,
66-
numeric_only: bool = False,
67-
): ...
68-
def var(self, bias: bool = False, numeric_only: bool = False): ...
69-
def mean(
70-
self,
71-
*args: Any,
72-
update: NDFrameT | None = ...,
73-
update_times: None = None,
74-
**kwargs: Any,
75-
) -> NDFrameT: ...

pandas-stubs/core/window/rolling.pyi

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
from collections.abc import (
22
Callable,
3+
Hashable,
34
Iterator,
5+
Sequence,
46
)
57
import datetime as dt
68
from typing import (
@@ -42,7 +44,7 @@ class BaseWindow(SelectionMixin[NDFrameT]):
4244
win_type: str | None
4345
axis: AxisInt
4446
method: CalculationMethod
45-
def __getitem__(self, key) -> Self: ...
47+
def __getitem__(self, key: Hashable | Sequence[Hashable]) -> Self: ...
4648
def __getattr__(self, attr: str) -> Self: ...
4749
def __iter__(self) -> Iterator[NDFrameT]: ...
4850
@overload

pyproject.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,10 +209,6 @@ ignore = [
209209
# TODO: remove when computations are fully typed
210210
"ANN001", "ANN201", "ANN204", "ANN206",
211211
]
212-
"*window*" = [
213-
# TODO: remove when window is fully typed
214-
"ANN001", "ANN201", "ANN204", "ANN206",
215-
]
216212
"*generic.pyi" = [
217213
# TODO: remove when generic.pyi is fully typed
218214
"ANN001", "ANN201", "ANN204", "ANN206",

0 commit comments

Comments
 (0)