mixpeek 0.18.13__py3-none-any.whl → 0.18.15__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
mixpeek/_version.py CHANGED
@@ -3,10 +3,10 @@
3
3
  import importlib.metadata
4
4
 
5
5
  __title__: str = "mixpeek"
6
- __version__: str = "0.18.13"
6
+ __version__: str = "0.18.15"
7
7
  __openapi_doc_version__: str = "0.81"
8
- __gen_version__: str = "2.499.0"
9
- __user_agent__: str = "speakeasy-sdk/python 0.18.13 2.499.0 0.81 mixpeek"
8
+ __gen_version__: str = "2.500.5"
9
+ __user_agent__: str = "speakeasy-sdk/python 0.18.15 2.500.5 0.81 mixpeek"
10
10
 
11
11
  try:
12
12
  if __package__ is not None:
mixpeek/assets.py CHANGED
@@ -83,20 +83,26 @@ class Assets(BaseSDK):
83
83
  retry_config=retry_config,
84
84
  )
85
85
 
86
- data: Any = None
86
+ response_data: Any = None
87
87
  if utils.match_response(http_res, "200", "application/json"):
88
88
  return utils.unmarshal_json(http_res.text, models.AssetResponse)
89
89
  if utils.match_response(
90
90
  http_res, ["400", "401", "403", "404"], "application/json"
91
91
  ):
92
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
93
- raise models.ErrorResponse(data=data)
92
+ response_data = utils.unmarshal_json(
93
+ http_res.text, models.ErrorResponseData
94
+ )
95
+ raise models.ErrorResponse(data=response_data)
94
96
  if utils.match_response(http_res, "422", "application/json"):
95
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
96
- raise models.HTTPValidationError(data=data)
97
+ response_data = utils.unmarshal_json(
98
+ http_res.text, models.HTTPValidationErrorData
99
+ )
100
+ raise models.HTTPValidationError(data=response_data)
97
101
  if utils.match_response(http_res, "500", "application/json"):
98
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
99
- raise models.ErrorResponse(data=data)
102
+ response_data = utils.unmarshal_json(
103
+ http_res.text, models.ErrorResponseData
104
+ )
105
+ raise models.ErrorResponse(data=response_data)
100
106
  if utils.match_response(http_res, "4XX", "*"):
101
107
  http_res_text = utils.stream_to_text(http_res)
102
108
  raise models.APIError(
@@ -191,20 +197,26 @@ class Assets(BaseSDK):
191
197
  retry_config=retry_config,
192
198
  )
193
199
 
194
- data: Any = None
200
+ response_data: Any = None
195
201
  if utils.match_response(http_res, "200", "application/json"):
196
202
  return utils.unmarshal_json(http_res.text, models.AssetResponse)
197
203
  if utils.match_response(
198
204
  http_res, ["400", "401", "403", "404"], "application/json"
199
205
  ):
200
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
201
- raise models.ErrorResponse(data=data)
206
+ response_data = utils.unmarshal_json(
207
+ http_res.text, models.ErrorResponseData
208
+ )
209
+ raise models.ErrorResponse(data=response_data)
202
210
  if utils.match_response(http_res, "422", "application/json"):
203
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
204
- raise models.HTTPValidationError(data=data)
211
+ response_data = utils.unmarshal_json(
212
+ http_res.text, models.HTTPValidationErrorData
213
+ )
214
+ raise models.HTTPValidationError(data=response_data)
205
215
  if utils.match_response(http_res, "500", "application/json"):
206
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
207
- raise models.ErrorResponse(data=data)
216
+ response_data = utils.unmarshal_json(
217
+ http_res.text, models.ErrorResponseData
218
+ )
219
+ raise models.ErrorResponse(data=response_data)
208
220
  if utils.match_response(http_res, "4XX", "*"):
209
221
  http_res_text = await utils.stream_to_text_async(http_res)
210
222
  raise models.APIError(
@@ -297,20 +309,26 @@ class Assets(BaseSDK):
297
309
  retry_config=retry_config,
298
310
  )
299
311
 
300
- data: Any = None
312
+ response_data: Any = None
301
313
  if utils.match_response(http_res, "200", "application/json"):
302
314
  return utils.unmarshal_json(http_res.text, models.GenericSuccessResponse)
303
315
  if utils.match_response(
304
316
  http_res, ["400", "401", "403", "404"], "application/json"
305
317
  ):
306
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
307
- raise models.ErrorResponse(data=data)
318
+ response_data = utils.unmarshal_json(
319
+ http_res.text, models.ErrorResponseData
320
+ )
321
+ raise models.ErrorResponse(data=response_data)
308
322
  if utils.match_response(http_res, "422", "application/json"):
