1
0
forked from VimPlug/jedi

Refactor something to use .type instead of isinstance.

This commit is contained in:
Dave Halter
2016-06-30 09:55:21 +02:00
parent 689284c615
commit 6b41db96bf
4 changed files with 12 additions and 3 deletions

View File

@@ -179,9 +179,11 @@ class Completion:
scope = get_user_scope(self._module, self._position)
if not scope.is_scope(): # Might be a flow (if/while/etc).
scope = scope.get_parent_scope()
scope = self._evaluator.wrap(scope)
debug.dbg('global completion scope: %s', scope)
names_dicts = global_names_dict_generator(
self._evaluator,
self._evaluator.wrap(scope),
scope,
self._position
)
completion_names = []