Skip to content

TYP: Return int instead of changing result type in nanops.py #44988

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 22, 2021

Conversation

kashifkhan
Copy link
Contributor

xref #37715

The error was about the lines that set result = -1, which changed the type of result from np.ndarray to int. Changed it to return -1 from the if block since everywhere else its dealing with an np.ndarray

@phofl phofl added the Typing type annotations, mypy/pyright type checking label Dec 20, 2021
@phofl
Copy link
Member

phofl commented Dec 21, 2021

Could you merge master? We have fixed the ci now

@jreback jreback added this to the 1.4 milestone Dec 22, 2021
@jreback jreback merged commit 9098d14 into pandas-dev:master Dec 22, 2021
@jreback
Copy link
Contributor

jreback commented Dec 22, 2021

thanks @kashifkhan

@kashifkhan kashifkhan deleted the fix_type_err_nanops.py branch December 22, 2021 14:54
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.

3 participants