mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 22:14:27 +08:00
Fix nested comprehension contexts, fixes #1691
This commit is contained in:
@@ -310,6 +310,13 @@ z = 3
|
||||
#< 10 (0,1), (0,10)
|
||||
{z:1 for z in something}
|
||||
|
||||
#< 8 (0,6), (0, 40)
|
||||
[[x + nested_loopv2 for x in bar()] for nested_loopv2 in baz()]
|
||||
|
||||
#< 25 (0,20), (0, 65)
|
||||
(("*" if abs(foo(x, nested_loopv1)) else " " for x in bar()) for nested_loopv1 in baz())
|
||||
|
||||
|
||||
def whatever_func():
|
||||
zzz = 3
|
||||
if UNDEFINED:
|
||||
|
||||
Reference in New Issue
Block a user