Exemplo n.º 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
Exemplo n.º 2
0
 def _compare(self, other):
     return version_compare(self.value, other.value,
                            self._leftflags() | other._rightflags())
Exemplo n.º 3
0
 def __gt__(self, other):
     if isinstance(other, Version):
         return version_compare(self.value, other.value, self.flags,
                                other.flags) > 0
     return NotImplemented
Exemplo n.º 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