File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -889,7 +889,7 @@ IndexingInt: TypeAlias = (
889
889
)
890
890
891
891
# AxesData is used for data for Index
892
- AxesData : TypeAlias = Mapping [S3 , Any ] | Axes | KeysView
892
+ AxesData : TypeAlias = Mapping [S3 , Any ] | Axes | KeysView [ S3 ]
893
893
894
894
# Any plain Python or numpy function
895
895
Function : TypeAlias = np .ufunc | Callable [..., Any ]
Original file line number Diff line number Diff line change 1
1
from collections .abc import Hashable
2
2
import datetime
3
3
from typing import (
4
+ Any ,
4
5
overload ,
5
6
)
6
7
@@ -26,7 +27,7 @@ from pandas._typing import (
26
27
class PeriodIndex (DatetimeIndexOpsMixin [pd .Period , np .object_ ], PeriodIndexFieldOps ):
27
28
def __new__ (
28
29
cls ,
29
- data : AxesData | None = None ,
30
+ data : AxesData [ Any ] | None = None ,
30
31
freq : Frequency | None = None ,
31
32
dtype : Dtype | None = None ,
32
33
copy : bool = False ,
You can’t perform that action at this time.
0 commit comments