mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-23 20:31:32 +08:00
Added Lock.locked() method stub (#633)
https://docs.python.org/3/library/asyncio-sync.html#asyncio.Lock.locked
This commit is contained in:
committed by
Guido van Rossum
parent
0c2e9cf3be
commit
96123f8474
@@ -91,6 +91,7 @@ class Lock:
|
||||
else:
|
||||
def acquire(self, blocking: bool = ...) -> bool: ...
|
||||
def release(self) -> None: ...
|
||||
def locked(self) -> bool: ...
|
||||
|
||||
|
||||
class _RLock:
|
||||
|
||||
Reference in New Issue
Block a user