mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-11-01 09:16:22 +08:00
Improve many __(a)exit__ annotations (#9696)
This commit is contained in:
1 parent
db821101b8
commit
52ec44fa58
45 files changed
+216
-81
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user