14
14
15
15
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 )
@@ -112,9 +110,7 @@ def get_basic_list_of_booleans(*, client: Client,) -> List[bool]:
112
110
113
111
def upload_file_tests_upload_post (
114
112
* , client : Client , multipart_data : BodyUploadFileTestsUploadPost , keep_alive : Optional [bool ] = None ,
115
- ) -> Union [
116
- None , HTTPValidationError ,
117
- ]:
113
+ ) -> Union [None , HTTPValidationError ]:
118
114
119
115
""" Upload a file """
120
116
url = "{}/tests/upload" .format (client .base_url )
@@ -133,11 +129,7 @@ def upload_file_tests_upload_post(
133
129
raise ApiResponseError (response = response )
134
130
135
131
136
- def json_body_tests_json_body_post (
137
- * , client : Client , json_body : AModel ,
138
- ) -> Union [
139
- None , HTTPValidationError ,
140
- ]:
132
+ def json_body_tests_json_body_post (* , client : Client , json_body : AModel ,) -> Union [None , HTTPValidationError ]:
141
133
142
134
""" Try sending a JSON body """
143
135
url = "{}/tests/json_body" .format (client .base_url )
@@ -171,9 +163,7 @@ def test_defaults_tests_test_defaults_post(
171
163
),
172
164
union_prop : Optional [Union [Optional [float ], Optional [str ]]] = "not a float" ,
173
165
enum_prop : Optional [AnEnum ] = None ,
174
- ) -> Union [
175
- None , HTTPValidationError ,
176
- ]:
166
+ ) -> Union [None , HTTPValidationError ]:
177
167
178
168
""" """
179
169
url = "{}/tests/test_defaults" .format (client .base_url )
0 commit comments