massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / vobject / vobject / vcard.pyi
1 from typing import Any
2
3 from .behavior import Behavior
4
5 class Name:
6     family: Any
7     given: Any
8     additional: Any
9     prefix: Any
10     suffix: Any
11     def __init__(
12         self, family: str = ..., given: str = ..., additional: str = ..., prefix: str = ..., suffix: str = ...
13     ) -> None: ...
14     @staticmethod
15     def toString(val): ...
16     def __eq__(self, other): ...
17
18 class Address:
19     box: Any
20     extended: Any
21     street: Any
22     city: Any
23     region: Any
24     code: Any
25     country: Any
26     def __init__(
27         self,
28         street: str = ...,
29         city: str = ...,
30         region: str = ...,
31         code: str = ...,
32         country: str = ...,
33         box: str = ...,
34         extended: str = ...,
35     ) -> None: ...
36     @staticmethod
37     def toString(val, join_char: str = ...): ...
38     lines: Any
39     one_line: Any
40     def __eq__(self, other): ...
41
42 class VCardTextBehavior(Behavior):
43     allowGroup: bool
44     base64string: str
45     @classmethod
46     def decode(cls, line) -> None: ...
47     @classmethod
48     def encode(cls, line) -> None: ...
49
50 class VCardBehavior(Behavior):
51     allowGroup: bool
52     defaultBehavior: Any
53
54 class VCard3_0(VCardBehavior):
55     name: str
56     description: str
57     versionString: str
58     isComponent: bool
59     sortFirst: Any
60     knownChildren: Any
61     @classmethod
62     def generateImplicitParameters(cls, obj) -> None: ...
63
64 class FN(VCardTextBehavior):
65     name: str
66     description: str
67
68 class Label(VCardTextBehavior):
69     name: str
70     description: str
71
72 wacky_apple_photo_serialize: bool
73 REALLY_LARGE: float
74
75 class Photo(VCardTextBehavior):
76     name: str
77     description: str
78     @classmethod
79     def valueRepr(cls, line): ...
80     @classmethod
81     def serialize(cls, obj, buf, lineLength, validate) -> None: ...  # type: ignore
82
83 def toListOrString(string): ...
84 def splitFields(string): ...
85 def toList(stringOrList): ...
86 def serializeFields(obj, order: Any | None = ...): ...
87
88 NAME_ORDER: Any
89 ADDRESS_ORDER: Any
90
91 class NameBehavior(VCardBehavior):
92     hasNative: bool
93     @staticmethod
94     def transformToNative(obj): ...
95     @staticmethod
96     def transformFromNative(obj): ...
97
98 class AddressBehavior(VCardBehavior):
99     hasNative: bool
100     @staticmethod
101     def transformToNative(obj): ...
102     @staticmethod
103     def transformFromNative(obj): ...
104
105 class OrgBehavior(VCardBehavior):
106     hasNative: bool
107     @staticmethod
108     def transformToNative(obj): ...
109     @staticmethod
110     def transformFromNative(obj): ...