We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e617167 commit b3ac41fCopy full SHA for b3ac41f
pycodestyle.py
@@ -121,7 +121,7 @@
121
OPERATOR_REGEX = re.compile(r'(?:[^,\s])(\s*)(?:[-+*/|!<=>%&^]+)(\s*)')
122
LAMBDA_REGEX = re.compile(r'\blambda\b')
123
HUNK_REGEX = re.compile(r'^@@ -\d+(?:,\d+)? \+(\d+)(?:,(\d+))? @@.*$')
124
-STARTSWITH_DEF_REGEX = re.compile(r'^(async\b+def|def)')
+STARTSWITH_DEF_REGEX = re.compile(r'^(async\s+def|def)\b')
125
STARTSWITH_TOP_LEVEL_REGEX = re.compile(r'^(async\s+def\s+|def\s+|class\s+|@)')
126
STARTSWITH_INDENT_STATEMENT_REGEX = re.compile(
127
r'^\s*({0})\b'.format('|'.join(s.replace(' ', '\s+') for s in (
0 commit comments