309
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
310
- raise models.HTTPValidationError(data=data)
323
+ response_data = utils.unmarshal_json(
324
+ http_res.text, models.HTTPValidationErrorData
325
+ )
326
+ raise models.HTTPValidationError(data=response_data)
311
327
  if utils.match_response(http_res, "500", "application/json"):
312
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
313
- raise models.ErrorResponse(data=data)
328
+ response_data = utils.unmarshal_json(
329
+ http_res.text, models.ErrorResponseData
330
+ )
331
+ raise models.ErrorResponse(data=response_data)
314
332
  if utils.match_response(http_res, "4XX", "*"):
315
333
  http_res_text = utils.stream_to_text(http_res)
316
334
  raise models.APIError(
@@ -403,20 +421,26 @@ class Assets(BaseSDK):
403
421
  retry_config=retry_config,
404
422
  )
405
423
 
406
- data: Any = None
424
+ response_data: Any = None
407
425
  if utils.match_response(http_res, "200", "application/json"):
408
426
  return utils.unmarshal_json(http_res.text, models.GenericSuccessResponse)
409
427
  if utils.match_response(
410
428
  http_res, ["400", "401", "403", "404"], "application/json"
411
429
  ):
412
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
413
- raise models.ErrorResponse(data=data)
430
+ response_data = utils.unmarshal_json(
431
+ http_res.text, models.ErrorResponseData
432
+ )
433
+ raise models.ErrorResponse(data=response_data)
414
434
  if utils.match_response(http_res, "422", "application/json"):
415
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
416
- raise models.HTTPValidationError(data=data)
435
+ response_data = utils.unmarshal_json(
436
+ http_res.text, models.HTTPValidationErrorData
437
+ )
438
+ raise models.HTTPValidationError(data=response_data)
417
439
  if utils.match_response(http_res, "500", "application/json"):
418
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
419
- raise models.ErrorResponse(data=data)
440
+ response_data = utils.unmarshal_json(
441
+ http_res.text, models.ErrorResponseData
442
+ )
443
+ raise models.ErrorResponse(data=response_data)
420
444
  if utils.match_response(http_res, "4XX", "*"):
421
445
  http_res_text = await utils.stream_to_text_async(http_res)
422
446
  raise models.APIError(
@@ -531,20 +555,26 @@ class Assets(BaseSDK):
531
555
  retry_config=retry_config,
532
556
  )
533
557
 
534
- data: Any = None
558
+ response_data: Any = None
535
559
  if utils.match_response(http_res, "200", "application/json"):
536
560
  return utils.unmarshal_json(http_res.text, models.AssetResponse)
537
561
  if utils.match_response(
538
562
  http_res, ["400", "401", "403", "404"], "application/json"
539
563
  ):
540
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
541
- raise models.ErrorResponse(data=data)
564
+ response_data = utils.unmarshal_json(
565
+ http_res.text, models.ErrorResponseData
566
+ )
567
+ raise models.ErrorResponse(data=response_data)
542
568
  if utils.match_response(http_res, "422", "application/json"):
543
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
544
- raise models.HTTPValidationError(data=data)
569
+ response_data = utils.unmarshal_json(
570
+ http_res.text, models.HTTPValidationErrorData
571
+ )
572
+ raise models.HTTPValidationError(data=response_data)
545
573
  if utils.match_response(http_res, "500", "application/json"):
546
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
547
- raise models.ErrorResponse(data=data)
574
+ response_data = utils.unmarshal_json(
575
+ http_res.text, models.ErrorResponseData
576
+ )
577
+ raise models.ErrorResponse(data=response_data)
548
578
  if utils.match_response(http_res, "4XX", "*"):
549
579
  http_res_text = utils.stream_to_text(http_res)
550
580
  raise models.APIError(
@@ -659,20 +689,26 @@ class Assets(BaseSDK):
659
689
  retry_config=retry_config,
660
690
  )
661
691
 
662
- data: Any = None
692
+ response_data: Any = None
663
693
  if utils.match_response(http_res, "200", "application/json"):
664
694
  return utils.unmarshal_json(http_res.text, models.AssetResponse)
665
695
  if utils.match_response(
666
696
  http_res, ["400", "401", "403", "404"], "application/json"
667
697
  ):
668
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
669
- raise models.ErrorResponse(data=data)
698
+ response_data = utils.unmarshal_json(
699
+ http_res.text, models.ErrorResponseData
700
+ )
701
+ raise models.ErrorResponse(data=response_data)
670
702
  if utils.match_response(http_res, "422", "application/json"):
