Improve many __(a)exit__ annotations (#9696)

This commit is contained in:
Avasam
2023-02-25 16:50:30 -05:00
committed by GitHub
parent db821101b8
commit 52ec44fa58
45 changed files with 216 additions and 81 deletions

View File

@@ -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: ...