1
0
forked from VimPlug/jedi

Properly handle __get__ in properties/partials

This commit is contained in:
Dave Halter
2020-06-07 14:18:45 +02:00
parent 105c097fea
commit 34cc8e9ad7

View File

@@ -395,7 +395,7 @@ class PropertyObject(AttributeOverwrite, ValueWrapper):
def py__get__(self, instance, class_value):
if instance is None:
return NO_VALUES
return ValueSet([self])
return self._function.execute_with_values(instance)
@publish_method('deleter')
@@ -518,6 +518,8 @@ class PartialObject(ValueWrapper):
class PartialMethodObject(PartialObject):
def py__get__(self, instance, class_value):
if instance is None:
return ValueSet([self])
return ValueSet([PartialObject(self._actual_value, self._arguments, instance)])