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

This commit is contained in:
Avasam authored and GitHub committed 2023-02-25 21:50:30 +00:00
1 parent db821101b8
commit 52ec44fa58
45 files changed
+216 -81

No files matched your search

+2 -1
View File
@@ -1,4 +1,5 @@
import sys
from _typeshed import Unused
from collections.abc import Callable, Generator, Iterable, Iterator, Sequence
from typing import Any, NoReturn, overload
from typing_extensions import Literal, Self
@@ -80,7 +81,7 @@ class Client:
session_id: str | None = ...,
) -> None: ...
def __enter__(self) -> Self: ...
def __exit__(self, *args: object) -> None: ...
def __exit__(self, *args: Unused) -> None: ...
@property
def name(self) -> str: ...
@property