Lambdas in comprehensions need parentheses in Python > 3.8
Fixes https://github.com/davidhalter/jedi/issues/1824.
This commit is contained in:
1 parent
3602c10916
commit
72cf41f4c9
1 file changed
+1
-1
@@ -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