1
0
forked from VimPlug/jedi

Somre more fixes towards basic stuff.

This commit is contained in:
Dave Halter
2016-11-12 14:23:44 +01:00
parent 469d6940a7
commit 853f9fdb08
3 changed files with 24 additions and 18 deletions
+5 -2
View File
@@ -377,8 +377,11 @@ def _name_to_types(evaluator, context, name, scope):
# TODO an exception can also be a tuple. Check for those.
# TODO check for types that are not classes and add it to
# the static analysis report.
exceptions = evaluator.eval_element(name.get_previous_sibling().get_previous_sibling())
types = set(chain.from_iterable(evaluator.execute(t) for t in exceptions))
exceptions = context.eval_node(name.get_previous_sibling().get_previous_sibling())
types = unite(
evaluator.execute(t, param.ValuesArguments([]))
for t in exceptions
)
else:
raise DeprecationWarning
types = set([node])