Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion stubs/caldav/METADATA.toml
Original file line number Diff line number Diff line change
@@ -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"]
2 changes: 2 additions & 0 deletions stubs/caldav/caldav/__init__.pyi
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
from .davclient import DAVClient as DAVClient
from .objects import *

__version__: str
4 changes: 2 additions & 2 deletions stubs/caldav/caldav/objects.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ...,
Expand Down Expand Up @@ -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]: ...

Expand Down Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions stubs/caldav/caldav/requests.pyi
Original file line number Diff line number Diff line change
@@ -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): ...