Example #1
0
 def __ge__(self, other: Any) -> bool:
     if isinstance(other, Version):
         return version_compare(self.value, other.value, self.flags, other.flags) >= 0
     return NotImplemented
Example #2
0
 def _compare(self, other):
     return version_compare(self.value, other.value,
                            self._leftflags() | other._rightflags())
Example #3
0
 def __gt__(self, other):
     if isinstance(other, Version):
         return version_compare(self.value, other.value, self.flags,
                                other.flags) > 0
     return NotImplemented
Example #4
0
 def __gt__(self, other: Any) -> Union[bool, 'NotImplemented']:
     if isinstance(other, Version):
         return version_compare(self.value, other.value, self.flags,
                                other.flags) > 0
     return NotImplemented