mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 14:34:31 +08:00
Python 2
This commit is contained in:
@@ -268,7 +268,7 @@ class CompiledObject(Value):
|
|||||||
if self.access_handle.get_repr() == 'None':
|
if self.access_handle.get_repr() == 'None':
|
||||||
# None as an annotation doesn't need to be executed.
|
# None as an annotation doesn't need to be executed.
|
||||||
return ValueSet([self])
|
return ValueSet([self])
|
||||||
return super().execute_annotation()
|
return super(CompiledObject, self).execute_annotation()
|
||||||
|
|
||||||
def negate(self):
|
def negate(self):
|
||||||
return create_from_access_path(self.inference_state, self.access_handle.negate())
|
return create_from_access_path(self.inference_state, self.access_handle.negate())
|
||||||
|
|||||||
Reference in New Issue
Block a user