summaryrefslogtreecommitdiff
path: root/pycodestyle.py
diff options
context:
space:
mode:
authorAnthony Sottile <asottile@umich.edu>2022-08-03 18:26:51 -0400
committerAnthony Sottile <asottile@umich.edu>2022-08-03 18:26:51 -0400
commit43c5afaeef44a01b512ade340030ff4d7b0ba78e (patch)
tree0688aa846178fc76be76f8f0e9114e9a2eebedea /pycodestyle.py
parent9e6e820b269cbe39da854ae2835bd797028d22db (diff)
downloadpep8-43c5afaeef44a01b512ade340030ff4d7b0ba78e.tar.gz
allow parenthesized yield (generator-coroutines)
Diffstat (limited to 'pycodestyle.py')
-rwxr-xr-xpycodestyle.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pycodestyle.py b/pycodestyle.py
index 5c4d5f9..ad3030a 100755
--- a/pycodestyle.py
+++ b/pycodestyle.py
@@ -495,6 +495,7 @@ def missing_whitespace_after_keyword(logical_line, tokens):
tok0.string not in SINGLETONS and
tok0.string not in ('async', 'await') and
not (tok0.string == 'except' and tok1.string == '*') and
+ not (tok0.string == 'yield' and tok1.string == ')') and
tok1.string not in ':\n'):
yield tok0.end, "E275 missing whitespace after keyword"