Improve __reduce__ signature accross stdlib (#7182)

This commit is contained in:
Nikita Sobolev
2022-02-13 14:24:27 +03:00
committed by GitHub
parent 6882e513c2
commit 5014f9f50c
4 changed files with 7 additions and 6 deletions

View File

@@ -76,7 +76,7 @@ class SynchronizedBase(Generic[_CT]):
acquire: _AcquireFunc
release: Callable[[], None]
def __init__(self, obj: Any, lock: _LockLike | None = ..., ctx: Any | None = ...) -> None: ...
def __reduce__(self) -> tuple[Callable[..., Any], tuple[Any, _LockLike]]: ...
def __reduce__(self) -> tuple[Callable[[Any, _LockLike], SynchronizedBase[Any]], tuple[Any, _LockLike]]: ...
def get_obj(self) -> _CT: ...
def get_lock(self) -> _LockLike: ...
def __enter__(self) -> bool: ...