mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Improve __reduce__ signature accross stdlib (#7182)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user