Skip to content

Commit 88b32e0

Browse files
committed
comments
1 parent d779dbe commit 88b32e0

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

pandas-stubs/core/frame.pyi

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ from pandas._typing import (
164164
WriteBuffer,
165165
XMLParsers,
166166
np_2darray,
167+
np_ndarray_bool,
167168
np_ndarray_float,
168169
)
169170

@@ -2200,7 +2201,7 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
22002201
cond: (
22012202
Series
22022203
| DataFrame
2203-
| npt.NDArray[Any]
2204+
| np_ndarray_bool
22042205
| Callable[[DataFrame], DataFrame]
22052206
| Callable[[Any], _bool]
22062207
),
@@ -2216,7 +2217,7 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
22162217
cond: (
22172218
Series
22182219
| DataFrame
2219-
| npt.NDArray[Any]
2220+
| np_ndarray_bool
22202221
| Callable[[DataFrame], DataFrame]
22212222
| Callable[[Any], _bool]
22222223
),
@@ -2643,7 +2644,7 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
26432644
cond: (
26442645
Series
26452646
| DataFrame
2646-
| npt.NDArray[Any]
2647+
| np_ndarray_bool
26472648
| Callable[[DataFrame], DataFrame]
26482649
| Callable[[Any], _bool]
26492650
),
@@ -2659,7 +2660,7 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
26592660
cond: (
26602661
Series
26612662
| DataFrame
2662-
| npt.NDArray[Any]
2663+
| np_ndarray_bool
26632664
| Callable[[DataFrame], DataFrame]
26642665
| Callable[[Any], _bool]
26652666
),

pandas-stubs/core/groupby/groupby.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ from pandas._typing import (
6464
TimestampConvertibleTypes,
6565
WindowingEngine,
6666
WindowingEngineKwargs,
67+
np_ndarray_dt,
6768
np_ndarray_int64,
68-
npt,
6969
)
7070

7171
from pandas.plotting import PlotAccessor
@@ -241,7 +241,7 @@ class GroupBy(BaseGroupBy[NDFrameT]):
241241
adjust: bool = ...,
242242
ignore_na: bool = ...,
243243
axis: Axis = ...,
244-
times: str | npt.NDArray[Any] | Series | np.timedelta64 | None = ...,
244+
times: str | np_ndarray_dt | Series | np.timedelta64 | None = ...,
245245
method: CalculationMethod = ...,
246246
*,
247247
selection: IndexLabel | None = ...,

pandas-stubs/core/series.pyi

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1398,7 +1398,7 @@ class Series(IndexOpsMixin[S1], ElementOpsMixin[S1], NDFrame):
13981398
n: int | None = None,
13991399
frac: float | None = None,
14001400
replace: _bool = False,
1401-
weights: _str | ListLike | npt.NDArray[Any] | None = None,
1401+
weights: _str | ListLike | np_ndarray_float | None = None,
14021402
random_state: RandomState | None = None,
14031403
axis: AxisIndex | None = None,
14041404
ignore_index: _bool = False,
@@ -1613,7 +1613,7 @@ class Series(IndexOpsMixin[S1], ElementOpsMixin[S1], NDFrame):
16131613
cond: (
16141614
Series[S1]
16151615
| Series[_bool]
1616-
| npt.NDArray[Any]
1616+
| np_ndarray_bool
16171617
| Callable[[Series[S1]], Series[bool]]
16181618
| Callable[[S1], bool]
16191619
),
@@ -1629,7 +1629,7 @@ class Series(IndexOpsMixin[S1], ElementOpsMixin[S1], NDFrame):
16291629
cond: (
16301630
Series[S1]
16311631
| Series[_bool]
1632-
| npt.NDArray[Any]
1632+
| np_ndarray_bool
16331633
| Callable[[Series[S1]], Series[bool]]
16341634
| Callable[[S1], bool]
16351635
),
@@ -1645,7 +1645,7 @@ class Series(IndexOpsMixin[S1], ElementOpsMixin[S1], NDFrame):
16451645
cond: (
16461646
Series[S1]
16471647
| Series[_bool]
1648-
| npt.NDArray[Any]
1648+
| np_ndarray_bool
16491649
| Callable[[Series[S1]], Series[bool]]
16501650
| Callable[[S1], bool]
16511651
),
@@ -1661,7 +1661,7 @@ class Series(IndexOpsMixin[S1], ElementOpsMixin[S1], NDFrame):
16611661
cond: (
16621662
Series[S1]
16631663
| Series[_bool]
1664-
| npt.NDArray[Any]
1664+
| np_ndarray_bool
16651665
| Callable[[Series[S1]], Series[bool]]
16661666
| Callable[[S1], bool]
16671667
),
@@ -4127,7 +4127,7 @@ class Series(IndexOpsMixin[S1], ElementOpsMixin[S1], NDFrame):
41274127
adjust: _bool = True,
41284128
ignore_na: _bool = False,
41294129
axis: Axis = 0,
4130-
times: npt.NDArray[Any] | Series | None = None,
4130+
times: np_ndarray_dt | Series | None = None,
41314131
method: CalculationMethod = "single",
41324132
) -> ExponentialMovingWindow[Series]: ...
41334133
@final

0 commit comments

Comments
 (0)