summaryrefslogtreecommitdiff
path: root/testsuite/E74.py
diff options
context:
space:
mode:
authorAnthony Sottile <asottile@umich.edu>2022-11-21 14:11:37 -0500
committerAnthony Sottile <asottile@umich.edu>2022-11-21 14:19:58 -0500
commit798d620cd461a1e7abac1cbba5aab66274aa3229 (patch)
treed5e703e62ce73668f08edc9007699c986fcc3610 /testsuite/E74.py
parentc5308a75adb2c98a00228083ebe7cd87445a8c36 (diff)
downloadpep8-798d620cd461a1e7abac1cbba5aab66274aa3229.tar.gz
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)))),
+)