671
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
672
- raise models.HTTPValidationError(data=data)
703
+ response_data = utils.unmarshal_json(
704
+ http_res.text, models.HTTPValidationErrorData
705
+ )
706
+ raise models.HTTPValidationError(data=response_data)
673
707
  if utils.match_response(http_res, "500", "application/json"):
674
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
675
- raise models.ErrorResponse(data=data)
708
+ response_data = utils.unmarshal_json(
709
+ http_res.text, models.ErrorResponseData
710
+ )
711
+ raise models.ErrorResponse(data=response_data)
676
712
  if utils.match_response(http_res, "4XX", "*"):
677
713
  http_res_text = await utils.stream_to_text_async(http_res)
678
714
  raise models.APIError(
@@ -787,20 +823,26 @@ class Assets(BaseSDK):
787
823
  retry_config=retry_config,
788
824
  )
789
825
 
790
- data: Any = None
826
+ response_data: Any = None
791
827
  if utils.match_response(http_res, "200", "application/json"):
792
828
  return utils.unmarshal_json(http_res.text, models.AssetResponse)
793
829
  if utils.match_response(
794
830
  http_res, ["400", "401", "403", "404"], "application/json"
795
831
  ):
796
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
797
- raise models.ErrorResponse(data=data)
832
+ response_data = utils.unmarshal_json(
833
+ http_res.text, models.ErrorResponseData
834
+ )
835
+ raise models.ErrorResponse(data=response_data)
798
836
  if utils.match_response(http_res, "422", "application/json"):
799
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
800
- raise models.HTTPValidationError(data=data)
837
+ response_data = utils.unmarshal_json(
838
+ http_res.text, models.HTTPValidationErrorData
839
+ )
840
+ raise models.HTTPValidationError(data=response_data)
801
841
  if utils.match_response(http_res, "500", "application/json"):
802
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
803
- raise models.ErrorResponse(data=data)
842
+ response_data = utils.unmarshal_json(
843
+ http_res.text, models.ErrorResponseData
844
+ )
845
+ raise models.ErrorResponse(data=response_data)
804
846
  if utils.match_response(http_res, "4XX", "*"):
805
847
  http_res_text = utils.stream_to_text(http_res)
806
848
  raise models.APIError(
@@ -915,20 +957,26 @@ class Assets(BaseSDK):
915
957
  retry_config=retry_config,
916
958
  )
917
959
 
918
- data: Any = None
960
+ response_data: Any = None
919
961
  if utils.match_response(http_res, "200", "application/json"):
920
962
  return utils.unmarshal_json(http_res.text, models.AssetResponse)
921
963
  if utils.match_response(
922
964
  http_res, ["400", "401", "403", "404"], "application/json"
923
965
  ):
924
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
925
- raise models.ErrorResponse(data=data)
966
+ response_data = utils.unmarshal_json(
967
+ http_res.text, models.ErrorResponseData
968
+ )
969
+ raise models.ErrorResponse(data=response_data)
926
970
  if utils.match_response(http_res, "422", "application/json"):
927
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
928
- raise models.HTTPValidationError(data=data)
971
+ response_data = utils.unmarshal_json(
972
+ http_res.text, models.HTTPValidationErrorData
973
+ )
974
+ raise models.HTTPValidationError(data=response_data)
929
975
  if utils.match_response(http_res, "500", "application/json"):
930
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
931
- raise models.ErrorResponse(data=data)
976
+ response_data = utils.unmarshal_json(
977
+ http_res.text, models.ErrorResponseData
978
+ )
979
+ raise models.ErrorResponse(data=response_data)
932
980
  if utils.match_response(http_res, "4XX", "*"):
933
981
  http_res_text = await utils.stream_to_text_async(http_res)
934
982
  raise models.APIError(
@@ -1023,20 +1071,26 @@ class Assets(BaseSDK):
1023
1071
  retry_config=retry_config,
1024
1072
  )
1025
1073
 
1026
- data: Any = None
1074
+ response_data: Any = None
1027
1075
  if utils.match_response(http_res, "200", "application/json"):
1028
1076
  return utils.unmarshal_json(http_res.text, models.GroupedAssetData)
1029
1077
  if utils.match_response(
1030
1078
  http_res, ["400", "401", "403", "404"], "application/json"
1031
1079
  ):
1032
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
1033
- raise models.ErrorResponse(data=data)
1080
+ response_data = utils.unmarshal_json(
1081
+ http_res.text, models.ErrorResponseData
1082
+ )
1083
+ raise models.ErrorResponse(data=response_data)
1034
1084
  if utils.match_response(http_res, "422", "application/json"):
