summaryrefslogtreecommitdiff
path: root/testsuite/E74.py
diff options
context:
space:
mode:
authorAnthony Sottile <asottile@umich.edu>2022-11-21 14:22:37 -0500
committerGitHub <noreply@github.com>2022-11-21 14:22:37 -0500
commitb38878283c6e4898df7bf438fb4dc03cd204ca14 (patch)
treea70f3ce5cd62cc4546c87232f5e6db9db50cea71 /testsuite/E74.py
parent7498309c2d59ff2ac69e6fae264f507a4ee2feb3 (diff)
parent798d620cd461a1e7abac1cbba5aab66274aa3229 (diff)
downloadpep8-b38878283c6e4898df7bf438fb4dc03cd204ca14.tar.gz
Merge pull request #1123 from PyCQA/fix-E741-again
fix ambiguous identifiers in lambda bodies inside braces
Diffstat (limited to 'testsuite/E74.py')
-rw-r--r--testsuite/E74.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/E74.py b/testsuite/E74.py
index 93d6c13..9bb4c58 100644
--- a/testsuite/E74.py
+++ b/testsuite/E74.py
@@ -2,3 +2,12 @@
lambda l: dict(zip(l, range(len(l))))
#: E741:1:7 E704:1:1
def f(l): print(l, l, l)
+#: E741:2:12
+x = (
+ lambda l: dict(zip(l, range(len(l)))),
+)
+#: E741:2:12 E741:3:12
+x = (
+ lambda l: dict(zip(l, range(len(l)))),
+ lambda l: dict(zip(l, range(len(l)))),
+)