1
0
forked from VimPlug/jedi

use find_types instead of find_names

This commit is contained in:
Dave Halter
2014-01-06 14:29:23 +01:00
parent 0a87f8b02f
commit 53dbec52ab
6 changed files with 13 additions and 12 deletions
+1 -1
View File
@@ -129,7 +129,7 @@ class Array(use_metaclass(CachedMetaClass, pr.Base)):
It returns e.g. for a list: append, pop, ...
"""
# `array.type` is a string with the type, e.g. 'list'.
scope = self._evaluator.find_name(builtin.Builtin.scope, self._array.type)[0]
scope = self._evaluator.find_types(builtin.Builtin.scope, self._array.type)[0]
scope = self._evaluator.execute(scope)[0] # builtins only have one class
names = scope.get_defined_names()
return [ArrayMethod(n) for n in names]