|
1 |
| -from typing import NamedTuple, Any, Tuple |
| 1 | +from typing import Any, Tuple, Optional |
2 | 2 |
|
3 |
| -_int_type = int |
4 |
| - |
5 |
| -class _UUIDFields(NamedTuple('_UUIDFields', |
6 |
| - [('time_low', int), ('time_mid', int), ('time_hi_version', int), ('clock_seq_hi_variant', int), ('clock_seq_low', int), ('node', int)])): |
7 |
| - time = ... # type: int |
8 |
| - clock_seq = ... # type: int |
| 3 | +_int = int |
9 | 4 |
|
10 | 5 | class UUID:
|
11 |
| - def __init__(self, hex: str = ..., bytes: str = ..., bytes_le: str = ..., |
12 |
| - fields: Tuple[int, int, int, int, int, int] = ..., int: int = ..., version: Any = ...) -> None: ... |
| 6 | + def __init__(self, hex: Optional[str] = ..., bytes: Optional[str] = ..., |
| 7 | + bytes_le: Optional[str] = ..., |
| 8 | + fields: Optional[Tuple[int, int, int, int, int, int]] = ..., |
| 9 | + int: Optional[int] = ..., |
| 10 | + version: Optional[int] = ...) -> None: ... |
| 11 | + int = ... # type: _int |
| 12 | + def get_bytes(self) -> _int: ... |
13 | 13 | bytes = ... # type: str
|
| 14 | + def get_bytes_le(self) -> str: ... |
14 | 15 | bytes_le = ... # type: str
|
15 |
| - fields = ... # type: _UUIDFields |
| 16 | + def get_fields(self) -> Tuple[_int, _int, _int, _int, _int, _int]: ... |
| 17 | + fields = ... # type: Tuple[_int, _int, _int, _int, _int, _int] |
| 18 | + def get_time_low(self) -> _int: ... |
| 19 | + time_low = ... # type: _int |
| 20 | + def get_time_mid(self) -> _int: ... |
| 21 | + time_mid = ... # type: _int |
| 22 | + def get_time_hi_version(self) -> _int: ... |
| 23 | + time_hi_version = ... # type: _int |
| 24 | + def get_clock_seq_hi_variant(self) -> _int: ... |
| 25 | + clock_seq_hi_variant = ... # type: _int |
| 26 | + def get_clock_seq_low(self) -> _int: ... |
| 27 | + clock_seq_low = ... # type: _int |
| 28 | + def get_time(self) -> _int: ... |
| 29 | + time = ... # type: _int |
| 30 | + def get_clock_seq(self) -> _int: ... |
| 31 | + clock_seq = ... # type: _int |
| 32 | + def get_node(self) -> _int: ... |
| 33 | + node = ... # type: _int |
| 34 | + def get_hex(self) -> str: ... |
16 | 35 | hex = ... # type: str
|
17 |
| - int = ... # type: _int_type |
| 36 | + def get_urn(self) -> str: ... |
18 | 37 | urn = ... # type: str
|
19 |
| - variant = ... # type: _int_type |
20 |
| - version = ... # type: _int_type |
| 38 | + def get_variant(self) -> _int: ... |
| 39 | + variant = ... # type: _int |
| 40 | + def get_version(self) -> _int: ... |
| 41 | + version = ... # type: _int |
21 | 42 |
|
22 | 43 | RESERVED_NCS = ... # type: int
|
23 | 44 | RFC_4122 = ... # type: int
|
|
0 commit comments