We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48f23df commit 28f1be4Copy full SHA for 28f1be4
pandas/core/dtypes/cast.py
@@ -94,6 +94,7 @@
94
if TYPE_CHECKING:
95
from pandas import Series
96
from pandas.core.arrays import ExtensionArray
97
+ from pandas.core.indexes.base import Index
98
from pandas.core.indexes.datetimes import DatetimeIndex
99
100
_int8_max = np.iinfo(np.int8).max
@@ -460,7 +461,9 @@ def changeit():
460
461
return result, False
462
463
-def maybe_casted_values(index, codes=None):
464
+def maybe_casted_values(
465
+ index: "Index", codes: Optional[Sequence[int]] = None
466
+) -> ArrayLike:
467
"""
468
Convert an index, given directly or as a pair (level, code), to a 1D array.
469
0 commit comments