Skip to content

Commit f79bccb

Browse files
fix: Remove Response[] from docstring of non-detailed functions (#741). Thanks @robertschweizer!
1 parent b754fd3 commit f79bccb

19 files changed

+45
-41
lines changed

end_to_end_tests/golden-record/my_test_api_client/api/responses/post_responses_unions_simple_before_complex.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def sync(
9191
httpx.TimeoutException: If the request takes longer than Client.timeout.
9292
9393
Returns:
94-
Response[PostResponsesUnionsSimpleBeforeComplexResponse200]
94+
PostResponsesUnionsSimpleBeforeComplexResponse200
9595
"""
9696

9797
return sync_detailed(
@@ -134,7 +134,7 @@ async def asyncio(
134134
httpx.TimeoutException: If the request takes longer than Client.timeout.
135135
136136
Returns:
137-
Response[PostResponsesUnionsSimpleBeforeComplexResponse200]
137+
PostResponsesUnionsSimpleBeforeComplexResponse200
138138
"""
139139

140140
return (

end_to_end_tests/golden-record/my_test_api_client/api/tests/callback_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def sync(
106106
httpx.TimeoutException: If the request takes longer than Client.timeout.
107107
108108
Returns:
109-
Response[Union[Any, HTTPValidationError]]
109+
Union[Any, HTTPValidationError]
110110
"""
111111

112112
return sync_detailed(
@@ -163,7 +163,7 @@ async def asyncio(
163163
httpx.TimeoutException: If the request takes longer than Client.timeout.
164164
165165
Returns:
166-
Response[Union[Any, HTTPValidationError]]
166+
Union[Any, HTTPValidationError]
167167
"""
168168

169169
return (

end_to_end_tests/golden-record/my_test_api_client/api/tests/defaults_tests_defaults_post.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def sync(
219219
httpx.TimeoutException: If the request takes longer than Client.timeout.
220220
221221
Returns:
222-
Response[Union[Any, HTTPValidationError]]
222+
Union[Any, HTTPValidationError]
223223
"""
224224

225225
return sync_detailed(
@@ -332,7 +332,7 @@ async def asyncio(
332332
httpx.TimeoutException: If the request takes longer than Client.timeout.
333333
334334
Returns:
335-
Response[Union[Any, HTTPValidationError]]
335+
Union[Any, HTTPValidationError]
336336
"""
337337

338338
return (

end_to_end_tests/golden-record/my_test_api_client/api/tests/get_basic_list_of_booleans.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def sync(
8888
httpx.TimeoutException: If the request takes longer than Client.timeout.
8989
9090
Returns:
91-
Response[List[bool]]
91+
List[bool]
9292
"""
9393

9494
return sync_detailed(
@@ -135,7 +135,7 @@ async def asyncio(
135135
httpx.TimeoutException: If the request takes longer than Client.timeout.
136136
137137
Returns:
138-
Response[List[bool]]
138+
List[bool]
139139
"""
140140

141141
return (

end_to_end_tests/golden-record/my_test_api_client/api/tests/get_basic_list_of_floats.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def sync(
8888
httpx.TimeoutException: If the request takes longer than Client.timeout.
8989
9090
Returns:
91-
Response[List[float]]
91+
List[float]
9292
"""
9393

9494
return sync_detailed(
@@ -135,7 +135,7 @@ async def asyncio(
135135
httpx.TimeoutException: If the request takes longer than Client.timeout.
136136
137137
Returns:
138-
Response[List[float]]
138+
List[float]
139139
"""
140140

141141
return (

end_to_end_tests/golden-record/my_test_api_client/api/tests/get_basic_list_of_integers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def sync(
8888
httpx.TimeoutException: If the request takes longer than Client.timeout.
8989
9090
Returns:
91-
Response[List[int]]
91+
List[int]
9292
"""
9393

9494
return sync_detailed(
@@ -135,7 +135,7 @@ async def asyncio(
135135
httpx.TimeoutException: If the request takes longer than Client.timeout.
136136
137137
Returns:
138-
Response[List[int]]
138+
List[int]
139139
"""
140140

141141
return (

end_to_end_tests/golden-record/my_test_api_client/api/tests/get_basic_list_of_strings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def sync(
8888
httpx.TimeoutException: If the request takes longer than Client.timeout.
8989
9090
Returns:
91-
Response[List[str]]
91+
List[str]
9292
"""
9393

9494
return sync_detailed(
@@ -135,7 +135,7 @@ async def asyncio(
135135
httpx.TimeoutException: If the request takes longer than Client.timeout.
136136
137137
Returns:
138-
Response[List[str]]
138+
List[str]
139139
"""
140140

141141
return (

end_to_end_tests/golden-record/my_test_api_client/api/tests/get_user_list.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def sync(
173173
httpx.TimeoutException: If the request takes longer than Client.timeout.
174174
175175
Returns:
176-
Response[Union[HTTPValidationError, List['AModel']]]
176+
Union[HTTPValidationError, List['AModel']]
177177
"""
178178

179179
return sync_detailed(
@@ -248,7 +248,7 @@ async def asyncio(
248248
httpx.TimeoutException: If the request takes longer than Client.timeout.
249249
250250
Returns:
251-
Response[Union[HTTPValidationError, List['AModel']]]
251+
Union[HTTPValidationError, List['AModel']]
252252
"""
253253

254254
return (

end_to_end_tests/golden-record/my_test_api_client/api/tests/int_enum_tests_int_enum_post.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def sync(
107107
httpx.TimeoutException: If the request takes longer than Client.timeout.
108108
109109
Returns:
110-
Response[Union[Any, HTTPValidationError]]
110+
Union[Any, HTTPValidationError]
111111
"""
112112

113113
return sync_detailed(
@@ -160,7 +160,7 @@ async def asyncio(
160160
httpx.TimeoutException: If the request takes longer than Client.timeout.
161161
162162
Returns:
163-
Response[Union[Any, HTTPValidationError]]
163+
Union[Any, HTTPValidationError]
164164
"""
165165

166166
return (

end_to_end_tests/golden-record/my_test_api_client/api/tests/json_body_tests_json_body_post.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def sync(
106106
httpx.TimeoutException: If the request takes longer than Client.timeout.
107107
108108
Returns:
109-
Response[Union[Any, HTTPValidationError]]
109+
Union[Any, HTTPValidationError]
110110
"""
111111

112112
return sync_detailed(
@@ -163,7 +163,7 @@ async def asyncio(
163163
httpx.TimeoutException: If the request takes longer than Client.timeout.
164164
165165
Returns:
166-
Response[Union[Any, HTTPValidationError]]
166+
Union[Any, HTTPValidationError]
167167
"""
168168

169169
return (

0 commit comments

Comments
 (0)