massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / vobject / vobject / icalendar.pyi
1 from datetime import timedelta
2 from typing import Any, Tuple
3
4 from .base import Component
5 from .behavior import Behavior
6
7 DATENAMES: Tuple[str, ...]
8 RULENAMES: Tuple[str, ...]
9 DATESANDRULES: Tuple[str, ...]
10 PRODID: str
11 WEEKDAYS: Tuple[str, ...]
12 FREQUENCIES: Tuple[str, ...]
13 zeroDelta: timedelta
14 twoHours: timedelta
15
16 def toUnicode(s: str | bytes) -> str: ...
17 def registerTzid(tzid, tzinfo) -> None: ...
18 def getTzid(tzid, smart: bool = ...): ...
19
20 utc: Any  # dateutil.tz.tz.tzutc
21
22 class TimezoneComponent(Component):
23     isNative: bool
24     behavior: Any
25     tzinfo: Any
26     name: str
27     useBegin: bool
28     def __init__(self, tzinfo: Any | None = ..., *args, **kwds) -> None: ...
29     @classmethod
30     def registerTzinfo(cls, tzinfo): ...
31     def gettzinfo(self): ...
32     tzid: Any
33     daylight: Any
34     standard: Any
35     def settzinfo(self, tzinfo, start: int = ..., end: int = ...): ...
36     normal_attributes: Any
37     @staticmethod
38     def pickTzid(tzinfo, allowUTC: bool = ...): ...
39     def prettyPrint(self, level, tabwidth) -> None: ...  # type: ignore
40
41 class RecurringComponent(Component):
42     isNative: bool
43     def __init__(self, *args, **kwds) -> None: ...
44     def getrruleset(self, addRDate: bool = ...): ...
45     def setrruleset(self, rruleset): ...
46     rruleset: Any
47     def __setattr__(self, name, value) -> None: ...
48
49 class TextBehavior(Behavior):
50     base64string: str
51     @classmethod
52     def decode(cls, line) -> None: ...
53     @classmethod
54     def encode(cls, line) -> None: ...
55
56 class VCalendarComponentBehavior(Behavior):
57     defaultBehavior: Any
58     isComponent: bool
59
60 class RecurringBehavior(VCalendarComponentBehavior):
61     hasNative: bool
62     @staticmethod
63     def transformToNative(obj): ...
64     @staticmethod
65     def transformFromNative(obj): ...
66     @staticmethod
67     def generateImplicitParameters(obj) -> None: ...
68
69 class DateTimeBehavior(Behavior):
70     hasNative: bool
71     @staticmethod
72     def transformToNative(obj): ...
73     @classmethod
74     def transformFromNative(cls, obj): ...
75
76 class UTCDateTimeBehavior(DateTimeBehavior):
77     forceUTC: bool
78
79 class DateOrDateTimeBehavior(Behavior):
80     hasNative: bool
81     @staticmethod
82     def transformToNative(obj): ...
83     @staticmethod
84     def transformFromNative(obj): ...
85
86 class MultiDateBehavior(Behavior):
87     hasNative: bool
88     @staticmethod
89     def transformToNative(obj): ...
90     @staticmethod
91     def transformFromNative(obj): ...
92
93 class MultiTextBehavior(Behavior):
94     listSeparator: str
95     @classmethod
96     def decode(cls, line) -> None: ...
97     @classmethod
98     def encode(cls, line) -> None: ...
99
100 class SemicolonMultiTextBehavior(MultiTextBehavior):
101     listSeparator: str
102
103 class VCalendar2_0(VCalendarComponentBehavior):
104     name: str
105     description: str
106     versionString: str
107     sortFirst: Any
108     knownChildren: Any
109     @classmethod
110     def generateImplicitParameters(cls, obj) -> None: ...
111     @classmethod
112     def serialize(cls, obj, buf, lineLength, validate: bool = ...): ...
113
114 class VTimezone(VCalendarComponentBehavior):
115     name: str
116     hasNative: bool
117     description: str
118     sortFirst: Any
119     knownChildren: Any
120     @classmethod
121     def validate(cls, obj, raiseException, *args): ...
122     @staticmethod
123     def transformToNative(obj): ...
124     @staticmethod
125     def transformFromNative(obj): ...
126
127 class TZID(Behavior): ...
128
129 class DaylightOrStandard(VCalendarComponentBehavior):
130     hasNative: bool
131     knownChildren: Any
132
133 class VEvent(RecurringBehavior):
134     name: str
135     sortFirst: Any
136     description: str
137     knownChildren: Any
138     @classmethod
139     def validate(cls, obj, raiseException, *args): ...
140
141 class VTodo(RecurringBehavior):
142     name: str
143     description: str
144     knownChildren: Any
145     @classmethod
146     def validate(cls, obj, raiseException, *args): ...
147
148 class VJournal(RecurringBehavior):
149     name: str
150     knownChildren: Any
151
152 class VFreeBusy(VCalendarComponentBehavior):
153     name: str
154     description: str
155     sortFirst: Any
156     knownChildren: Any
157
158 class VAlarm(VCalendarComponentBehavior):
159     name: str
160     description: str
161     knownChildren: Any
162     @staticmethod
163     def generateImplicitParameters(obj) -> None: ...
164     @classmethod
165     def validate(cls, obj, raiseException, *args): ...
166
167 class VAvailability(VCalendarComponentBehavior):
168     name: str
169     description: str
170     sortFirst: Any
171     knownChildren: Any
172     @classmethod
173     def validate(cls, obj, raiseException, *args): ...
174
175 class Available(RecurringBehavior):
176     name: str
177     sortFirst: Any
178     description: str
179     knownChildren: Any
180     @classmethod
181     def validate(cls, obj, raiseException, *args): ...
182
183 class Duration(Behavior):
184     name: str
185     hasNative: bool
186     @staticmethod
187     def transformToNative(obj): ...
188     @staticmethod
189     def transformFromNative(obj): ...
190
191 class Trigger(Behavior):
192     name: str
193     description: str
194     hasNative: bool
195     forceUTC: bool
196     @staticmethod
197     def transformToNative(obj): ...
198     @staticmethod
199     def transformFromNative(obj): ...
200
201 class PeriodBehavior(Behavior):
202     hasNative: bool
203     @staticmethod
204     def transformToNative(obj): ...
205     @classmethod
206     def transformFromNative(cls, obj): ...
207
208 class FreeBusy(PeriodBehavior):
209     name: str
210     forceUTC: bool
211
212 class RRule(Behavior): ...
213
214 utcDateTimeList: Any
215 dateTimeOrDateList: Any
216 textList: Any
217
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 = ...): ...
228
229 escapableCharList: str
230
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 = ...): ...