Skip to content

Commit e4e54d9

Browse files
committed
fixup generics
1 parent 9167976 commit e4e54d9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pandas-stubs/_typing.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -889,7 +889,7 @@ IndexingInt: TypeAlias = (
889889
)
890890

891891
# AxesData is used for data for Index
892-
AxesData: TypeAlias = Mapping[S3, Any] | Axes | KeysView
892+
AxesData: TypeAlias = Mapping[S3, Any] | Axes | KeysView[S3]
893893

894894
# Any plain Python or numpy function
895895
Function: TypeAlias = np.ufunc | Callable[..., Any]

pandas-stubs/core/indexes/period.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from collections.abc import Hashable
22
import datetime
33
from typing import (
4+
Any,
45
overload,
56
)
67

@@ -26,7 +27,7 @@ from pandas._typing import (
2627
class PeriodIndex(DatetimeIndexOpsMixin[pd.Period, np.object_], PeriodIndexFieldOps):
2728
def __new__(
2829
cls,
29-
data: AxesData | None = None,
30+
data: AxesData[Any] | None = None,
3031
freq: Frequency | None = None,
3132
dtype: Dtype | None = None,
3233
copy: bool = False,

0 commit comments

Comments
 (0)