mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-19 09:32:49 +08:00
Update caldav stubs to 1.0.* (#9668)
This commit is contained in:
@@ -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"]
|
||||
|
||||
@@ -1,2 +1,4 @@
|
||||
from .davclient import DAVClient as DAVClient
|
||||
from .objects import *
|
||||
|
||||
__version__: str
|
||||
|
||||
@@ -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
|
||||
|
||||
8
stubs/caldav/caldav/requests.pyi
Normal file
8
stubs/caldav/caldav/requests.pyi
Normal 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): ...
|
||||
Reference in New Issue
Block a user