Fix the type signature of multiprocessing.managers.BaseManager.__exit__ (#7529)

All parameters should accept None.
This commit is contained in:
Rebecca Chen
2022-03-21 23:32:15 -07:00
committed by GitHub
parent eb252afb18
commit f39f20c4dd

View File

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