mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-11 05:52:53 +08:00
Improve many __(a)exit__ annotations (#9696)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
from collections.abc import Iterable, Mapping
|
||||
from types import TracebackType
|
||||
from typing import Any, TextIO, overload
|
||||
from typing_extensions import Literal, TypeAlias
|
||||
|
||||
@@ -194,7 +195,9 @@ class Promise(Result):
|
||||
def __init__(self, runner) -> None: ...
|
||||
def join(self): ...
|
||||
def __enter__(self): ...
|
||||
def __exit__(self, exc_type, exc_value, traceback) -> None: ...
|
||||
def __exit__(
|
||||
self, exc_type: type[BaseException] | None, exc_value: BaseException | None, traceback: TracebackType | None
|
||||
) -> None: ...
|
||||
|
||||
def normalize_hide(val, out_stream=..., err_stream=...): ...
|
||||
def default_encoding() -> str: ...
|
||||
|
||||
Reference in New Issue
Block a user