Skip to content

Add new error code for unreachable statement #8312

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 4 commits into from
Jan 23, 2020
Merged

Add new error code for unreachable statement #8312

merged 4 commits into from
Jan 23, 2020

Conversation

dhalenok
Copy link
Contributor

Closes #8190.
This introduces a new error for unreachable_statement.

@dhalenok dhalenok requested a review from ilevkivskyi January 22, 2020 21:36
Copy link
Collaborator

@Michael0x2a Michael0x2a left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!

I had a few suggestions, but this generally looks good.

Could you also make sure to add a section for this new error code in https://github.com/python/mypy/blob/master/docs/source/error_code_list2.rst? It doesn't need to be anything complicated -- just a short description and example would be great.

@dhalenok
Copy link
Contributor Author

@Michael0x2a Sure!

@dhalenok dhalenok requested review from Michael0x2a and removed request for ilevkivskyi January 23, 2020 09:04
Copy link
Collaborator

@Michael0x2a Michael0x2a left a comment

Choose a reason for hiding this comment

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

Thanks! Merging now.

Note: I also tweaked your PR clarify this error is also shown for unreachable expressions; hope you don't mind.

@Michael0x2a Michael0x2a merged commit f3c57e5 into python:master Jan 23, 2020
@dhalenok dhalenok deleted the 8190 branch January 23, 2020 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unreachable Warning Code
2 participants