mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
add (overwrite with) mypy stubs, if available
This commit is contained in:
73
stdlib/3/uuid.pyi
Normal file
73
stdlib/3/uuid.pyi
Normal file
@@ -0,0 +1,73 @@
|
||||
# Stubs for uuid
|
||||
|
||||
from typing import Tuple
|
||||
|
||||
Int = __builtins__.int
|
||||
Bytes = __builtins__.bytes
|
||||
FieldsType = Tuple[Int, Int, Int, Int, Int, Int]
|
||||
|
||||
class UUID:
|
||||
def __init__(self, hex: str=None, bytes: Bytes=None, bytes_le: Bytes=None, fields: FieldsType=None, int: Int=None, version: Int=None) -> None: ...
|
||||
|
||||
@property
|
||||
def bytes(self) -> Bytes: ...
|
||||
|
||||
@property
|
||||
def bytes_le(self) -> Bytes: ...
|
||||
|
||||
@property
|
||||
def clock_seq(self) -> Int: ...
|
||||
|
||||
@property
|
||||
def clock_seq_hi_variant(self) -> Int: ...
|
||||
|
||||
@property
|
||||
def clock_seq_low(self) -> Int: ...
|
||||
|
||||
@property
|
||||
def fields(self) -> FieldsType: ...
|
||||
|
||||
@property
|
||||
def hex(self) -> str: ...
|
||||
|
||||
@property
|
||||
def int(self) -> Int: ...
|
||||
|
||||
@property
|
||||
def node(self) -> Int: ...
|
||||
|
||||
@property
|
||||
def time(self) -> Int: ...
|
||||
|
||||
@property
|
||||
def time_hi_version(self) -> Int: ...
|
||||
|
||||
@property
|
||||
def time_low(self) -> Int: ...
|
||||
|
||||
@property
|
||||
def time_mid(self) -> Int: ...
|
||||
|
||||
@property
|
||||
def urn(self) -> str: ...
|
||||
|
||||
@property
|
||||
def variant(self) -> str: ...
|
||||
|
||||
@property
|
||||
def version(self) -> str: ...
|
||||
|
||||
def getnode() -> Int: ...
|
||||
def uuid1(node: Int=None, clock_seq: Int=None) -> UUID: ...
|
||||
def uuid3(namespace: UUID, name: str) -> UUID: ...
|
||||
def uuid4() -> UUID: ...
|
||||
def uuid5(namespace: UUID, name: str) -> UUID: ...
|
||||
|
||||
NAMESPACE_DNS = ... # type: UUID
|
||||
NAMESPACE_URL = ... # type: UUID
|
||||
NAMESPACE_OID = ... # type: UUID
|
||||
NAMESPACE_X500 = ... # type: UUID
|
||||
RESERVED_NCS = ... # type: str
|
||||
RFC_4122 = ... # type: str
|
||||
RESERVED_MICROSOFT = ... # type: str
|
||||
RESERVED_FUTURE = ... # type: str
|
||||
Reference in New Issue
Block a user