1 from datetime import timedelta
2 from typing import Any, Tuple
4 from .base import Component
5 from .behavior import Behavior
7 DATENAMES: Tuple[str, ...]
8 RULENAMES: Tuple[str, ...]
9 DATESANDRULES: Tuple[str, ...]
11 WEEKDAYS: Tuple[str, ...]
12 FREQUENCIES: Tuple[str, ...]
16 def toUnicode(s: str | bytes) -> str: ...
17 def registerTzid(tzid, tzinfo) -> None: ...
18 def getTzid(tzid, smart: bool = ...): ...
20 utc: Any # dateutil.tz.tz.tzutc
22 class TimezoneComponent(Component):
28 def __init__(self, tzinfo: Any | None = ..., *args, **kwds) -> None: ...
30 def registerTzinfo(cls, tzinfo): ...
31 def gettzinfo(self): ...
35 def settzinfo(self, tzinfo, start: int = ..., end: int = ...): ...
36 normal_attributes: Any
38 def pickTzid(tzinfo, allowUTC: bool = ...): ...
39 def prettyPrint(self, level, tabwidth) -> None: ... # type: ignore
41 class RecurringComponent(Component):
43 def __init__(self, *args, **kwds) -> None: ...
44 def getrruleset(self, addRDate: bool = ...): ...
45 def setrruleset(self, rruleset): ...
47 def __setattr__(self, name, value) -> None: ...
49 class TextBehavior(Behavior):
52 def decode(cls, line) -> None: ...
54 def encode(cls, line) -> None: ...
56 class VCalendarComponentBehavior(Behavior):
60 class RecurringBehavior(VCalendarComponentBehavior):
63 def transformToNative(obj): ...
65 def transformFromNative(obj): ...
67 def generateImplicitParameters(obj) -> None: ...
69 class DateTimeBehavior(Behavior):
72 def transformToNative(obj): ...
74 def transformFromNative(cls, obj): ...
76 class UTCDateTimeBehavior(DateTimeBehavior):
79 class DateOrDateTimeBehavior(Behavior):
82 def transformToNative(obj): ...
84 def transformFromNative(obj): ...
86 class MultiDateBehavior(Behavior):
89 def transformToNative(obj): ...
91 def transformFromNative(obj): ...
93 class MultiTextBehavior(Behavior):
96 def decode(cls, line) -> None: ...
98 def encode(cls, line) -> None: ...
100 class SemicolonMultiTextBehavior(MultiTextBehavior):
103 class VCalendar2_0(VCalendarComponentBehavior):
110 def generateImplicitParameters(cls, obj) -> None: ...
112 def serialize(cls, obj, buf, lineLength, validate: bool = ...): ...
114 class VTimezone(VCalendarComponentBehavior):
121 def validate(cls, obj, raiseException, *args): ...
123 def transformToNative(obj): ...
125 def transformFromNative(obj): ...
127 class TZID(Behavior): ...
129 class DaylightOrStandard(VCalendarComponentBehavior):
133 class VEvent(RecurringBehavior):
139 def validate(cls, obj, raiseException, *args): ...
141 class VTodo(RecurringBehavior):
146 def validate(cls, obj, raiseException, *args): ...
148 class VJournal(RecurringBehavior):
152 class VFreeBusy(VCalendarComponentBehavior):
158 class VAlarm(VCalendarComponentBehavior):
163 def generateImplicitParameters(obj) -> None: ...
165 def validate(cls, obj, raiseException, *args): ...
167 class VAvailability(VCalendarComponentBehavior):
173 def validate(cls, obj, raiseException, *args): ...
175 class Available(RecurringBehavior):
181 def validate(cls, obj, raiseException, *args): ...
183 class Duration(Behavior):
187 def transformToNative(obj): ...
189 def transformFromNative(obj): ...
191 class Trigger(Behavior):
197 def transformToNative(obj): ...
199 def transformFromNative(obj): ...
201 class PeriodBehavior(Behavior):
204 def transformToNative(obj): ...
206 def transformFromNative(cls, obj): ...
208 class FreeBusy(PeriodBehavior):
212 class RRule(Behavior): ...
215 dateTimeOrDateList: Any
218 def numToDigits(num, places): ...
219 def timedeltaToString(delta): ...
220 def timeToString(dateOrDateTime): ...
221 def dateToString(date): ...
222 def dateTimeToString(dateTime, convertToUTC: bool = ...): ...
223 def deltaToOffset(delta): ...
224 def periodToString(period, convertToUTC: bool = ...): ...
225 def isDuration(s): ...
226 def stringToDate(s): ...
227 def stringToDateTime(s, tzinfo: Any | None = ...): ...
229 escapableCharList: str
231 def stringToTextValues(s, listSeparator: str = ..., charList: Any | None = ..., strict: bool = ...): ...
232 def stringToDurations(s, strict: bool = ...): ...
233 def parseDtstart(contentline, allowSignatureMismatch: bool = ...): ...
234 def stringToPeriod(s, tzinfo: Any | None = ...): ...
235 def getTransition(transitionTo, year, tzinfo): ...
236 def tzinfo_eq(tzinfo1, tzinfo2, startYear: int = ..., endYear: int = ...): ...