mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
threading: add new lock methods (#11964)
This commit is contained in:
@@ -109,6 +109,9 @@ class Lock:
|
||||
def acquire(self, blocking: bool = ..., timeout: float = ...) -> bool: ...
|
||||
def release(self) -> None: ...
|
||||
def locked(self) -> bool: ...
|
||||
def acquire_lock(self, blocking: bool = ..., timeout: float = ...) -> bool: ... # undocumented
|
||||
def release_lock(self) -> None: ... # undocumented
|
||||
def locked_lock(self) -> bool: ... # undocumented
|
||||
|
||||
@final
|
||||
class _RLock:
|
||||
|
||||
Reference in New Issue
Block a user