@@ -47,19 +47,15 @@ def _get_kwargs(
47
47
}
48
48
49
49
50
- def _parse_response (
51
- * , response : httpx .Response
52
- ) -> Optional [Union [List [AModel ], HTTPValidationError ,]]:
50
+ def _parse_response (* , response : httpx .Response ) -> Optional [Union [List [AModel ], HTTPValidationError ]]:
53
51
if response .status_code == 200 :
54
52
return [AModel .from_dict (item ) for item in cast (List [Dict [str , Any ]], response .json ())]
55
53
if response .status_code == 422 :
56
54
return HTTPValidationError .from_dict (cast (Dict [str , Any ], response .json ()))
57
55
return None
58
56
59
57
60
- def _build_response (
61
- * , response : httpx .Response
62
- ) -> Response [Union [List [AModel ], HTTPValidationError ,]]:
58
+ def _build_response (* , response : httpx .Response ) -> Response [Union [List [AModel ], HTTPValidationError ]]:
63
59
return Response (
64
60
status_code = response .status_code ,
65
61
content = response .content ,
@@ -73,7 +69,7 @@ def sync_detailed(
73
69
client : Client ,
74
70
an_enum_value : List [AnEnum ],
75
71
some_date : Union [datetime .date , datetime .datetime ],
76
- ) -> Response [Union [List [AModel ], HTTPValidationError , ]]:
72
+ ) -> Response [Union [List [AModel ], HTTPValidationError ]]:
77
73
kwargs = _get_kwargs (
78
74
client = client ,
79
75
an_enum_value = an_enum_value ,
@@ -92,7 +88,7 @@ def sync(
92
88
client : Client ,
93
89
an_enum_value : List [AnEnum ],
94
90
some_date : Union [datetime .date , datetime .datetime ],
95
- ) -> Optional [Union [List [AModel ], HTTPValidationError , ]]:
91
+ ) -> Optional [Union [List [AModel ], HTTPValidationError ]]:
96
92
""" Get a list of things """
97
93
98
94
return sync_detailed (
@@ -107,7 +103,7 @@ async def asyncio_detailed(
107
103
client : Client ,
108
104
an_enum_value : List [AnEnum ],
109
105
some_date : Union [datetime .date , datetime .datetime ],
110
- ) -> Response [Union [List [AModel ], HTTPValidationError , ]]:
106
+ ) -> Response [Union [List [AModel ], HTTPValidationError ]]:
111
107
kwargs = _get_kwargs (
112
108
client = client ,
113
109
an_enum_value = an_enum_value ,
@@ -125,7 +121,7 @@ async def asyncio(
125
121
client : Client ,
126
122
an_enum_value : List [AnEnum ],
127
123
some_date : Union [datetime .date , datetime .datetime ],
128
- ) -> Optional [Union [List [AModel ], HTTPValidationError , ]]:
124
+ ) -> Optional [Union [List [AModel ], HTTPValidationError ]]:
129
125
""" Get a list of things """
130
126
131
127
return (
0 commit comments