Skip to content

Commit b15483f

Browse files
authored
Bump icalendar to 6.3.* (#14078)
1 parent 1267684 commit b15483f

File tree

7 files changed

+57
-7
lines changed

7 files changed

+57
-7
lines changed

stubs/icalendar/METADATA.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = "6.2.*"
1+
version = "6.3.*"
22
upstream_repository = "https://github.com/collective/icalendar"
33
requires = ["types-python-dateutil", "types-pytz"]
44

stubs/icalendar/icalendar/__init__.pyi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ from .enums import (
2525
from .error import (
2626
ComponentEndMissing as ComponentEndMissing,
2727
ComponentStartMissing as ComponentStartMissing,
28+
FeatureWillBeRemovedInFutureVersion as FeatureWillBeRemovedInFutureVersion,
2829
IncompleteAlarmInformation as IncompleteAlarmInformation,
2930
IncompleteComponent as IncompleteComponent,
3031
InvalidCalendar as InvalidCalendar,
@@ -38,6 +39,7 @@ from .prop import (
3839
vCalAddress as vCalAddress,
3940
vDate as vDate,
4041
vDatetime as vDatetime,
42+
vDDDLists as vDDDLists,
4143
vDDDTypes as vDDDTypes,
4244
vDuration as vDuration,
4345
vFloat as vFloat,
@@ -72,6 +74,7 @@ __all__ = [
7274
"vCalAddress",
7375
"vDatetime",
7476
"vDate",
77+
"vDDDLists",
7578
"vDDDTypes",
7679
"vDuration",
7780
"vFloat",
@@ -114,6 +117,7 @@ __all__ = [
114117
"vSkip",
115118
"RELTYPE",
116119
"ROLE",
120+
"FeatureWillBeRemovedInFutureVersion",
117121
]
118122

119123
__version__ = version_mod.__version__

stubs/icalendar/icalendar/attr.pyi

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,17 @@ def single_string_property(name: str, docs: str, other_name: str | None = None)
1010
color_property: property
1111
sequence_property: property
1212
categories_property: property
13+
uid_property: property
1314

1415
__all__ = [
15-
"single_utc_property",
16+
"categories_property",
1617
"color_property",
18+
"exdates_property",
1719
"multi_language_text_property",
18-
"single_int_property",
19-
"sequence_property",
20-
"categories_property",
2120
"rdates_property",
22-
"exdates_property",
2321
"rrules_property",
22+
"sequence_property",
23+
"single_int_property",
24+
"single_utc_property",
25+
"uid_property",
2426
]

stubs/icalendar/icalendar/cal.pyi

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,12 @@ class Event(Component):
166166
def exdates(self) -> list[datetime.date | datetime.datetime]: ...
167167
@property
168168
def rrules(self) -> list[vRecur]: ...
169+
@property
170+
def uid(self) -> str: ...
171+
@uid.setter
172+
def uid(self, value: str) -> None: ...
173+
@uid.deleter
174+
def uid(self) -> None: ...
169175

170176
class Todo(Component):
171177
name: ClassVar[Literal["VTODO"]]
@@ -237,6 +243,12 @@ class Todo(Component):
237243
def exdates(self) -> list[datetime.date | datetime.datetime]: ...
238244
@property
239245
def rrules(self) -> list[vRecur]: ...
246+
@property
247+
def uid(self) -> str: ...
248+
@uid.setter
249+
def uid(self, value: str) -> None: ...
250+
@uid.deleter
251+
def uid(self) -> None: ...
240252

241253
class Journal(Component):
242254
name: ClassVar[Literal["VJOURNAL"]]
@@ -279,9 +291,21 @@ class Journal(Component):
279291
def exdates(self) -> list[datetime.date | datetime.datetime]: ...
280292
@property
281293
def rrules(self) -> list[vRecur]: ...
294+
@property
295+
def uid(self) -> str: ...
296+
@uid.setter
297+
def uid(self, value: str) -> None: ...
298+
@uid.deleter
299+
def uid(self) -> None: ...
282300

283301
class FreeBusy(Component):
284302
name: ClassVar[Literal["VFREEBUSY"]]
303+
@property
304+
def uid(self) -> str: ...
305+
@uid.setter
306+
def uid(self, value: str) -> None: ...
307+
@uid.deleter
308+
def uid(self) -> None: ...
285309

286310
class Timezone(Component):
287311
subcomponents: list[TimezoneStandard | TimezoneDaylight]
@@ -399,6 +423,12 @@ class Alarm(Component):
399423

400424
@property
401425
def triggers(self) -> Alarm.Triggers: ...
426+
@property
427+
def uid(self) -> str: ...
428+
@uid.setter
429+
def uid(self, value: str) -> None: ...
430+
@uid.deleter
431+
def uid(self) -> None: ...
402432

403433
class Calendar(Component):
404434
name: ClassVar[Literal["VCALENDAR"]]
@@ -439,6 +469,12 @@ class Calendar(Component):
439469
def categories(self, cats: list[str]) -> None: ...
440470
@categories.deleter
441471
def categories(self) -> None: ...
472+
@property
473+
def uid(self) -> str: ...
474+
@uid.setter
475+
def uid(self, value: str) -> None: ...
476+
@uid.deleter
477+
def uid(self) -> None: ...
442478

443479
types_factory: Final[TypesFactory]
444480
component_factory: Final[ComponentFactory]

stubs/icalendar/icalendar/error.pyi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ class IncompleteAlarmInformation(ValueError): ...
44
class LocalTimezoneMissing(IncompleteAlarmInformation): ...
55
class ComponentEndMissing(IncompleteAlarmInformation): ...
66
class ComponentStartMissing(IncompleteAlarmInformation): ...
7+
class FeatureWillBeRemovedInFutureVersion(DeprecationWarning): ...
8+
class WillBeRemovedInVersion7(FeatureWillBeRemovedInFutureVersion): ...
79

810
__all__ = [
911
"InvalidCalendar",
@@ -12,4 +14,6 @@ __all__ = [
1214
"LocalTimezoneMissing",
1315
"ComponentEndMissing",
1416
"ComponentStartMissing",
17+
"FeatureWillBeRemovedInFutureVersion",
18+
"WillBeRemovedInVersion7",
1519
]

stubs/icalendar/icalendar/prop.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ class vCategory:
143143
TZID: property
144144

145145
class TimeBase:
146+
params: Parameters
147+
ignore_for_equality: set[str]
146148
def __eq__(self, other: object) -> bool: ...
147149
def __hash__(self) -> int: ...
148150
RANGE: property

stubs/icalendar/icalendar/tools.pyi

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import datetime
22
from typing import Final
3-
from typing_extensions import TypeGuard, TypeIs
3+
from typing_extensions import TypeGuard, TypeIs, deprecated
44

55
from pytz.tzinfo import BaseTzInfo
66

@@ -11,8 +11,10 @@ __all__ = ["UIDGenerator", "is_date", "is_datetime", "to_datetime", "is_pytz", "
1111
class UIDGenerator:
1212
chars: Final[list[str]]
1313
@staticmethod
14+
@deprecated("Use the Python standard library's :func:`uuid.uuid4` instead.")
1415
def rnd_string(length: int = 16) -> str: ...
1516
@staticmethod
17+
@deprecated("Use the Python standard library's :func:`uuid.uuid5` instead.")
1618
def uid(host_name: str = "example.com", unique: str = "") -> vText: ...
1719

1820
def is_date(dt: datetime.date) -> bool: ... # and not datetime.date

0 commit comments

Comments
 (0)