diff --git a/stdlib/threading.pyi b/stdlib/threading.pyi index b9b44e0be..0ed292f4c 100644 --- a/stdlib/threading.pyi +++ b/stdlib/threading.pyi @@ -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):