Skip to content

Commit 65a4184

Browse files
committed
refs W606, only NAME can follow await
await NUMBER or await STRING is not valid syntax
1 parent 3d37ea0 commit 65a4184

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pycodestyle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1580,7 +1580,7 @@ def python_3000_async_await_keywords(logical_line, tokens):
15801580
else:
15811581
error = True
15821582
elif state[0] == 'await':
1583-
if token_type in (tokenize.NAME, tokenize.NUMBER, tokenize.STRING):
1583+
if token_type == tokenize.NAME:
15841584
# An await expression. Return to looking for async/await
15851585
# names.
15861586
state = None

0 commit comments

Comments
 (0)