threading: fixes for _DummyThread and _RLock (#6437)

Co-authored-by: hauntsaninja <>
This commit is contained in:
Shantanu
2021-11-28 20:11:54 -08:00
committed by GitHub
parent e05a7423c4
commit 0bad0691be

View File

@@ -66,7 +66,8 @@ class Thread:
def isDaemon(self) -> bool: ...
def setDaemon(self, daemonic: bool) -> None: ...
class _DummyThread(Thread): ...
class _DummyThread(Thread):
def __init__(self) -> None: ...
class Lock:
def __init__(self) -> None: ...
@@ -80,12 +81,12 @@ class Lock:
class _RLock:
def __init__(self) -> None: ...
def __enter__(self) -> bool: ...
def acquire(self, blocking: bool = ..., timeout: float = ...) -> bool: ...
def release(self) -> None: ...
__enter__ = acquire
def __exit__(
self, exc_type: Type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None
) -> bool | None: ...
def acquire(self, blocking: bool = ..., timeout: float = ...) -> bool: ...
def release(self) -> None: ...
RLock = _RLock