Update caldav stubs for 0.9 (#7734)

This commit is contained in:
Sebastian Rittau
2022-04-28 16:56:43 +02:00
committed by GitHub
parent f330e12f3e
commit 5535b7fc08
3 changed files with 9 additions and 4 deletions

View File

@@ -1,3 +1,3 @@
version = "0.8.*"
version = "0.9.*"
# also types-lxml and types-icalendar when those stubs are added
requires = ["types-requests", "types-vobject"]

View File

@@ -1,3 +1,4 @@
from _typeshed import Self
from collections.abc import Iterable, Mapping
from typing import Any
from typing_extensions import TypeAlias
@@ -46,6 +47,8 @@ class DAVClient:
ssl_verify_cert: bool | str = ...,
ssl_cert: str | tuple[str, str] | None = ...,
) -> None: ...
def __enter__(self: Self) -> Self: ...
def __exit__(self, exc_type: object, exc_value: object, traceback: object) -> None: ...
def principal(self, *, url: str | ParseResult | SplitResult | URL | None = ...) -> Principal: ...
def calendar(
self,

View File

@@ -68,9 +68,11 @@ class Principal(DAVObject):
class Calendar(DAVObject):
def get_supported_components(self) -> list[Any]: ...
def save_with_invites(self, ical: str, attendees, **attendeeoptions) -> None: ...
def save_event(self, ical: str, no_overwrite: bool = ..., no_create: bool = ...) -> Event: ...
def save_todo(self, ical: str, no_overwrite: bool = ..., no_create: bool = ...) -> Todo: ...
def save_journal(self, ical: str, no_overwrite: bool = ..., no_create: bool = ...) -> Journal: ...
def save_event(self, ical: str | None = ..., no_overwrite: bool = ..., no_create: bool = ..., **ical_data: Any) -> Event: ...
def save_todo(self, ical: str | None = ..., no_overwrite: bool = ..., no_create: bool = ..., **ical_data: Any) -> Todo: ...
def save_journal(
self, ical: str | None = ..., no_overwrite: bool = ..., no_create: bool = ..., **ical_data: Any
) -> Journal: ...
add_event = save_event
add_todo = save_todo
add_journal = save_journal