We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bbed93b commit aa53270Copy full SHA for aa53270
pandas/core/dtypes/cast.py
@@ -462,7 +462,7 @@ def changeit():
462
463
464
def maybe_casted_values(
465
- index: "Index", codes: Optional[Sequence[int]] = None
+ index: "Index", codes: Optional[np.ndarray] = None
466
) -> ArrayLike:
467
"""
468
Convert an index, given directly or as a pair (level, code), to a 1D array.
@@ -487,7 +487,7 @@ def maybe_casted_values(
487
488
# if we have the codes, extract the values with a mask
489
if codes is not None:
490
- mask = codes == -1
+ mask: np.ndarray = codes == -1
491
492
# we can have situations where the whole mask is -1,
493
# meaning there is nothing found in codes, so make all nan's
0 commit comments