mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 22:14:27 +08:00
Lambdas in comprehensions need parentheses in Python > 3.8
Fixes https://github.com/davidhalter/jedi/issues/1824.
This commit is contained in:
@@ -110,4 +110,4 @@ class Test(object):
|
||||
# nocond lambdas make no sense at all.
|
||||
|
||||
#? int()
|
||||
[a for a in [1,2] if lambda: 3][0]
|
||||
[a for a in [1,2] if (lambda: 3)][0]
|
||||
|
||||
Reference in New Issue
Block a user