54
54
55
55
56
56
class BaseSchemaUnmarshaller :
57
-
58
57
FORMATTERS : FormattersDict = {
59
58
None : Formatter (),
60
59
}
@@ -198,7 +197,6 @@ def _iter_all_of_schemas(
198
197
199
198
200
199
class StringUnmarshaller (BaseSchemaUnmarshaller ):
201
-
202
200
FORMATTERS : FormattersDict = {
203
201
None : Formatter .from_callables (partial (is_string , None ), str ),
204
202
"password" : Formatter .from_callables (
@@ -224,7 +222,6 @@ class StringUnmarshaller(BaseSchemaUnmarshaller):
224
222
225
223
226
224
class IntegerUnmarshaller (BaseSchemaUnmarshaller ):
227
-
228
225
FORMATTERS : FormattersDict = {
229
226
None : Formatter .from_callables (partial (is_integer , None ), int ),
230
227
"int32" : Formatter .from_callables (
@@ -237,7 +234,6 @@ class IntegerUnmarshaller(BaseSchemaUnmarshaller):
237
234
238
235
239
236
class NumberUnmarshaller (BaseSchemaUnmarshaller ):
240
-
241
237
FORMATTERS : FormattersDict = {
242
238
None : Formatter .from_callables (
243
239
partial (is_number , None ), format_number
@@ -252,14 +248,12 @@ class NumberUnmarshaller(BaseSchemaUnmarshaller):
252
248
253
249
254
250
class BooleanUnmarshaller (BaseSchemaUnmarshaller ):
255
-
256
251
FORMATTERS : FormattersDict = {
257
252
None : Formatter .from_callables (partial (is_bool , None ), forcebool ),
258
253
}
259
254
260
255
261
256
class NullUnmarshaller (BaseSchemaUnmarshaller ):
262
-
263
257
FORMATTERS : FormattersDict = {
264
258
None : Formatter .from_callables (partial (is_null , None ), None ),
265
259
}
@@ -286,7 +280,6 @@ def __init__(
286
280
287
281
288
282
class ArrayUnmarshaller (ComplexUnmarshaller ):
289
-
290
283
FORMATTERS : FormattersDict = {
291
284
None : Formatter .from_callables (partial (is_array , None ), list ),
292
285
}
@@ -305,7 +298,6 @@ def unmarshal(self, value: Any) -> Optional[List[Any]]:
305
298
306
299
307
300
class ObjectUnmarshaller (ComplexUnmarshaller ):
308
-
309
301
FORMATTERS : FormattersDict = {
310
302
None : Formatter .from_callables (partial (is_object , None ), dict ),
311
303
}
@@ -439,7 +431,6 @@ def unmarshal(self, value: Any) -> Any:
439
431
440
432
441
433
class AnyUnmarshaller (MultiTypeUnmarshaller ):
442
-
443
434
SCHEMA_TYPES_ORDER = [
444
435
"object" ,
445
436
"array" ,
0 commit comments