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:
@@ -12,7 +12,7 @@ def pack_into(fmt: AnyStr, buffer: Any, offset: int, *v: Any) -> None: ...
|
||||
|
||||
# TODO buffer type
|
||||
def unpack(fmt: AnyStr, buffer: Any) -> Tuple[Any, ...]: ...
|
||||
def unpack_from(fmt: AnyStr, buffer: Any, offset: int = 0) -> Tuple[Any, ...]: ...
|
||||
def unpack_from(fmt: AnyStr, buffer: Any, offset: int = ...) -> Tuple[Any, ...]: ...
|
||||
|
||||
def calcsize(fmt: AnyStr) -> int: ...
|
||||
|
||||
@@ -27,4 +27,4 @@ class Struct:
|
||||
def pack_into(self, buffer: Any, offset: int, *v: Any) -> None: ...
|
||||
# TODO buffer type
|
||||
def unpack(self, buffer: Any) -> Tuple[Any, ...]: ...
|
||||
def unpack_from(self, buffer: Any, offset: int = 0) -> Tuple[Any, ...]: ...
|
||||
def unpack_from(self, buffer: Any, offset: int = ...) -> Tuple[Any, ...]: ...
|
||||
|
||||
Reference in New Issue
Block a user