caldav: add verify_expand to Calendar.date_search (#7996)

Co-authored-by: hauntsaninja <>
This commit is contained in:
Shantanu
2022-05-30 18:29:19 -07:00
committed by GitHub
parent bf68214245
commit d736bb9d85

View File

@@ -91,14 +91,20 @@ class Calendar(DAVObject):
end: datetime.datetime | None = ...,
compfilter: Literal["VEVENT"] = ...,
expand: bool | Literal["maybe"] = ...,
verify_expand: bool = ...,
) -> list[Event]: ...
@overload
def date_search(
self, start: datetime.datetime, *, compfilter: None, expand: bool | Literal["maybe"] = ...
self, start: datetime.datetime, *, compfilter: None, expand: bool | Literal["maybe"] = ..., verify_expand: bool = ...
) -> list[CalendarObjectResource]: ...
@overload
def date_search(
self, start: datetime.datetime, end: datetime.datetime | None, compfilter: None, expand: bool | Literal["maybe"] = ...
self,
start: datetime.datetime,
end: datetime.datetime | None,
compfilter: None,
expand: bool | Literal["maybe"] = ...,
verify_expand: bool = ...,
) -> list[CalendarObjectResource]: ...
@overload
def search(self, xml, comp_class: None = ...) -> list[CalendarObjectResource]: ...