Skip to content

Commit 48cffee

Browse files
authored
Update caldav stubs to 1.0.* (#9668)
1 parent ce8c82a commit 48cffee

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

stubs/caldav/METADATA.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
version = "0.11.*"
1+
version = "1.0.*"
22
# also types-lxml and types-icalendar when those stubs are added
33
requires = ["types-requests", "types-vobject"]

stubs/caldav/caldav/__init__.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
from .davclient import DAVClient as DAVClient
22
from .objects import *
3+
4+
__version__: str

stubs/caldav/caldav/objects.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,6 @@ class Calendar(DAVObject):
148148
ignore_completed2: bool | None = ...,
149149
ignore_completed3: bool | None = ...,
150150
event: bool | None = ...,
151-
category: Incomplete | None = ...,
152-
class_: Incomplete | None = ...,
153151
filters: list[Incomplete] | None = ...,
154152
expand: bool | None = ...,
155153
start: datetime.datetime | None = ...,
@@ -195,6 +193,7 @@ class ScheduleOutbox(ScheduleMailbox):
195193
class SynchronizableCalendarObjectCollection:
196194
def __init__(self, calendar, objects, sync_token) -> None: ...
197195
def __iter__(self) -> Iterator[Any]: ...
196+
def __len__(self) -> int: ...
198197
def objects_by_url(self): ...
199198
def sync(self) -> tuple[Any, Any]: ...
200199

@@ -227,6 +226,7 @@ class CalendarObjectResource(DAVObject):
227226
increase_seqno: bool = ...,
228227
if_schedule_tag_match: bool = ...,
229228
) -> Self: ...
229+
def get_duration(self) -> datetime.timedelta: ...
230230
data: Any
231231
vobject_instance: VBase
232232
icalendar_instance: Any

stubs/caldav/caldav/requests.pyi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
from requests.auth import AuthBase
2+
3+
class HTTPBearerAuth(AuthBase):
4+
password: str
5+
def __init__(self, password: str) -> None: ...
6+
def __eq__(self, other: object) -> bool: ...
7+
def __ne__(self, other: object) -> bool: ...
8+
def __call__(self, r): ...

0 commit comments

Comments
 (0)