Skip to content

Commit 688cebd

Browse files
committed
np_ndarray_bool
1 parent e448246 commit 688cebd

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pandas-stubs/core/indexes/period.pyi

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ from typing import (
66
)
77

88
import numpy as np
9-
from numpy import typing as npt
109
import pandas as pd
1110
from pandas import Index
1211
from pandas.core.indexes.accessors import PeriodIndexFieldOps
@@ -24,6 +23,7 @@ from pandas._typing import (
2423
Dtype,
2524
Frequency,
2625
np_1darray,
26+
np_ndarray_bool,
2727
)
2828

2929
class PeriodIndex(DatetimeIndexOpsMixin[pd.Period, np.object_], PeriodIndexFieldOps):
@@ -66,9 +66,7 @@ class PeriodIndex(DatetimeIndexOpsMixin[pd.Period, np.object_], PeriodIndexField
6666
self, other: NaTType
6767
) -> NaTType: ...
6868
def asof_locs(
69-
self,
70-
where: pd.DatetimeIndex | PeriodIndex,
71-
mask: npt.NDArray[np.bool_],
69+
self, where: pd.DatetimeIndex | Self, mask: np_ndarray_bool
7270
) -> np_1darray[np.intp]: ...
7371
@property
7472
def is_full(self) -> bool: ...

0 commit comments

Comments
 (0)