Skip to content

Commit b88da43

Browse files
committed
py310 happiness
1 parent d0477e4 commit b88da43

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

pandas-stubs/_typing.pyi

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff 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]
8989
AnyArrayLike: TypeAlias = ArrayLike | Index | Series
9090
AnyArrayLikeInt: 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

pandas-stubs/core/resample.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ from typing import (
1212
)
1313

1414
import numpy as np
15+
from numpy import typing as npt
1516
from pandas.core.frame import DataFrame
1617
from pandas.core.groupby.generic import SeriesGroupBy
1718
from 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

0 commit comments

Comments
 (0)