mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Add tornado.locks module
This commit is contained in:
50
third_party/2.7/tornado/locks.pyi
vendored
Normal file
50
third_party/2.7/tornado/locks.pyi
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
# Stubs for tornado.locks (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any
|
||||
|
||||
class _TimeoutGarbageCollector:
|
||||
def __init__(self): ...
|
||||
|
||||
class Condition(_TimeoutGarbageCollector):
|
||||
io_loop = ... # type: Any
|
||||
def __init__(self): ...
|
||||
def wait(self, timeout=None): ...
|
||||
def notify(self, n=1): ...
|
||||
def notify_all(self): ...
|
||||
|
||||
class Event:
|
||||
def __init__(self): ...
|
||||
def is_set(self): ...
|
||||
def set(self): ...
|
||||
def clear(self): ...
|
||||
def wait(self, timeout=None): ...
|
||||
|
||||
class _ReleasingContextManager:
|
||||
def __init__(self, obj): ...
|
||||
def __enter__(self): ...
|
||||
def __exit__(self, exc_type, exc_val, exc_tb): ...
|
||||
|
||||
class Semaphore(_TimeoutGarbageCollector):
|
||||
def __init__(self, value=1): ...
|
||||
def release(self): ...
|
||||
def acquire(self, timeout=None): ...
|
||||
def __enter__(self): ...
|
||||
__exit__ = ... # type: Any
|
||||
def __aenter__(self): ...
|
||||
def __aexit__(self, typ, value, tb): ...
|
||||
|
||||
class BoundedSemaphore(Semaphore):
|
||||
def __init__(self, value=1): ...
|
||||
def release(self): ...
|
||||
|
||||
class Lock:
|
||||
def __init__(self): ...
|
||||
def acquire(self, timeout=None): ...
|
||||
def release(self): ...
|
||||
def __enter__(self): ...
|
||||
__exit__ = ... # type: Any
|
||||
def __aenter__(self): ...
|
||||
def __aexit__(self, typ, value, tb): ...
|
||||
|
||||
Reference in New Issue
Block a user