mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
uuid.uuid{3,5} accept bytes in 3.12 (#9936)
This commit is contained in:
@@ -73,9 +73,20 @@ else:
|
||||
def getnode(*, getters: Unused = None) -> int: ... # undocumented
|
||||
|
||||
def uuid1(node: _Int | None = None, clock_seq: _Int | None = None) -> UUID: ...
|
||||
def uuid3(namespace: UUID, name: str) -> UUID: ...
|
||||
|
||||
if sys.version_info >= (3, 12):
|
||||
def uuid3(namespace: UUID, name: str | bytes) -> UUID: ...
|
||||
|
||||
else:
|
||||
def uuid3(namespace: UUID, name: str) -> UUID: ...
|
||||
|
||||
def uuid4() -> UUID: ...
|
||||
def uuid5(namespace: UUID, name: str) -> UUID: ...
|
||||
|
||||
if sys.version_info >= (3, 12):
|
||||
def uuid5(namespace: UUID, name: str | bytes) -> UUID: ...
|
||||
|
||||
else:
|
||||
def uuid5(namespace: UUID, name: str) -> UUID: ...
|
||||
|
||||
NAMESPACE_DNS: UUID
|
||||
NAMESPACE_URL: UUID
|
||||
|
||||
Reference in New Issue
Block a user