mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Remove default for size parameter to multiprocessing.heap.Heap (#9658)
It's system-dependent. stubdefaulter told me `multiprocessing.heap.Heap: parameter size: stub default 4096 != runtime default 16384`, which presumably means it's 4096 on @AlexWaygood's system and 16384 on mine. I looked in the code and the default is set to `mmap.PAGESIZE`, which in turn is set from some system call at import time.
This commit is contained in:
@@ -27,7 +27,7 @@ if sys.platform != "win32":
|
||||
def rebuild_arena(size: int, dupfd: _SupportsDetach) -> Arena: ...
|
||||
|
||||
class Heap:
|
||||
def __init__(self, size: int = 4096) -> None: ...
|
||||
def __init__(self, size: int = ...) -> None: ...
|
||||
def free(self, block: _Block) -> None: ...
|
||||
def malloc(self, size: int) -> _Block: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user