File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -85,13 +85,10 @@ HashableT5 = TypeVar("HashableT5", bound=Hashable)
8585
8686# array-like
8787
88- ArrayLike : TypeAlias = ExtensionArray | np . ndarray [ tuple [ int ], np . dtype [ Any ] ]
88+ ArrayLike : TypeAlias = ExtensionArray | npt . NDArray [ Any ]
8989AnyArrayLike : TypeAlias = ArrayLike | Index | Series
9090AnyArrayLikeInt : TypeAlias = (
91- IntegerArray
92- | Index [int ]
93- | Series [int ]
94- | np .ndarray [tuple [int ], np .dtype [np .integer ]]
91+ IntegerArray | Index [int ] | Series [int ] | npt .NDArray [np .integer ]
9592)
9693
9794# list-like
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ from typing import (
1212)
1313
1414import numpy as np
15+ from numpy import typing as npt
1516from pandas .core .frame import DataFrame
1617from pandas .core .groupby .generic import SeriesGroupBy
1718from pandas .core .groupby .groupby import BaseGroupBy
@@ -28,7 +29,6 @@ from pandas._typing import (
2829 Scalar ,
2930 TimeGrouperOrigin ,
3031 TimestampConvention ,
31- np_1darray ,
3232)
3333
3434_FrameGroupByFunc : TypeAlias = (
@@ -165,7 +165,7 @@ class Resampler(BaseGroupBy[NDFrameT]):
165165 @final
166166 def quantile (
167167 self ,
168- q : float | list [float ] | np_1darray [np .double ] | Series [float ] = 0.5 ,
168+ q : float | list [float ] | npt . NDArray [np .double ] | Series [float ] = 0.5 ,
169169 ** kwargs : Any ,
170170 ) -> NDFrameT : ...
171171
You can’t perform that action at this time.
0 commit comments