Skip to content
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

Add check Y091 for raise in function bodies #30

Merged
merged 2 commits into from
Oct 15, 2019

Conversation

srittau
Copy link
Collaborator

@srittau srittau commented Oct 13, 2019

Closes #29

pyi.py Outdated
@@ -301,6 +301,7 @@ def visit_FunctionDef(self, node: ast.FunctionDef) -> None:
continue
# allow "raise", a number of stubs have this
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should instead say something like "Special-case raise because a previous version of flake8-pyi allowed it"

@JelleZijlstra JelleZijlstra merged commit 8bfa70a into PyCQA:master Oct 15, 2019
@srittau srittau deleted the raise branch October 15, 2019 16:13
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.

Tighter body checks
2 participants