mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-11 20:51:42 +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
|
||||
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,
|
||||
|
||||
Reference in New Issue
Block a user