Skip to content

Commit 9167976

Browse files
committed
np.integer -> np.intp
1 parent 6d1be80 commit 9167976

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pandas-stubs/core/indexes/period.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class PeriodIndex(DatetimeIndexOpsMixin[pd.Period, np.object_], PeriodIndexField
5656
self,
5757
where: pd.DatetimeIndex | PeriodIndex,
5858
mask: np.ndarray[tuple[int], np.dtype[np.bool_]],
59-
) -> np.ndarray[tuple[int], np.dtype[np.integer]]: ...
59+
) -> np.ndarray[tuple[int], np.dtype[np.intp]]: ...
6060
@property
6161
def is_full(self) -> bool: ...
6262
@property

tests/test_indexes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1510,7 +1510,7 @@ def test_period_index_asof_locs() -> None:
15101510
mask = np.ones(2, dtype=bool)
15111511
check(
15121512
assert_type(
1513-
idx.asof_locs(where, mask), np.ndarray[tuple[int], np.dtype[np.integer]]
1513+
idx.asof_locs(where, mask), np.ndarray[tuple[int], np.dtype[np.intp]]
15141514
),
15151515
np.ndarray,
15161516
)

0 commit comments

Comments
 (0)