From 2255e6c69a9508c2d04254ff652022efed7411cd Mon Sep 17 00:00:00 2001 From: Isaac Goldberg Date: Wed, 9 Mar 2016 19:11:48 -0800 Subject: [PATCH] Add tornado.locks module --- third_party/2.7/tornado/locks.pyi | 50 +++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 third_party/2.7/tornado/locks.pyi diff --git a/third_party/2.7/tornado/locks.pyi b/third_party/2.7/tornado/locks.pyi new file mode 100644 index 000000000..3ad107cdc --- /dev/null +++ b/third_party/2.7/tornado/locks.pyi @@ -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): ... +