From f39f20c4dd93eebf76741d0cb36499391d2efd48 Mon Sep 17 00:00:00 2001 From: Rebecca Chen Date: Mon, 21 Mar 2022 23:32:15 -0700 Subject: [PATCH] Fix the type signature of multiprocessing.managers.BaseManager.__exit__ (#7529) All parameters should accept None. --- stdlib/multiprocessing/managers.pyi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stdlib/multiprocessing/managers.pyi b/stdlib/multiprocessing/managers.pyi index fef3e1e21..a0f76b636 100644 --- a/stdlib/multiprocessing/managers.pyi +++ b/stdlib/multiprocessing/managers.pyi @@ -96,7 +96,9 @@ class BaseManager: create_method: bool = ..., ) -> None: ... def __enter__(self: Self) -> Self: ... - def __exit__(self, exc_type: type[BaseException], exc_val: BaseException, exc_tb: TracebackType) -> None: ... + def __exit__( + self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None + ) -> None: ... # Conflicts with method names _dict = dict