Skip to content

TYP: activate Check for missing error codes #36088

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

Conversation

simonjayhawkins
Copy link
Member

xref #35311

@simonjayhawkins simonjayhawkins added the Typing type annotations, mypy/pyright type checking label Sep 3, 2020
Copy link
Member

@WillAyd WillAyd left a comment

Choose a reason for hiding this comment

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

lgtm - nice work!

@WillAyd WillAyd added this to the 1.2 milestone Sep 3, 2020
# invgrep -R --include="*.py" -P '# type: ignore(?!\[)' pandas
# RET=$(($RET + $?)) ; echo $MSG "DONE"
MSG='Check for missing error codes with # type: ignore' ; echo $MSG
invgrep -R --include="*.py" -P '# type: ignore(?!\[)' pandas
Copy link
Member

Choose a reason for hiding this comment

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

should we check for # type:ignore without the space? we have one of those in plotting._matplotlib.core

Copy link
Member Author

Choose a reason for hiding this comment

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

i've updated the check to account for optional space. We could also consider preventing that pattern.

@jreback jreback merged commit 6016b17 into pandas-dev:master Sep 4, 2020
@jreback
Copy link
Contributor

jreback commented Sep 4, 2020

thanks @simonjayhawkins

@simonjayhawkins simonjayhawkins deleted the activate-mypy-error-codes branch September 5, 2020 10:10
kesmit13 pushed a commit to kesmit13/pandas that referenced this pull request Nov 2, 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