mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Improve >, <, etc for UUID type (#7001)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user