diff options
Diffstat (limited to 'python/mediumlevelil.py')
| -rw-r--r-- | python/mediumlevelil.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/python/mediumlevelil.py b/python/mediumlevelil.py index 8941b3d4..61fb5279 100644 --- a/python/mediumlevelil.py +++ b/python/mediumlevelil.py @@ -273,28 +273,28 @@ class MediumLevelILInstruction: def __repr__(self): return "<il: %s>" % str(self) - def __eq__(self, other:'MediumLevelILInstruction'): - if not isinstance(other, self.__class__): + def __eq__(self, other:'MediumLevelILInstruction') -> bool: + if not isinstance(other, MediumLevelILInstruction): return NotImplemented return self.function == other.function and self.expr_index == other.expr_index - def __lt__(self, other:'MediumLevelILInstruction'): - if not isinstance(other, self.__class__): + def __lt__(self, other:'MediumLevelILInstruction') -> bool: + if not isinstance(other, MediumLevelILInstruction): return NotImplemented return self.function == other.function and self.expr_index < other.expr_index - def __le__(self, other:'MediumLevelILInstruction'): - if not isinstance(other, self.__class__): + def __le__(self, other:'MediumLevelILInstruction') -> bool: + if not isinstance(other, MediumLevelILInstruction): return NotImplemented return self.function == other.function and self.expr_index <= other.expr_index - def __gt__(self, other:'MediumLevelILInstruction'): - if not isinstance(other, self.__class__): + def __gt__(self, other:'MediumLevelILInstruction') -> bool: + if not isinstance(other, MediumLevelILInstruction): return NotImplemented return self.function == other.function and self.expr_index > other.expr_index - def __ge__(self, other:'MediumLevelILInstruction'): - if not isinstance(other, self.__class__): + def __ge__(self, other:'MediumLevelILInstruction') -> bool: + if not isinstance(other, MediumLevelILInstruction): return NotImplemented return self.function == other.function and self.expr_index >= other.expr_index |
