Skip to content

Add check Y091 for raise in function bodies#30

Merged
JelleZijlstra merged 2 commits into
PyCQA:masterfrom
srittau:raise
Oct 15, 2019
Merged

Add check Y091 for raise in function bodies#30
JelleZijlstra merged 2 commits into
PyCQA:masterfrom
srittau:raise

Conversation

@srittau
Copy link
Copy Markdown
Member

@srittau srittau commented Oct 13, 2019

Closes #29

Comment thread 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
Copy Markdown
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