Skip to content

Commit cbe40af

Browse files
author
Constantinos Symeonides
committed
chore: Reformat
1 parent b824cc5 commit cbe40af

38 files changed

+66
-62
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ def sync(
222222
nullable_model_prop: Union[Unset, None, ModelWithUnionProperty] = UNSET,
223223
nullable_required_model_prop: Optional[ModelWithUnionProperty],
224224
) -> Optional[Union[HTTPValidationError, None]]:
225-
""" """
225+
""" """
226226

227227
return sync_detailed(
228228
client=client,
@@ -315,7 +315,7 @@ async def asyncio(
315315
nullable_model_prop: Union[Unset, None, ModelWithUnionProperty] = UNSET,
316316
nullable_required_model_prop: Optional[ModelWithUnionProperty],
317317
) -> Optional[Union[HTTPValidationError, None]]:
318-
""" """
318+
""" """
319319

320320
return (
321321
await asyncio_detailed(

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def sync(
5959
*,
6060
client: Client,
6161
) -> Optional[List[bool]]:
62-
"""Get a list of booleans"""
62+
""" Get a list of booleans """
6363

6464
return sync_detailed(
6565
client=client,
@@ -84,7 +84,7 @@ async def asyncio(
8484
*,
8585
client: Client,
8686
) -> Optional[List[bool]]:
87-
"""Get a list of booleans"""
87+
""" Get a list of booleans """
8888

8989
return (
9090
await asyncio_detailed(

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def sync(
5959
*,
6060
client: Client,
6161
) -> Optional[List[float]]:
62-
"""Get a list of floats"""
62+
""" Get a list of floats """
6363

6464
return sync_detailed(
6565
client=client,
@@ -84,7 +84,7 @@ async def asyncio(
8484
*,
8585
client: Client,
8686
) -> Optional[List[float]]:
87-
"""Get a list of floats"""
87+
""" Get a list of floats """
8888

8989
return (
9090
await asyncio_detailed(

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def sync(
5959
*,
6060
client: Client,
6161
) -> Optional[List[int]]:
62-
"""Get a list of integers"""
62+
""" Get a list of integers """
6363

6464
return sync_detailed(
6565
client=client,
@@ -84,7 +84,7 @@ async def asyncio(
8484
*,
8585
client: Client,
8686
) -> Optional[List[int]]:
87-
"""Get a list of integers"""
87+
""" Get a list of integers """
8888

8989
return (
9090
await asyncio_detailed(

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def sync(
5959
*,
6060
client: Client,
6161
) -> Optional[List[str]]:
62-
"""Get a list of strings"""
62+
""" Get a list of strings """
6363

6464
return sync_detailed(
6565
client=client,
@@ -84,7 +84,7 @@ async def asyncio(
8484
*,
8585
client: Client,
8686
) -> Optional[List[str]]:
87-
"""Get a list of strings"""
87+
""" Get a list of strings """
8888

8989
return (
9090
await asyncio_detailed(

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def sync(
102102
an_enum_value: List[AnEnum],
103103
some_date: Union[datetime.date, datetime.datetime],
104104
) -> Optional[Union[HTTPValidationError, List[AModel]]]:
105-
"""Get a list of things"""
105+
""" Get a list of things """
106106

107107
return sync_detailed(
108108
client=client,
@@ -135,7 +135,7 @@ async def asyncio(
135135
an_enum_value: List[AnEnum],
136136
some_date: Union[datetime.date, datetime.datetime],
137137
) -> Optional[Union[HTTPValidationError, List[AModel]]]:
138-
"""Get a list of things"""
138+
""" Get a list of things """
139139

140140
return (
141141
await asyncio_detailed(

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def sync(
7777
client: Client,
7878
int_enum: AnIntEnum,
7979
) -> Optional[Union[HTTPValidationError, None]]:
80-
""" """
80+
""" """
8181

8282
return sync_detailed(
8383
client=client,
@@ -106,7 +106,7 @@ async def asyncio(
106106
client: Client,
107107
int_enum: AnIntEnum,
108108
) -> Optional[Union[HTTPValidationError, None]]:
109-
""" """
109+
""" """
110110

111111
return (
112112
await asyncio_detailed(

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def sync(
7272
client: Client,
7373
json_body: AModel,
7474
) -> Optional[Union[HTTPValidationError, None]]:
75-
"""Try sending a JSON body"""
75+
""" Try sending a JSON body """
7676

7777
return sync_detailed(
7878
client=client,
@@ -101,7 +101,7 @@ async def asyncio(
101101
client: Client,
102102
json_body: AModel,
103103
) -> Optional[Union[HTTPValidationError, None]]:
104-
"""Try sending a JSON body"""
104+
""" Try sending a JSON body """
105105

106106
return (
107107
await asyncio_detailed(

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def sync(
6060
*,
6161
client: Client,
6262
) -> Optional[File]:
63-
""" """
63+
""" """
6464

6565
return sync_detailed(
6666
client=client,
@@ -85,7 +85,7 @@ async def asyncio(
8585
*,
8686
client: Client,
8787
) -> Optional[File]:
88-
""" """
88+
""" """
8989

9090
return (
9191
await asyncio_detailed(

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def sync(
7878
client: Client,
7979
query_param: Union[Unset, List[str]] = UNSET,
8080
) -> Optional[Union[HTTPValidationError, None]]:
81-
"""Test optional query parameters"""
81+
""" Test optional query parameters """
8282

8383
return sync_detailed(
8484
client=client,
@@ -107,7 +107,7 @@ async def asyncio(
107107
client: Client,
108108
query_param: Union[Unset, List[str]] = UNSET,
109109
) -> Optional[Union[HTTPValidationError, None]]:
110-
"""Test optional query parameters"""
110+
""" Test optional query parameters """
111111

112112
return (
113113
await asyncio_detailed(

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def sync(
6868
client: Client,
6969
json_body: TestInlineObjectsJsonBody,
7070
) -> Optional[TestInlineObjectsResponse200]:
71-
""" """
71+
""" """
7272

7373
return sync_detailed(
7474
client=client,
@@ -97,7 +97,7 @@ async def asyncio(
9797
client: Client,
9898
json_body: TestInlineObjectsJsonBody,
9999
) -> Optional[TestInlineObjectsResponse200]:
100-
""" """
100+
""" """
101101

102102
return (
103103
await asyncio_detailed(

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def sync(
8989
multipart_data: BodyUploadFileTestsUploadPost,
9090
keep_alive: Union[Unset, bool] = UNSET,
9191
) -> Optional[Union[HTTPValidationError, None]]:
92-
"""Upload a file"""
92+
""" Upload a file """
9393

9494
return sync_detailed(
9595
client=client,
@@ -122,7 +122,7 @@ async def asyncio(
122122
multipart_data: BodyUploadFileTestsUploadPost,
123123
keep_alive: Union[Unset, bool] = UNSET,
124124
) -> Optional[Union[HTTPValidationError, None]]:
125-
"""Upload a file"""
125+
""" Upload a file """
126126

127127
return (
128128
await asyncio_detailed(

end_to_end_tests/golden-record/my_test_api_client/client.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -5,42 +5,42 @@
55

66
@attr.s(auto_attribs=True)
77
class Client:
8-
"""A class for keeping track of data related to the API"""
8+
""" A class for keeping track of data related to the API """
99

1010
base_url: str
1111
cookies: Dict[str, str] = attr.ib(factory=dict, kw_only=True)
1212
headers: Dict[str, str] = attr.ib(factory=dict, kw_only=True)
1313
timeout: float = attr.ib(5.0, kw_only=True)
1414

1515
def get_headers(self) -> Dict[str, str]:
16-
"""Get headers to be used in all endpoints"""
16+
""" Get headers to be used in all endpoints """
1717
return {**self.headers}
1818

1919
def with_headers(self, headers: Dict[str, str]) -> "Client":
20-
"""Get a new client matching this one with additional headers"""
20+
""" Get a new client matching this one with additional headers """
2121
return attr.evolve(self, headers={**self.headers, **headers})
2222

2323
def get_cookies(self) -> Dict[str, str]:
2424
return {**self.cookies}
2525

2626
def with_cookies(self, cookies: Dict[str, str]) -> "Client":
27-
"""Get a new client matching this one with additional cookies"""
27+
""" Get a new client matching this one with additional cookies """
2828
return attr.evolve(self, cookies={**self.cookies, **cookies})
2929

3030
def get_timeout(self) -> float:
3131
return self.timeout
3232

3333
def with_timeout(self, timeout: float) -> "Client":
34-
"""Get a new client matching this one with a new timeout (in seconds)"""
34+
""" Get a new client matching this one with a new timeout (in seconds) """
3535
return attr.evolve(self, timeout=timeout)
3636

3737

3838
@attr.s(auto_attribs=True)
3939
class AuthenticatedClient(Client):
40-
"""A Client which has been authenticated for use on secured endpoints"""
40+
""" A Client which has been authenticated for use on secured endpoints """
4141

4242
token: str
4343

4444
def get_headers(self) -> Dict[str, str]:
45-
"""Get headers to be used in authenticated endpoints"""
45+
""" Get headers to be used in authenticated endpoints """
4646
return {"Authorization": f"Bearer {self.token}", **self.headers}

end_to_end_tests/golden-record/my_test_api_client/models/a_model.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
@attr.s(auto_attribs=True)
1818
class AModel:
19-
"""A Model for testing all the ways custom objects can be used"""
19+
""" A Model for testing all the ways custom objects can be used """
2020

2121
an_enum_value: AnEnum
2222
a_camel_date_time: Union[datetime.date, datetime.datetime]

end_to_end_tests/golden-record/my_test_api_client/models/a_model_with_properties_reference_that_are_not_object.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
@attr.s(auto_attribs=True)
1515
class AModelWithPropertiesReferenceThatAreNotObject:
16-
""" """
16+
""" """
1717

1818
enum_properties_ref: List[AnEnum]
1919
str_properties_ref: List[str]

end_to_end_tests/golden-record/my_test_api_client/models/all_of_sub_model.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
@attr.s(auto_attribs=True)
1111
class AllOfSubModel:
12-
""" """
12+
""" """
1313

1414
a_sub_property: Union[Unset, str] = UNSET
1515
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)

end_to_end_tests/golden-record/my_test_api_client/models/another_all_of_sub_model.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
@attr.s(auto_attribs=True)
1111
class AnotherAllOfSubModel:
12-
""" """
12+
""" """
1313

1414
another_sub_property: Union[Unset, str] = UNSET
1515
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)

end_to_end_tests/golden-record/my_test_api_client/models/body_upload_file_tests_upload_post.py

+9-5
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
@attr.s(auto_attribs=True)
1313
class BodyUploadFileTestsUploadPost:
14-
""" """
14+
""" """
1515

1616
some_file: File
1717
some_optional_file: Union[Unset, File] = UNSET
@@ -61,9 +61,11 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
6161
d = src_dict.copy()
6262
some_file = File(payload=BytesIO(d.pop("some_file")))
6363

64-
some_optional_file: Union[Unset, File] = UNSET
6564
_some_optional_file = d.pop("some_optional_file", UNSET)
66-
if not isinstance(_some_optional_file, Unset):
65+
some_optional_file: Union[Unset, File]
66+
if isinstance(_some_optional_file, Unset):
67+
some_optional_file = UNSET
68+
else:
6769
some_optional_file = File(payload=BytesIO(_some_optional_file))
6870

6971
some_string = d.pop("some_string", UNSET)
@@ -72,9 +74,11 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
7274

7375
some_array = cast(List[float], d.pop("some_array", UNSET))
7476

75-
some_object: Union[Unset, BodyUploadFileTestsUploadPostSomeObject] = UNSET
7677
_some_object = d.pop("some_object", UNSET)
77-
if not isinstance(_some_object, Unset):
78+
some_object: Union[Unset, BodyUploadFileTestsUploadPostSomeObject]
79+
if isinstance(_some_object, Unset):
80+
some_object = UNSET
81+
else:
7882
some_object = BodyUploadFileTestsUploadPostSomeObject.from_dict(_some_object)
7983

8084
body_upload_file_tests_upload_post = cls(

end_to_end_tests/golden-record/my_test_api_client/models/free_form_model.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
@attr.s(auto_attribs=True)
99
class FreeFormModel:
10-
""" """
10+
""" """
1111

1212
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
1313

end_to_end_tests/golden-record/my_test_api_client/models/http_validation_error.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
@attr.s(auto_attribs=True)
1212
class HTTPValidationError:
13-
""" """
13+
""" """
1414

1515
detail: Union[Unset, List[ValidationError]] = UNSET
1616

end_to_end_tests/golden-record/my_test_api_client/models/model_from_all_of.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
@attr.s(auto_attribs=True)
1111
class ModelFromAllOf:
12-
""" """
12+
""" """
1313

1414
a_sub_property: Union[Unset, str] = UNSET
1515
another_sub_property: Union[Unset, str] = UNSET

end_to_end_tests/golden-record/my_test_api_client/models/model_name.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
@attr.s(auto_attribs=True)
99
class ModelName:
10-
""" """
10+
""" """
1111

1212
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
1313

end_to_end_tests/golden-record/my_test_api_client/models/model_with_additional_properties_inlined.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
@attr.s(auto_attribs=True)
1414
class ModelWithAdditionalPropertiesInlined:
15-
""" """
15+
""" """
1616

1717
a_number: Union[Unset, float] = UNSET
1818
additional_properties: Dict[str, ModelWithAdditionalPropertiesInlinedAdditionalProperty] = attr.ib(

end_to_end_tests/golden-record/my_test_api_client/models/model_with_additional_properties_inlined_additional_property.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
@attr.s(auto_attribs=True)
1111
class ModelWithAdditionalPropertiesInlinedAdditionalProperty:
12-
""" """
12+
""" """
1313

1414
extra_props_prop: Union[Unset, str] = UNSET
1515
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)

0 commit comments

Comments
 (0)