1
0
forked from VimPlug/jedi

Rename next_sibling and prev_sibling.

This commit is contained in:
Dave Halter
2016-06-14 23:22:33 +02:00
parent 78d25541bb
commit 6f366e2d77
3 changed files with 30 additions and 30 deletions
+1 -1
View File
@@ -343,7 +343,7 @@ def _name_to_types(evaluator, 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.prev_sibling().prev_sibling())
exceptions = evaluator.eval_element(name.get_previous_sibling().get_previous_sibling())
types = set(chain.from_iterable(evaluator.execute(t) for t in exceptions))
else:
if typ.isinstance(er.Function):