massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / stdlib / 2and3 / uuid.pyi
1 # Stubs for uuid\r
2 \r
3 import sys\r
4 from typing import Tuple, Optional, Any\r
5 \r
6 # Because UUID has properties called int and bytes we need to rename these temporarily.\r
7 _Int = int\r
8 _Bytes = bytes\r
9 _FieldsType = Tuple[int, int, int, int, int, int]\r
10 \r
11 class UUID:\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
17     @property\r
18     def bytes(self) -> _Bytes: ...\r
19     @property\r
20     def bytes_le(self) -> _Bytes: ...\r
21     @property\r
22     def clock_seq(self) -> _Int: ...\r
23     @property\r
24     def clock_seq_hi_variant(self) -> _Int: ...\r
25     @property\r
26     def clock_seq_low(self) -> _Int: ...\r
27     @property\r
28     def fields(self) -> _FieldsType: ...\r
29     @property\r
30     def hex(self) -> str: ...\r
31     @property\r
32     def int(self) -> _Int: ...\r
33     @property\r
34     def node(self) -> _Int: ...\r
35     @property\r
36     def time(self) -> _Int: ...\r
37     @property\r
38     def time_hi_version(self) -> _Int: ...\r
39     @property\r
40     def time_low(self) -> _Int: ...\r
41     @property\r
42     def time_mid(self) -> _Int: ...\r
43     @property\r
44     def urn(self) -> str: ...\r
45     @property\r
46     def variant(self) -> str: ...\r
47     @property\r
48     def version(self) -> Optional[_Int]: ...\r
49 \r
50     def __int__(self) -> _Int: ...\r
51 \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
58     else:\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
75 \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
81 \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