14
14
15
15
async def get_user_list (
16
16
* , client : Client , an_enum_value : List [AnEnum ], some_date : Union [datetime .date , datetime .datetime ],
17
- ) -> Union [
18
- List [AModel ], HTTPValidationError ,
19
- ]:
17
+ ) -> Union [List [AModel ], HTTPValidationError ]:
20
18
21
19
""" Get a list of things """
22
20
url = "{}/tests/" .format (client .base_url ,)
@@ -117,9 +115,7 @@ async def get_basic_list_of_booleans(*, client: Client,) -> List[bool]:
117
115
118
116
async def upload_file_tests_upload_post (
119
117
* , client : Client , multipart_data : BodyUploadFileTestsUploadPost , keep_alive : Optional [bool ] = None ,
120
- ) -> Union [
121
- None , HTTPValidationError ,
122
- ]:
118
+ ) -> Union [None , HTTPValidationError ]:
123
119
124
120
""" Upload a file """
125
121
url = "{}/tests/upload" .format (client .base_url ,)
@@ -139,11 +135,7 @@ async def upload_file_tests_upload_post(
139
135
raise ApiResponseError (response = response )
140
136
141
137
142
- async def json_body_tests_json_body_post (
143
- * , client : Client , json_body : AModel ,
144
- ) -> Union [
145
- None , HTTPValidationError ,
146
- ]:
138
+ async def json_body_tests_json_body_post (* , client : Client , json_body : AModel ,) -> Union [None , HTTPValidationError ]:
147
139
148
140
""" Try sending a JSON body """
149
141
url = "{}/tests/json_body" .format (client .base_url ,)
@@ -178,9 +170,7 @@ async def test_defaults_tests_test_defaults_post(
178
170
),
179
171
union_prop : Optional [Union [Optional [float ], Optional [str ]]] = "not a float" ,
180
172
enum_prop : Optional [AnEnum ] = None ,
181
- ) -> Union [
182
- None , HTTPValidationError ,
183
- ]:
173
+ ) -> Union [None , HTTPValidationError ]:
184
174
185
175
""" """
186
176
url = "{}/tests/test_defaults" .format (client .base_url ,)
0 commit comments