Update caldav stubs to 1.0.* (#9668)

This commit is contained in:
Alex Waygood
2023-02-03 14:38:16 +00:00
committed by GitHub
parent ce8c82a27c
commit 48cffeeea6
4 changed files with 13 additions and 3 deletions

View File

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

View File

@@ -1,2 +1,4 @@
from .davclient import DAVClient as DAVClient
from .objects import *
__version__: str

View File

@@ -148,8 +148,6 @@ class Calendar(DAVObject):
ignore_completed2: bool | None = ...,
ignore_completed3: bool | None = ...,
event: bool | None = ...,
category: Incomplete | None = ...,
class_: Incomplete | None = ...,
filters: list[Incomplete] | None = ...,
expand: bool | None = ...,
start: datetime.datetime | None = ...,
@@ -195,6 +193,7 @@ class ScheduleOutbox(ScheduleMailbox):
class SynchronizableCalendarObjectCollection:
def __init__(self, calendar, objects, sync_token) -> None: ...
def __iter__(self) -> Iterator[Any]: ...
def __len__(self) -> int: ...
def objects_by_url(self): ...
def sync(self) -> tuple[Any, Any]: ...
@@ -227,6 +226,7 @@ class CalendarObjectResource(DAVObject):
increase_seqno: bool = ...,
if_schedule_tag_match: bool = ...,
) -> Self: ...
def get_duration(self) -> datetime.timedelta: ...
data: Any
vobject_instance: VBase
icalendar_instance: Any

View File

@@ -0,0 +1,8 @@
from requests.auth import AuthBase
class HTTPBearerAuth(AuthBase):
password: str
def __init__(self, password: str) -> None: ...
def __eq__(self, other: object) -> bool: ...
def __ne__(self, other: object) -> bool: ...
def __call__(self, r): ...