mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-31 00:24:24 +08:00
threading: fixes for _DummyThread and _RLock (#6437)
Co-authored-by: hauntsaninja <>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user