mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-24 12:27:05 +08:00
Refactor execute_operation a bit
This commit is contained in:
1 parent
bd2ed8dbbd
commit
11a12d6ca8
7 files changed
+36
-17
No files matched your search
@@ -262,10 +262,13 @@ class CompiledObject(Value):
|
||||
return default
|
||||
|
||||
def execute_operation(self, other, operator):
|
||||
return create_from_access_path(
|
||||
self.inference_state,
|
||||
self.access_handle.execute_operation(other.access_handle, operator)
|
||||
)
|
||||
try:
|
||||
return ValueSet([create_from_access_path(
|
||||
self.inference_state,
|
||||
self.access_handle.execute_operation(other.access_handle, operator)
|
||||
)])
|
||||
except TypeError:
|
||||
return NO_VALUES
|
||||
|
||||
def execute_annotation(self):
|
||||
if self.access_handle.get_repr() == 'None':
|
||||
|
||||
Reference in new issue
Block a user