1
0
forked from VimPlug/jedi

Some improvements towards iterators.

This commit is contained in:
Dave Halter
2016-11-12 03:53:25 +01:00
parent 9369d264d4
commit 7848be97ab
5 changed files with 27 additions and 25 deletions

View File

@@ -611,8 +611,10 @@ def py__iter__(evaluator, types, node=None):
else:
type_iters.append(iter_method())
for lazy_contexts in zip_longest(*type_iters, fillvalue=set()):
yield context.get_merged_lazy_context(lazy_contexts)
for lazy_contexts in zip_longest(*type_iters, fillvalue=None):
yield context.get_merged_lazy_context(
[l for l in lazy_contexts if l is not None]
)
def py__iter__types(evaluator, types, node=None):