コード例 #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
ファイル: __init__.py プロジェクト: AndreyMZ/py-libversion
 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