1
0
forked from VimPlug/jedi

A CompiledInstance is not really compiled, it's an instance of a compiled class value

This commit is contained in:
Dave Halter
2019-12-01 23:50:46 +01:00
parent f43d144e23
commit b8dfbc5d18
3 changed files with 24 additions and 3 deletions

View File

@@ -112,6 +112,8 @@ class AbstractInstanceValue(Value):
class CompiledInstance(AbstractInstanceValue):
# This is not really a compiled class, it's just an instance from a
# compiled class.
def __init__(self, inference_state, parent_context, class_value, arguments):
super(CompiledInstance, self).__init__(inference_state, parent_context,
class_value)
@@ -130,9 +132,6 @@ class CompiledInstance(AbstractInstanceValue):
def name(self):
return compiled.CompiledValueName(self, self.class_value.name.string_name)
def is_compiled(self):
return True
def is_stub(self):
return False