mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
threading: Semaphore.__exit__ & _RLock.__exit__ always return None (#7195)
`_RLock.__exit__`:1d6ce67c29/Lib/threading.py (L199)`Semaphore.__exit__`:1d6ce67c29/Lib/threading.py (L487)
This commit is contained in:
@@ -168,7 +168,7 @@ class _RLock:
|
||||
__enter__ = acquire
|
||||
def __exit__(
|
||||
self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None
|
||||
) -> bool | None: ...
|
||||
) -> None: ...
|
||||
|
||||
RLock = _RLock
|
||||
|
||||
@@ -190,7 +190,7 @@ class Semaphore:
|
||||
def __init__(self, value: int = ...) -> None: ...
|
||||
def __exit__(
|
||||
self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None
|
||||
) -> bool | None: ...
|
||||
) -> None: ...
|
||||
def acquire(self, blocking: bool = ..., timeout: float | None = ...) -> bool: ...
|
||||
def __enter__(self, blocking: bool = ..., timeout: float | None = ...) -> bool: ...
|
||||
if sys.version_info >= (3, 9):
|
||||
|
||||
Reference in New Issue
Block a user