1035
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
1036
- raise models.HTTPValidationError(data=data)
1085
+ response_data = utils.unmarshal_json(
1086
+ http_res.text, models.HTTPValidationErrorData
1087
+ )
1088
+ raise models.HTTPValidationError(data=response_data)
1037
1089
  if utils.match_response(http_res, "500", "application/json"):
1038
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
1039
- raise models.ErrorResponse(data=data)
1090
+ response_data = utils.unmarshal_json(
1091
+ http_res.text, models.ErrorResponseData
1092
+ )
1093
+ raise models.ErrorResponse(data=response_data)
1040
1094
  if utils.match_response(http_res, "4XX", "*"):
1041
1095
  http_res_text = utils.stream_to_text(http_res)
1042
1096
  raise models.APIError(
@@ -1131,20 +1185,26 @@ class Assets(BaseSDK):
1131
1185
  retry_config=retry_config,
1132
1186
  )
1133
1187
 
1134
- data: Any = None
1188
+ response_data: Any = None
1135
1189
  if utils.match_response(http_res, "200", "application/json"):
1136
1190
  return utils.unmarshal_json(http_res.text, models.GroupedAssetData)
1137
1191
  if utils.match_response(
1138
1192
  http_res, ["400", "401", "403", "404"], "application/json"
1139
1193
  ):
1140
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
1141
- raise models.ErrorResponse(data=data)
1194
+ response_data = utils.unmarshal_json(
1195
+ http_res.text, models.ErrorResponseData
1196
+ )
1197
+ raise models.ErrorResponse(data=response_data)
1142
1198
  if utils.match_response(http_res, "422", "application/json"):
1143
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
1144
- raise models.HTTPValidationError(data=data)
1199
+ response_data = utils.unmarshal_json(
1200
+ http_res.text, models.HTTPValidationErrorData
1201
+ )
1202
+ raise models.HTTPValidationError(data=response_data)
1145
1203
  if utils.match_response(http_res, "500", "application/json"):
1146
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
1147
- raise models.ErrorResponse(data=data)
1204
+ response_data = utils.unmarshal_json(
1205
+ http_res.text, models.ErrorResponseData
1206
+ )
1207
+ raise models.ErrorResponse(data=response_data)
1148
1208
  if utils.match_response(http_res, "4XX", "*"):
1149
1209
  http_res_text = await utils.stream_to_text_async(http_res)
1150
1210
  raise models.APIError(
@@ -1276,20 +1336,26 @@ class Assets(BaseSDK):
1276
1336
  retry_config=retry_config,
1277
1337
  )
1278
1338
 
1279
- data: Any = None
1339
+ response_data: Any = None
1280
1340
  if utils.match_response(http_res, "200", "application/json"):
1281
1341
  return utils.unmarshal_json(http_res.text, models.ListAssetsResponse)
1282
1342
  if utils.match_response(
1283
1343
  http_res, ["400", "401", "403", "404"], "application/json"
1284
1344
  ):
1285
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
1286
- raise models.ErrorResponse(data=data)
1345
+ response_data = utils.unmarshal_json(
1346
+ http_res.text, models.ErrorResponseData
1347
+ )
1348
+ raise models.ErrorResponse(data=response_data)
1287
1349
  if utils.match_response(http_res, "422", "application/json"):
1288
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
1289
- raise models.HTTPValidationError(data=data)
1350
+ response_data = utils.unmarshal_json(
1351
+ http_res.text, models.HTTPValidationErrorData
1352
+ )
1353
+ raise models.HTTPValidationError(data=response_data)
1290
1354
  if utils.match_response(http_res, "500", "application/json"):
1291
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
1292
- raise models.ErrorResponse(data=data)
1355
+ response_data = utils.unmarshal_json(
1356
+ http_res.text, models.ErrorResponseData
1357
+ )
1358
+ raise models.ErrorResponse(data=response_data)
1293
1359
  if utils.match_response(http_res, "4XX", "*"):
1294
1360
  http_res_text = utils.stream_to_text(http_res)
1295
1361
  raise models.APIError(
@@ -1421,20 +1487,26 @@ class Assets(BaseSDK):
1421
1487
  retry_config=retry_config,
1422
1488
  )
1423
1489
 
1424
- data: Any = None
1490
+ response_data: Any = None
1425
1491
  if utils.match_response(http_res, "200", "application/json"):
1426
1492
  return utils.unmarshal_json(http_res.text, models.ListAssetsResponse)
