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 = (
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
895895Function : TypeAlias = np .ufunc | Callable [..., Any ]
Original file line number Diff line number Diff line change 11from collections .abc import Hashable
22import datetime
33from typing import (
4+ Any ,
45 overload ,
56)
67
@@ -26,7 +27,7 @@ from pandas._typing import (
2627class 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 ,
You can’t perform that action at this time.
0 commit comments