mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-25 09:27:23 +08:00
make generator comprehensions work
This commit is contained in:
1 parent
cd5b8aebfd
commit
af801ef9b4
4 files changed
+35
-2
No files matched your search
@@ -471,6 +471,7 @@ def get_names_of_scope(evaluator, scope, position=None, star_search=True, includ
|
||||
"""
|
||||
if isinstance(scope, iterable.ListComprehensionFlow):
|
||||
position = scope.list_comprehension.parent.start_pos
|
||||
|
||||
in_func_scope = scope
|
||||
non_flow = scope.get_parent_until(pr.Flow, reverse=True)
|
||||
while scope:
|
||||
|
||||
Reference in new issue
Block a user