mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-20 02:41:16 +08:00
stdlib: add argument default values (#9501)
This commit is contained in:
@@ -15,7 +15,7 @@ class Arena:
|
||||
def __init__(self, size: int) -> None: ...
|
||||
else:
|
||||
fd: int
|
||||
def __init__(self, size: int, fd: int = ...) -> None: ...
|
||||
def __init__(self, size: int, fd: int = -1) -> None: ...
|
||||
|
||||
_Block: TypeAlias = tuple[Arena, int, int]
|
||||
|
||||
@@ -27,7 +27,7 @@ if sys.platform != "win32":
|
||||
def rebuild_arena(size: int, dupfd: _SupportsDetach) -> Arena: ...
|
||||
|
||||
class Heap:
|
||||
def __init__(self, size: int = ...) -> None: ...
|
||||
def __init__(self, size: int = 16384) -> None: ...
|
||||
def free(self, block: _Block) -> None: ...
|
||||
def malloc(self, size: int) -> _Block: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user