@@ -45,15 +45,15 @@ class Options:
45
45
self ,
46
46
* ,
47
47
quotationmark : Optional [str ] = ...,
48
- tojson : Optional [str ],
49
- mappingtypes : Optional [Tuple [type , ...]],
48
+ tojson : Optional [str ] = ... ,
49
+ mappingtypes : Optional [Tuple [type , ...]] = ... ,
50
50
) -> None : ...
51
51
def update (
52
52
self ,
53
53
* ,
54
54
quotationmark : Optional [str ] = ...,
55
- tojson : Optional [str ],
56
- mappingtypes : Optional [Tuple [type , ...]],
55
+ tojson : Optional [str ] = ... ,
56
+ mappingtypes : Optional [Tuple [type , ...]] = ... ,
57
57
) -> Options :
58
58
"""Creates a new Options instance by modifying some members."""
59
59
@@ -86,7 +86,7 @@ def decode_callback(
86
86
cb : Callable [..., Union [str , bytes , bytearray , int , None ]],
87
87
maxdepth : Optional [int ] = ...,
88
88
some : bool = ...,
89
- args : Optional [Iterable [Any ]] = [] ,
89
+ args : Optional [Iterable [Any ]] = ... ,
90
90
) -> Any :
91
91
"""Decodes JSON5 serialized data by invoking a callback."""
92
92
@@ -102,8 +102,8 @@ def encode(
102
102
* ,
103
103
options : Optional [Options ] = ...,
104
104
quotationmark : Optional [str ] = ...,
105
- tojson : Optional [str ],
106
- mappingtypes : Optional [Tuple [type , ...]],
105
+ tojson : Optional [str ] = ... ,
106
+ mappingtypes : Optional [Tuple [type , ...]] = ... ,
107
107
) -> str :
108
108
"""Serializes a Python object to a JSON5 compatible string."""
109
109
...
@@ -113,9 +113,9 @@ def encode_bytes(
113
113
* ,
114
114
options : Optional [Options ] = ...,
115
115
quotationmark : Optional [str ] = ...,
116
- tojson : Optional [str ],
117
- mappingtypes : Optional [Tuple [type , ...]],
118
- ) -> str :
116
+ tojson : Optional [str ] = ... ,
117
+ mappingtypes : Optional [Tuple [type , ...]] = ... ,
118
+ ) -> bytes :
119
119
"""Serializes a Python object to a JSON5 compatible bytes string."""
120
120
121
121
@overload
@@ -126,8 +126,8 @@ def encode_callback(
126
126
* ,
127
127
options : Optional [Options ] = ...,
128
128
quotationmark : Optional [str ] = ...,
129
- tojson : Optional [str ],
130
- mappingtypes : Optional [Tuple [type , ...]],
129
+ tojson : Optional [str ] = ... ,
130
+ mappingtypes : Optional [Tuple [type , ...]] = ... ,
131
131
) -> _CallbackStr :
132
132
"""Serializes a Python object into a callback function."""
133
133
@@ -139,8 +139,8 @@ def encode_callback(
139
139
* ,
140
140
options : Optional [Options ] = ...,
141
141
quotationmark : Optional [str ] = ...,
142
- tojson : Optional [str ],
143
- mappingtypes : Optional [Tuple [type , ...]],
142
+ tojson : Optional [str ] = ... ,
143
+ mappingtypes : Optional [Tuple [type , ...]] = ... ,
144
144
) -> _CallbackBytes : ...
145
145
@overload
146
146
def encode_io (
@@ -150,8 +150,8 @@ def encode_io(
150
150
* ,
151
151
options : Optional [Options ] = ...,
152
152
quotationmark : Optional [str ] = ...,
153
- tojson : Optional [str ],
154
- mappingtypes : Optional [Tuple [type , ...]],
153
+ tojson : Optional [str ] = ... ,
154
+ mappingtypes : Optional [Tuple [type , ...]] = ... ,
155
155
) -> _SupportsWriteBytes :
156
156
"""Serializes a Python object into a file-object."""
157
157
@@ -163,16 +163,16 @@ def encode_io(
163
163
* ,
164
164
options : Optional [Options ] = ...,
165
165
quotationmark : Optional [str ] = ...,
166
- tojson : Optional [str ],
167
- mappingtypes : Optional [Tuple [type , ...]],
166
+ tojson : Optional [str ] = ... ,
167
+ mappingtypes : Optional [Tuple [type , ...]] = ... ,
168
168
) -> _SupportsWriteStr : ...
169
169
def encode_noop (
170
170
data : Any ,
171
171
* ,
172
172
options : Optional [Options ] = ...,
173
173
quotationmark : Optional [str ] = ...,
174
- tojson : Optional [str ],
175
- mappingtypes : Optional [Tuple [type , ...]],
174
+ tojson : Optional [str ] = ... ,
175
+ mappingtypes : Optional [Tuple [type , ...]] = ... ,
176
176
) -> bool :
177
177
"""Test if the input is serializable."""
178
178
0 commit comments