mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Consistently use '= ...' for optional parameters.
This commit is contained in:
@@ -7,7 +7,7 @@ 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: ...
|
||||
def __init__(self, hex: str=..., bytes: Bytes=..., bytes_le: Bytes=..., fields: FieldsType=..., int: Int=..., version: Int=...) -> None: ...
|
||||
|
||||
@property
|
||||
def bytes(self) -> Bytes: ...
|
||||
@@ -58,7 +58,7 @@ class UUID:
|
||||
def version(self) -> str: ...
|
||||
|
||||
def getnode() -> Int: ...
|
||||
def uuid1(node: Int=None, clock_seq: Int=None) -> UUID: ...
|
||||
def uuid1(node: Int=..., clock_seq: Int=...) -> 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