stdlib: add argument default values (#9501)

This commit is contained in:
Jelle Zijlstra
2023-01-18 00:37:34 -08:00
committed by GitHub
parent 6cb934291f
commit ddfaca3200
272 changed files with 2529 additions and 2467 deletions

View File

@@ -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: ...