1
0
forked from VimPlug/jedi

star args improvements

This commit is contained in:
Dave Halter
2014-12-13 08:17:38 +01:00
parent 1b48f6fbce
commit ddd4d675f6
3 changed files with 22 additions and 14 deletions

View File

@@ -74,6 +74,13 @@ class Warning(Error):
def add(evaluator, name, jedi_obj, message=None, typ=Error, payload=None):
from jedi.evaluate.iterable import MergedNodes
while isinstance(jedi_obj, MergedNodes):
if len(jedi_obj) != 1:
# TODO is this kosher?
return
jedi_obj = list(jedi_obj)[0]
exception = CODES[name][1]
if _check_for_exception_catch(evaluator, jedi_obj, exception, payload):
return