8000 multiprocessing: add `shutdown_timeout` param to BaseManager (#7692) · python/typeshed@573539b · GitHub
[go: up one dir, main page]

Skip to content

Commit 573539b

Browse files
multiprocessing: add shutdown_timeout param to BaseManager (#7692)
python/cpython#32112
1 parent 85a6f0f commit 573539b

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

stdlib/multiprocessing/managers.pyi

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7 C49E 6,9 +76,21 @@ class Server:
7676
def accept_connection(self, c: Connection, name: str) -> None: ...
7777

7878
class BaseManager:
79-
def __init__(
80-
self, address: Any | None = ..., authkey: bytes | None = ..., serializer: str = ..., ctx: BaseContext | None = ...
81-
) -> None: ...
79+
if sys.version_info >= (3, 11):
80+
def __init__(
81+
self,
82+
address: Any | None = ...,
83+
authkey: bytes | None = ...,
84+
serializer: str = ...,
85+
ctx: BaseContext | None = ...,
86+
*,
87+
shutdown_timeout: float = ...,
88+
) -> None: ...
89+
else:
90+
def __init__(
91+
self, address: Any | None = ..., authkey: bytes | None = ..., serializer: str = ..., ctx: BaseContext | None = ...
92+
) -> None: ...
93+
8294
def get_server(self) -> Server: ...
8395
def connect(self) -> None: ...
8496
def start(self, initializer: Callable[..., Any] | None = ..., initargs: Iterable[Any] = ...) -> None: ...

0 commit comments

Comments
 (0)
0