1
0
forked from VimPlug/jedi

Remove compatibility for zip_longest

This commit is contained in:
Dave Halter
2020-07-02 01:08:57 +02:00
parent 2aec4678da
commit b5e0c1e9c6
3 changed files with 4 additions and 10 deletions

View File

@@ -1,8 +1,8 @@
import re
from itertools import zip_longest
from parso.python import tree
from jedi._compatibility import zip_longest
from jedi import debug
from jedi.inference.utils import PushBackIterator
from jedi.inference import analysis
@@ -189,8 +189,6 @@ class TreeArguments(AbstractArguments):
iterators = [_iterate_star_args(self.context, a, el, funcdef)
for a in arrays]
for values in list(zip_longest(*iterators)):
# TODO zip_longest yields None, that means this would raise
# an exception?
yield None, get_merged_lazy_value(
[v for v in values if v is not None]
)