1
0
forked from VimPlug/jedi

Make the completions possible for Interpreter objects

This commit is contained in:
Dave Halter
2019-12-31 14:52:44 +01:00
parent b7a8929905
commit 83ce8b1162
5 changed files with 60 additions and 3 deletions
+10
View File
@@ -281,6 +281,16 @@ class CompiledObject(Value):
return CompiledModuleContext(self)
return CompiledContext(self)
@property
def array_type(self):
return self.access_handle.get_array_type()
def get_key_values(self):
return [
create_from_access_path(self.inference_state, k)
for k in self.access_handle.get_key_paths()
]
class CompiledName(AbstractNameDefinition):
def __init__(self, inference_state, parent_context, name):