1
0
forked from VimPlug/jedi

Fix an issue with async for

This commit is contained in:
Dave Halter
2018-02-21 00:41:59 +01:00
parent bc0210af70
commit de5d7961e8
2 changed files with 7 additions and 3 deletions

View File

@@ -173,14 +173,14 @@ class Context(BaseContext):
return None
def iterate_contexts(contexts, contextualized_node=None):
def iterate_contexts(contexts, contextualized_node=None, is_async=False):
"""
Calls `iterate`, on all contexts but ignores the ordering and just returns
all contexts that the iterate functions yield.
"""
return ContextSet.from_sets(
lazy_context.infer()
for lazy_context in contexts.iterate(contextualized_node)
for lazy_context in contexts.iterate(contextualized_node, is_async=is_async)
)