We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9f725fb + b10ea40 commit 6837433Copy full SHA for 6837433
2 files changed
pycodestyle.py
@@ -122,7 +122,7 @@
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\s+def|def)')
125
-STARTSWITH_TOP_LEVEL_REGEX = re.compile(r'^(async\s+def|def|class|@)')
+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})'.format('|'.join(s.replace(' ', '\s+') for s in (
128
'def', 'async def',
testsuite/E30not.py
@@ -155,3 +155,6 @@ class Bar(object):
155
classification_errors = None
156
#: Okay
157
defined_properly = True
158
+#: Okay
159
+defaults = {}
160
+defaults.update({})
0 commit comments