Skip to content

Commit 250ed60

Browse files
fix: Ignore mypy error when returning None
This was introduced in "fix: Make empty response a `NoneProperty`", but is easier to fix now since parsed_responses in endpoint_module.py.jinja does not include `Any` response types anymore.
1 parent 5a3fa1c commit 250ed60

17 files changed

+25
-20
lines changed

end_to_end_tests/golden-record/my_test_api_client/api/default/get_common_parameters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def _build_response(*, client: Client, response: httpx.Response) -> Response[Non
4848
status_code=HTTPStatus(response.status_code),
4949
content=response.content,
5050
headers=response.headers,
51-
parsed=_parse_response(client=client, response=response),
51+
parsed=_parse_response(client=client, response=response), # type: ignore[func-returns-value]
5252
)
5353

5454

end_to_end_tests/golden-record/my_test_api_client/api/default/post_common_parameters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def _build_response(*, client: Client, response: httpx.Response) -> Response[Non
4848
status_code=HTTPStatus(response.status_code),
4949
content=response.content,
5050
headers=response.headers,
51-
parsed=_parse_response(client=client, response=response),
51+
parsed=_parse_response(client=client, response=response), # type: ignore[func-returns-value]
5252
)
5353

5454

end_to_end_tests/golden-record/my_test_api_client/api/location/get_location_header_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def _build_response(*, client: Client, response: httpx.Response) -> Response[Non
6767
status_code=HTTPStatus(response.status_code),
6868
content=response.content,
6969
headers=response.headers,
70-
parsed=_parse_response(client=client, response=response),
70+
parsed=_parse_response(client=client, response=response), # type: ignore[func-returns-value]
7171
)
7272

7373

end_to_end_tests/golden-record/my_test_api_client/api/location/get_location_query_optionality.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def _build_response(*, client: Client, response: httpx.Response) -> Response[Non
7272
status_code=HTTPStatus(response.status_code),
7373
content=response.content,
7474
headers=response.headers,
75-
parsed=_parse_response(client=client, response=response),
75+
parsed=_parse_response(client=client, response=response), # type: ignore[func-returns-value]
7676
)
7777

7878

end_to_end_tests/golden-record/my_test_api_client/api/parameter_references/get_parameter_references_path_param.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def _build_response(*, client: Client, response: httpx.Response) -> Response[Non
6060
status_code=HTTPStatus(response.status_code),
6161
content=response.content,
6262
headers=response.headers,
63-
parsed=_parse_response(client=client, response=response),
63+
parsed=_parse_response(client=client, response=response), # type: ignore[func-returns-value]
6464
)
6565

6666

end_to_end_tests/golden-record/my_test_api_client/api/parameters/delete_common_parameters_overriding_param.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def _build_response(*, client: Client, response: httpx.Response) -> Response[Non
4949
status_code=HTTPStatus(response.status_code),
5050
content=response.content,
5151
headers=response.headers,
52-
parsed=_parse_response(client=client, response=response),
52+
parsed=_parse_response(client=client, response=response), # type: ignore[func-returns-value]
5353
)
5454

5555

end_to_end_tests/golden-record/my_test_api_client/api/parameters/get_common_parameters_overriding_param.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def _build_response(*, client: Client, response: httpx.Response) -> Response[Non
4949
status_code=HTTPStatus(response.status_code),
5050
content=response.content,
5151
headers=response.headers,
52-
parsed=_parse_response(client=client, response=response),
52+
parsed=_parse_response(client=client, response=response), # type: ignore[func-returns-value]
5353
)
5454

5555

end_to_end_tests/golden-record/my_test_api_client/api/parameters/get_same_name_multiple_locations_param.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def _build_response(*, client: Client, response: httpx.Response) -> Response[Non
5757
status_code=HTTPStatus(response.status_code),
5858
content=response.content,
5959
headers=response.headers,
60-
parsed=_parse_response(client=client, response=response),
60+
parsed=_parse_response(client=client, response=response), # type: ignore[func-returns-value]
6161
)
6262

6363

end_to_end_tests/golden-record/my_test_api_client/api/parameters/multiple_path_parameters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def _build_response(*, client: Client, response: httpx.Response) -> Response[Non
4747
status_code=HTTPStatus(response.status_code),
4848
content=response.content,
4949
headers=response.headers,
50-
parsed=_parse_response(client=client, response=response),
50+
parsed=_parse_response(client=client, response=response), # type: ignore[func-returns-value]
5151
)
5252

5353

end_to_end_tests/golden-record/my_test_api_client/api/tag1/get_tag_with_number.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def _build_response(*, client: Client, response: httpx.Response) -> Response[Non
4141
status_code=HTTPStatus(response.status_code),
4242
content=response.content,
4343
headers=response.headers,
44-
parsed=_parse_response(client=client, response=response),
44+
parsed=_parse_response(client=client, response=response), # type: ignore[func-returns-value]
4545
)
4646

4747

0 commit comments

Comments
 (0)