Skip to content

Conversation

@simonjayhawkins
Copy link
Member

xref #33455

@simonjayhawkins simonjayhawkins added the Typing type annotations, mypy/pyright type checking label Apr 13, 2020
@jbrockmendel
Copy link
Member

LGTM

# indices will always be np.ndarray since axis is not None and
# values is a 2d array for DataFrame
# error: Item "int" of "Union[int, Any]" has no attribute "__iter__"
indices = cast(np.ndarray, indices)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What’s the reasoning here for cast instead of assert? The latter is generally easier to refactor

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@WillAyd is this concern a blocker?

@jreback jreback added this to the 1.1 milestone Apr 23, 2020
Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@jreback
Copy link
Contributor

jreback commented Apr 25, 2020

can u rebase

@jreback jreback merged commit 7aa710a into pandas-dev:master May 2, 2020
@jreback
Copy link
Contributor

jreback commented May 2, 2020

thanks @simonjayhawkins

@simonjayhawkins simonjayhawkins deleted the disallow-decorator branch May 2, 2020 18:00
rhshadrach pushed a commit to rhshadrach/pandas that referenced this pull request May 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Typing type annotations, mypy/pyright type checking

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants