mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
stdlib: add argument default values (#9501)
This commit is contained in:
@@ -16,12 +16,12 @@ class SafeUUID(Enum):
|
||||
class UUID:
|
||||
def __init__(
|
||||
self,
|
||||
hex: str | None = ...,
|
||||
bytes: _Bytes | None = ...,
|
||||
bytes_le: _Bytes | None = ...,
|
||||
fields: _FieldsType | None = ...,
|
||||
int: _Int | None = ...,
|
||||
version: _Int | None = ...,
|
||||
hex: str | None = None,
|
||||
bytes: _Bytes | None = None,
|
||||
bytes_le: _Bytes | None = None,
|
||||
fields: _FieldsType | None = None,
|
||||
int: _Int | None = None,
|
||||
version: _Int | None = None,
|
||||
*,
|
||||
is_safe: SafeUUID = ...,
|
||||
) -> None: ...
|
||||
@@ -72,7 +72,7 @@ if sys.version_info >= (3, 9):
|
||||
else:
|
||||
def getnode(*, getters: Unused = ...) -> int: ... # undocumented
|
||||
|
||||
def uuid1(node: _Int | None = ..., clock_seq: _Int | None = ...) -> UUID: ...
|
||||
def uuid1(node: _Int | None = None, clock_seq: _Int | None = None) -> UUID: ...
|
||||
def uuid3(namespace: UUID, name: str) -> UUID: ...
|
||||
def uuid4() -> UUID: ...
|
||||
def uuid5(namespace: UUID, name: str) -> UUID: ...
|
||||
|
||||
Reference in New Issue
Block a user