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