Skip to content

Commit cf7d94e

Browse files
committed
More whitespace improvements
1 parent 2a48ee1 commit cf7d94e

14 files changed

+14
-0
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ def _get_kwargs(
1313
common: Union[Unset, str] = UNSET,
1414
) -> Dict[str, Any]:
1515
params: Dict[str, Any] = {}
16+
1617
params["common"] = common
1718

1819
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}

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

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ def _get_kwargs(
1313
common: Union[Unset, str] = UNSET,
1414
) -> Dict[str, Any]:
1515
params: Dict[str, Any] = {}
16+
1617
params["common"] = common
1718

1819
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}

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

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ def _get_kwargs(
1414
url_query: str,
1515
) -> Dict[str, Any]:
1616
params: Dict[str, Any] = {}
17+
1718
params["client"] = client_query
1819

1920
params["url"] = url_query

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

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ def _get_kwargs(
2929
required_model_prop: "ModelWithUnionProperty",
3030
) -> Dict[str, Any]:
3131
params: Dict[str, Any] = {}
32+
3233
params["string_prop"] = string_prop
3334

3435
params["string with num"] = string_with_num

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

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ def _get_kwargs(
1717
not_null_not_required: Union[Unset, datetime.datetime] = UNSET,
1818
) -> Dict[str, Any]:
1919
params: Dict[str, Any] = {}
20+
2021
json_not_null_required = not_null_required.isoformat()
2122
params["not_null_required"] = json_not_null_required
2223

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

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ def _get_kwargs(
2525
cookies["cookie param"] = cookie_param
2626

2727
params: Dict[str, Any] = {}
28+
2829
params["string param"] = string_param
2930

3031
params["integer param"] = integer_param

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

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ def _get_kwargs(
1414
param_query: Union[Unset, str] = UNSET,
1515
) -> Dict[str, Any]:
1616
params: Dict[str, Any] = {}
17+
1718
params["param"] = param_query
1819

1920
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}

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

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ def _get_kwargs(
1414
param_query: str = "overridden_in_GET",
1515
) -> Dict[str, Any]:
1616
params: Dict[str, Any] = {}
17+
1718
params["param"] = param_query
1819

1920
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}

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

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ def _get_kwargs(
2424
cookies["param"] = param_cookie
2525

2626
params: Dict[str, Any] = {}
27+
2728
params["param"] = param_query
2829

2930
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}

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

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ def _get_kwargs(
2121
some_date: Union[datetime.date, datetime.datetime],
2222
) -> Dict[str, Any]:
2323
params: Dict[str, Any] = {}
24+
2425
json_an_enum_value = []
2526
for an_enum_value_item_data in an_enum_value:
2627
an_enum_value_item = an_enum_value_item_data.value

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

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ def _get_kwargs(
1515
int_enum: AnIntEnum,
1616
) -> Dict[str, Any]:
1717
params: Dict[str, Any] = {}
18+
1819
json_int_enum = int_enum.value
1920
params["int_enum"] = json_int_enum
2021

end_to_end_tests/golden-record/my_test_api_client/api/true_/false_.py

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ def _get_kwargs(
1313
import_: str,
1414
) -> Dict[str, Any]:
1515
params: Dict[str, Any] = {}
16+
1617
params["import"] = import_
1718

1819
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}

end_to_end_tests/test-3-1-golden-record/test_3_1_features_client/api/const/post_const_path.py

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ def _get_kwargs(
1717
optional_query: Union[Literal["this sometimes goes in the query"], Unset] = UNSET,
1818
) -> Dict[str, Any]:
1919
params: Dict[str, Any] = {}
20+
2021
params["required query"] = required_query
2122

2223
params["optional query"] = optional_query

openapi_python_client/templates/endpoint_macros.py.jinja

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ if {{ parameter.python_name }} is not UNSET:
4141
{% macro query_params(endpoint) %}
4242
{% if endpoint.query_parameters %}
4343
params: Dict[str, Any] = {}
44+
4445
{% for property in endpoint.query_parameters.values() %}
4546
{% set destination = property.python_name %}
4647
{% import "property_templates/" + property.template as prop_template %}

0 commit comments

Comments
 (0)