Skip to content

Commit 37aa941

Browse files
tobixenclaude
andcommitted
feat: deprecate calendar_multiget in favour of multiget
calendar_multiget() now emits a DeprecationWarning directing callers to use multiget() instead. Slated for removal in v4.0. prompt: extract the deprecation warning from the multiget async-aware commit into a separate stalled PR for v4.0 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent aa848a0 commit 37aa941

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

caldav/collection.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1161,7 +1161,15 @@ def calendar_multiget(self, *largs, **kwargs):
11611161
@author mtorange@gmail.com
11621162
(refactored by Tobias)
11631163
This is for backward compatibility. It may be removed in a later release.
1164+
1165+
.. deprecated::
1166+
Use :meth:`multiget` instead.
11641167
"""
1168+
warnings.warn(
1169+
"calendar_multiget is deprecated, use multiget instead",
1170+
DeprecationWarning,
1171+
stacklevel=2,
1172+
)
11651173
return list(self.multiget(*largs, **kwargs))
11661174

11671175
def date_search(

0 commit comments

Comments
 (0)