Skip to content

Commit

Permalink
remove type hint from codes pending followon PR
Browse files Browse the repository at this point in the history
  • Loading branch information
arw2019 committed Oct 11, 2020
1 parent bbed93b commit aa53270
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pandas/core/dtypes/cast.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ def changeit():


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

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

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

0 comments on commit aa53270

Please sign in to comment.