1
0
forked from VimPlug/jedi

Fix an array lookup issue. list.pop calls work now pretty well and return the right type.

This commit is contained in:
Dave Halter
2015-02-26 13:57:54 +01:00
parent d318d3c855
commit b8a8c4d402
4 changed files with 26 additions and 3 deletions

View File

@@ -246,7 +246,8 @@ class Array(IterableWrapper):
def names_dicts(self, search_global=False): # Always False.
# `array.type` is a string with the type, e.g. 'list'.
scope = self._evaluator.find_types(compiled.builtin, self.type)[0]
scope = self._evaluator.execute(scope)[0] # builtins only have one class
# builtins only have one class -> [0]
scope = self._evaluator.execute(scope, (AlreadyEvaluated((self,)),))[0]
return scope.names_dicts(search_global)
@common.safe_property