mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-20 02:41:16 +08:00
Third-party stubs: Improve several __exit__ methods (#7575)
This commit is contained in:
@@ -61,7 +61,9 @@ class Events(Generic[_T, _AbstractListener_T]):
|
||||
start: Callable[[], None]
|
||||
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
|
||||
def __enter__(self: Self) -> Self: ...
|
||||
def __exit__(self, *args: Any) -> None: ...
|
||||
def __exit__(
|
||||
self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None
|
||||
) -> None: ...
|
||||
def __iter__(self: Self) -> Self: ...
|
||||
def __next__(self) -> _T: ...
|
||||
def get(self, timeout: float | None = ...) -> _T | None: ...
|
||||
|
||||
Reference in New Issue
Block a user