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 e3ec49a commit 82137f8Copy full SHA for 82137f8
pep8.py
@@ -926,7 +926,8 @@ def compound_statements(logical_line):
926
if lambda_kw:
927
before = line[:lambda_kw.start()].rstrip()
928
if before[-1:] == '=' and isidentifier(before[:-1].strip()):
929
- yield 0, "E731 do not assign a lambda expression, use a def"
+ yield 0, ("E731 do not assign a lambda expression, use a "
930
+ "def")
931
break
932
if before.startswith('def '):
933
yield 0, "E704 multiple statements on one line (def)"
0 commit comments