Improve >, <, etc for UUID type (#7001)

This commit is contained in:
Nikita Sobolev
2022-01-23 20:59:56 +03:00
committed by GitHub
parent 3d28f0981f
commit 64bb71d7c1

View File

@@ -1,5 +1,4 @@
import sys
from typing import Any
# Because UUID has properties called int and bytes we need to rename these temporarily.
_Int = int
@@ -71,11 +70,11 @@ class UUID:
@property
def version(self) -> _Int | None: ...
def __int__(self) -> _Int: ...
def __eq__(self, other: Any) -> bool: ...
def __lt__(self, other: Any) -> bool: ...
def __le__(self, other: Any) -> bool: ...
def __gt__(self, other: Any) -> bool: ...
def __ge__(self, other: Any) -> bool: ...
def __eq__(self, other: object) -> bool: ...
def __lt__(self, other: UUID) -> bool: ...
def __le__(self, other: UUID) -> bool: ...
def __gt__(self, other: UUID) -> bool: ...
def __ge__(self, other: UUID) -> bool: ...
def getnode() -> int: ...
def uuid1(node: _Int | None = ..., clock_seq: _Int | None = ...) -> UUID: ...