4 from typing import Tuple, Optional, Any
\r
6 # Because UUID has properties called int and bytes we need to rename these temporarily.
\r
9 _FieldsType = Tuple[int, int, int, int, int, int]
\r
12 def __init__(self, hex: Optional[str] = ..., bytes: Optional[_Bytes] = ...,
\r
13 bytes_le: Optional[_Bytes] = ...,
\r
14 fields: Optional[_FieldsType] = ...,
\r
15 int: Optional[_Int] = ...,
\r
16 version: Optional[_Int] = ...) -> None: ...
\r
18 def bytes(self) -> _Bytes: ...
\r
20 def bytes_le(self) -> _Bytes: ...
\r
22 def clock_seq(self) -> _Int: ...
\r
24 def clock_seq_hi_variant(self) -> _Int: ...
\r
26 def clock_seq_low(self) -> _Int: ...
\r
28 def fields(self) -> _FieldsType: ...
\r
30 def hex(self) -> str: ...
\r
32 def int(self) -> _Int: ...
\r
34 def node(self) -> _Int: ...
\r
36 def time(self) -> _Int: ...
\r
38 def time_hi_version(self) -> _Int: ...
\r
40 def time_low(self) -> _Int: ...
\r
42 def time_mid(self) -> _Int: ...
\r
44 def urn(self) -> str: ...
\r
46 def variant(self) -> str: ...
\r
48 def version(self) -> Optional[_Int]: ...
\r
50 def __int__(self) -> _Int: ...
\r
52 if sys.version_info >= (3,):
\r
53 def __eq__(self, other: Any) -> bool: ...
\r
54 def __lt__(self, other: Any) -> bool: ...
\r
55 def __le__(self, other: Any) -> bool: ...
\r
56 def __gt__(self, other: Any) -> bool: ...
\r
57 def __ge__(self, other: Any) -> bool: ...
\r
59 def get_bytes(self) -> _Bytes: ...
\r
60 def get_bytes_le(self) -> _Bytes: ...
\r
61 def get_clock_seq(self) -> _Int: ...
\r
62 def get_clock_seq_hi_variant(self) -> _Int: ...
\r
63 def get_clock_seq_low(self) -> _Int: ...
\r
64 def get_fields(self) -> _FieldsType: ...
\r
65 def get_hex(self) -> str: ...
\r
66 def get_node(self) -> _Int: ...
\r
67 def get_time(self) -> _Int: ...
\r
68 def get_time_hi_version(self) -> _Int: ...
\r
69 def get_time_low(self) -> _Int: ...
\r
70 def get_time_mid(self) -> _Int: ...
\r
71 def get_urn(self) -> str: ...
\r
72 def get_variant(self) -> str: ...
\r
73 def get_version(self) -> Optional[_Int]: ...
\r
74 def __cmp__(self, other: Any) -> _Int: ...
\r
76 def getnode() -> int: ...
\r
77 def uuid1(node: Optional[_Int] = ..., clock_seq: Optional[_Int] = ...) -> UUID: ...
\r
78 def uuid3(namespace: UUID, name: str) -> UUID: ...
\r
79 def uuid4() -> UUID: ...
\r
80 def uuid5(namespace: UUID, name: str) -> UUID: ...
\r
82 NAMESPACE_DNS = ... # type: UUID
\r
83 NAMESPACE_URL = ... # type: UUID
\r
84 NAMESPACE_OID = ... # type: UUID
\r
85 NAMESPACE_X500 = ... # type: UUID
\r
86 RESERVED_NCS = ... # type: str
\r
87 RFC_4122 = ... # type: str
\r
88 RESERVED_MICROSOFT = ... # type: str
\r
89 RESERVED_FUTURE = ... # type: str
\r