mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 13:34:58 +08:00
multiprocessing: add shutdown_timeout param to BaseManager (#7692)
python/cpython#32112
This commit is contained in:
@@ -76,9 +76,21 @@ class Server:
|
||||
def accept_connection(self, c: Connection, name: str) -> None: ...
|
||||
|
||||
class BaseManager:
|
||||
def __init__(
|
||||
self, address: Any | None = ..., authkey: bytes | None = ..., serializer: str = ..., ctx: BaseContext | None = ...
|
||||
) -> None: ...
|
||||
if sys.version_info >= (3, 11):
|
||||
def __init__(
|
||||
self,
|
||||
address: Any | None = ...,
|
||||
authkey: bytes | None = ...,
|
||||
serializer: str = ...,
|
||||
ctx: BaseContext | None = ...,
|
||||
*,
|
||||
shutdown_timeout: float = ...,
|
||||
) -> None: ...
|
||||
else:
|
||||
def __init__(
|
||||
self, address: Any | None = ..., authkey: bytes | None = ..., serializer: str = ..., ctx: BaseContext | None = ...
|
||||
) -> None: ...
|
||||
|
||||
def get_server(self) -> Server: ...
|
||||
def connect(self) -> None: ...
|
||||
def start(self, initializer: Callable[..., Any] | None = ..., initargs: Iterable[Any] = ...) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user