mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 14:04:26 +08:00
py__bool__ should be called on CompiledObject in CompiledValue
This commit is contained in:
@@ -21,7 +21,7 @@ class CompiledValue(ContextWrapper):
|
|||||||
|
|
||||||
def __getattribute__(self, name):
|
def __getattribute__(self, name):
|
||||||
if name in ('get_safe_value', 'execute_operation', 'access_handle',
|
if name in ('get_safe_value', 'execute_operation', 'access_handle',
|
||||||
'negate'):
|
'negate', 'py__bool__'):
|
||||||
return getattr(self._compiled_obj, name)
|
return getattr(self._compiled_obj, name)
|
||||||
return super(CompiledValue, self).__getattribute__(name)
|
return super(CompiledValue, self).__getattribute__(name)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user