@@ -416,9 +416,7 @@ def __init__(
416
416
self .content = content
417
417
418
418
def _serialize_json (
419
- self ,
420
- in_data : typing .Union [None , int , float , str , bool , dict , list ],
421
- eliminate_whitespace : bool = False ,
419
+ self , in_data : typing .Union [None , int , float , str , bool , dict , list ], eliminate_whitespace : bool = False
422
420
) -> str :
423
421
if eliminate_whitespace :
424
422
return json .dumps (in_data , separators = self ._json_encoder .compact_separators )
@@ -483,19 +481,7 @@ def __serialize_simple(
483
481
def serialize (
484
482
self ,
485
483
in_data : typing .Union [
486
- Schema ,
487
- Decimal ,
488
- int ,
489
- float ,
490
- str ,
491
- date ,
492
- datetime ,
493
- None ,
494
- bool ,
495
- list ,
496
- tuple ,
497
- dict ,
498
- frozendict .frozendict ,
484
+ Schema , Decimal , int , float , str , date , datetime , None , bool , list , tuple , dict , frozendict .frozendict
499
485
],
500
486
) -> typing .Dict [str , str ]:
501
487
if self .schema :
@@ -611,19 +597,7 @@ def get_prefix_separator_iterator(self) -> typing.Optional[PrefixSeparatorIterat
611
597
def serialize (
612
598
self ,
613
599
in_data : typing .Union [
614
- Schema ,
615
- Decimal ,
616
- int ,
617
- float ,
618
- str ,
619
- date ,
620
- datetime ,
621
- None ,
622
- bool ,
623
- list ,
624
- tuple ,
625
- dict ,
626
- frozendict .frozendict ,
600
+ Schema , Decimal , int , float , str , date , datetime , None , bool , list , tuple , dict , frozendict .frozendict
627
601
],
628
602
prefix_separator_iterator : typing .Optional [PrefixSeparatorIterator ] = None ,
629
603
) -> typing .Dict [str , str ]:
@@ -691,19 +665,7 @@ def __init__(
691
665
def serialize (
692
666
self ,
693
667
in_data : typing .Union [
694
- Schema ,
695
- Decimal ,
696
- int ,
697
- float ,
698
- str ,
699
- date ,
700
- datetime ,
701
- None ,
702
- bool ,
703
- list ,
704
- tuple ,
705
- dict ,
706
- frozendict .frozendict ,
668
+ Schema , Decimal , int , float , str , date , datetime , None , bool , list , tuple , dict , frozendict .frozendict
707
669
],
708
670
) -> typing .Dict [str , str ]:
709
671
if self .schema :
@@ -770,19 +732,7 @@ def __to_headers(in_data: typing.Tuple[typing.Tuple[str, str], ...]) -> HTTPHead
770
732
def serialize (
771
733
self ,
772
734
in_data : typing .Union [
773
- Schema ,
774
- Decimal ,
775
- int ,
776
- float ,
777
- str ,
778
- date ,
779
- datetime ,
780
- None ,
781
- bool ,
782
- list ,
783
- tuple ,
784
- dict ,
785
- frozendict .frozendict ,
735
+ Schema , Decimal , int , float , str , date , datetime , None , bool , list , tuple , dict , frozendict .frozendict
786
736
],
787
737
) -> HTTPHeaderDict :
788
738
if self .schema :
@@ -940,9 +890,7 @@ def __deserialize_application_octet_stream(
940
890
return response .data
941
891
942
892
@staticmethod
943
- def __deserialize_multipart_form_data (
944
- response : urllib3 .HTTPResponse ,
945
- ) -> typing .Dict [str , typing .Any ]:
893
+ def __deserialize_multipart_form_data (response : urllib3 .HTTPResponse ) -> typing .Dict [str , typing .Any ]:
946
894
msg = email .message_from_bytes (response .data )
947
895
return {
948
896
part .get_param ("name" , header = "Content-Disposition" ): part .get_payload (decode = True ).decode (
@@ -1295,9 +1243,7 @@ def _verify_typed_dict_inputs_oapg(
1295
1243
if required_keys_with_unset_values :
1296
1244
raise ApiValueError (
1297
1245
"{} contains invalid unset values for {} required keys: {}" .format (
1298
- cls .__name__ ,
1299
- len (required_keys_with_unset_values ),
1300
- required_keys_with_unset_values ,
1246
+ cls .__name__ , len (required_keys_with_unset_values ), required_keys_with_unset_values
1301
1247
)
1302
1248
)
1303
1249
0 commit comments