Skip to content

Commit aa53270

Browse files
committed
remove type hint from codes pending followon PR
1 parent bbed93b commit aa53270

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/dtypes/cast.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ def changeit():
462462

463463

464464
def maybe_casted_values(
465-
index: "Index", codes: Optional[Sequence[int]] = None
465+
index: "Index", codes: Optional[np.ndarray] = None
466466
) -> ArrayLike:
467467
"""
468468
Convert an index, given directly or as a pair (level, code), to a 1D array.
@@ -487,7 +487,7 @@ def maybe_casted_values(
487487

488488
# if we have the codes, extract the values with a mask
489489
if codes is not None:
490-
mask = codes == -1
490+
mask: np.ndarray = codes == -1
491491

492492
# we can have situations where the whole mask is -1,
493493
# meaning there is nothing found in codes, so make all nan's

0 commit comments

Comments
 (0)