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
from typing_extensions import Self, TypeAlias
from urllib.parse import ParseResult, SplitResult
@@ -50,7 +51,9 @@ class DAVClient:
ssl_cert: str | tuple[str, str] | None = ...,
) -> None: ...
def __enter__(self) -> Self: ...
def __exit__(self, exc_type: object, exc_value: object, traceback: object) -> None: ...
def __exit__(
self, exc_type: type[BaseException] | None, exc_value: BaseException | None, traceback: TracebackType | None
) -> None: ...
def principal(self, *, url: str | ParseResult | SplitResult | URL | None = ...) -> Principal: ...
def calendar(
self,