1427
1493
  if utils.match_response(
1428
1494
  http_res, ["400", "401", "403", "404"], "application/json"
1429
1495
  ):
1430
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
1431
- raise models.ErrorResponse(data=data)
1496
+ response_data = utils.unmarshal_json(
1497
+ http_res.text, models.ErrorResponseData
1498
+ )
1499
+ raise models.ErrorResponse(data=response_data)
1432
1500
  if utils.match_response(http_res, "422", "application/json"):
1433
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
1434
- raise models.HTTPValidationError(data=data)
1501
+ response_data = utils.unmarshal_json(
1502
+ http_res.text, models.HTTPValidationErrorData
1503
+ )
1504
+ raise models.HTTPValidationError(data=response_data)
1435
1505
  if utils.match_response(http_res, "500", "application/json"):
1436
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
1437
- raise models.ErrorResponse(data=data)
1506
+ response_data = utils.unmarshal_json(
1507
+ http_res.text, models.ErrorResponseData
1508
+ )
1509
+ raise models.ErrorResponse(data=response_data)
1438
1510
  if utils.match_response(http_res, "4XX", "*"):
1439
1511
  http_res_text = await utils.stream_to_text_async(http_res)
1440
1512
  raise models.APIError(
@@ -1560,20 +1632,26 @@ class Assets(BaseSDK):
1560
1632
  retry_config=retry_config,
1561
1633
  )
1562
1634
 
1563
- data: Any = None
1635
+ response_data: Any = None
1564
1636
  if utils.match_response(http_res, "200", "application/json"):
1565
1637
  return utils.unmarshal_json(http_res.text, models.ListAssetsResponse)
1566
1638
  if utils.match_response(
1567
1639
  http_res, ["400", "401", "403", "404"], "application/json"
1568
1640
  ):
1569
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
1570
- raise models.ErrorResponse(data=data)
1641
+ response_data = utils.unmarshal_json(
1642
+ http_res.text, models.ErrorResponseData
1643
+ )
1644
+ raise models.ErrorResponse(data=response_data)
1571
1645
  if utils.match_response(http_res, "422", "application/json"):
1572
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
1573
- raise models.HTTPValidationError(data=data)
1646
+ response_data = utils.unmarshal_json(
1647
+ http_res.text, models.HTTPValidationErrorData
1648
+ )
1649
+ raise models.HTTPValidationError(data=response_data)
1574
1650
  if utils.match_response(http_res, "500", "application/json"):
1575
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
1576
- raise models.ErrorResponse(data=data)
1651
+ response_data = utils.unmarshal_json(
1652
+ http_res.text, models.ErrorResponseData
1653
+ )
1654
+ raise models.ErrorResponse(data=response_data)
1577
1655
  if utils.match_response(http_res, "4XX", "*"):
1578
1656
  http_res_text = utils.stream_to_text(http_res)
1579
1657
  raise models.APIError(
@@ -1699,20 +1777,26 @@ class Assets(BaseSDK):
1699
1777
  retry_config=retry_config,
1700
1778
  )
1701
1779
 
1702
- data: Any = None
1780
+ response_data: Any = None
1703
1781
  if utils.match_response(http_res, "200", "application/json"):
1704
1782
  return utils.unmarshal_json(http_res.text, models.ListAssetsResponse)
1705
1783
  if utils.match_response(
1706
1784
  http_res, ["400", "401", "403", "404"], "application/json"
1707
1785
  ):
1708
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
1709
- raise models.ErrorResponse(data=data)
1786
+ response_data = utils.unmarshal_json(
1787
+ http_res.text, models.ErrorResponseData
1788
+ )
1789
+ raise models.ErrorResponse(data=response_data)
1710
1790
  if utils.match_response(http_res, "422", "application/json"):
1711
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
1712
- raise models.HTTPValidationError(data=data)
1791
+ response_data = utils.unmarshal_json(
1792
+ http_res.text, models.HTTPValidationErrorData
1793
+ )
1794
+ raise models.HTTPValidationError(data=response_data)
1713
1795
  if utils.match_response(http_res, "500", "application/json"):
1714
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
1715
- raise models.ErrorResponse(data=data)
1796
+ response_data = utils.unmarshal_json(
1797
+ http_res.text, models.ErrorResponseData
1798
+ )
1799
+ raise models.ErrorResponse(data=response_data)
1716
1800
  if utils.match_response(http_res, "4XX", "*"):
1717
1801
  http_res_text = await utils.stream_to_text_async(http_res)
1718
1802
  raise models.APIError(