Skip to content

Commit 1136487

Browse files
authored
style: Update Black (#394)
* style: Update Black * style: Update black (again) and run post merge
1 parent 85a070a commit 1136487

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+151
-150
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
@@ -86,7 +86,7 @@ def sync(
8686
multipart_data: BodyUploadFileTestsUploadPost,
8787
keep_alive: Union[Unset, bool] = UNSET,
8888
) -> Optional[Union[HTTPValidationError, None]]:
89-
""" Upload a file """
89+
"""Upload a file"""
9090

9191
return sync_detailed(
9292
client=client,
@@ -119,7 +119,7 @@ async def asyncio(
119119
multipart_data: BodyUploadFileTestsUploadPost,
120120
keep_alive: Union[Unset, bool] = UNSET,
121121
) -> Optional[Union[HTTPValidationError, None]]:
122-
""" Upload a file """
122+
"""Upload a file"""
123123

124124
return (
125125
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/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

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

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

1515
some_file: File
1616
some_string: Union[Unset, str] = "some_default_string"

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)

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

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

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

1414
additional_properties: Dict[str, AnEnum] = attr.ib(init=False, factory=dict)
1515

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

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

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

1616
additional_properties: Dict[
1717
str, Union[List[str], ModelWithAnyJsonPropertiesAdditionalPropertyType0, bool, float, int, str]

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

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

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

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

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

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

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

1717
a_date_holder: Union[Unset, ModelWithPrimitiveAdditionalPropertiesADateHolder] = UNSET
1818
additional_properties: Dict[str, str] = attr.ib(init=False, factory=dict)

0 commit comments

Comments
 (0)