From e3fa0c88b3dec790a5dadf1e7de294f144e4f4e5 Mon Sep 17 00:00:00 2001 From: Dylan Anthony Date: Sun, 25 Apr 2021 16:44:30 -0600 Subject: [PATCH 1/2] style: Update Black --- .../api/tests/defaults_tests_defaults_post.py | 4 +- .../api/tests/get_basic_list_of_booleans.py | 4 +- .../api/tests/get_basic_list_of_floats.py | 4 +- .../api/tests/get_basic_list_of_integers.py | 4 +- .../api/tests/get_basic_list_of_strings.py | 4 +- .../api/tests/get_user_list.py | 4 +- .../api/tests/int_enum_tests_int_enum_post.py | 4 +- .../tests/json_body_tests_json_body_post.py | 4 +- .../octet_stream_tests_octet_stream_get.py | 4 +- ...tional_value_tests_optional_query_param.py | 4 +- .../api/tests/test_inline_objects.py | 4 +- .../tests/upload_file_tests_upload_post.py | 4 +- .../my_test_api_client/client.py | 14 +-- .../my_test_api_client/models/a_model.py | 2 +- .../models/all_of_sub_model.py | 2 +- .../models/another_all_of_sub_model.py | 2 +- .../body_upload_file_tests_upload_post.py | 2 +- .../models/free_form_model.py | 2 +- .../models/http_validation_error.py | 2 +- .../models/model_from_all_of.py | 2 +- .../my_test_api_client/models/model_name.py | 2 +- ...odel_with_additional_properties_inlined.py | 2 +- ..._properties_inlined_additional_property.py | 2 +- .../model_with_additional_properties_refed.py | 2 +- .../models/model_with_any_json_properties.py | 2 +- ...on_properties_additional_property_type0.py | 2 +- ...el_with_primitive_additional_properties.py | 2 +- ...ive_additional_properties_a_date_holder.py | 2 +- .../models/model_with_property_ref.py | 2 +- .../models/model_with_union_property.py | 2 +- .../model_with_union_property_inlined.py | 2 +- ...with_union_property_inlined_fruit_type0.py | 2 +- ...with_union_property_inlined_fruit_type1.py | 2 +- .../models/test_inline_objects_json_body.py | 2 +- .../test_inline_objects_response_200.py | 2 +- .../models/validation_error.py | 2 +- .../golden-record/my_test_api_client/types.py | 6 +- openapi_python_client/__init__.py | 4 +- openapi_python_client/cli.py | 8 +- openapi_python_client/config.py | 2 +- openapi_python_client/parser/errors.py | 8 +- openapi_python_client/parser/openapi.py | 26 ++--- .../parser/properties/__init__.py | 24 ++-- .../parser/properties/enum_property.py | 4 +- .../parser/properties/model_property.py | 2 +- .../parser/properties/property.py | 2 +- .../parser/properties/schemas.py | 6 +- openapi_python_client/parser/responses.py | 6 +- openapi_python_client/utils.py | 2 +- poetry.lock | 103 +++++++----------- pyproject.toml | 4 +- 51 files changed, 146 insertions(+), 169 deletions(-) diff --git a/end_to_end_tests/golden-record/my_test_api_client/api/tests/defaults_tests_defaults_post.py b/end_to_end_tests/golden-record/my_test_api_client/api/tests/defaults_tests_defaults_post.py index e671e60ab..937d903a3 100644 --- a/end_to_end_tests/golden-record/my_test_api_client/api/tests/defaults_tests_defaults_post.py +++ b/end_to_end_tests/golden-record/my_test_api_client/api/tests/defaults_tests_defaults_post.py @@ -222,7 +222,7 @@ def sync( nullable_model_prop: Union[Unset, None, ModelWithUnionProperty] = UNSET, nullable_required_model_prop: Optional[ModelWithUnionProperty], ) -> Optional[Union[HTTPValidationError, None]]: - """ """ + """ """ return sync_detailed( client=client, @@ -315,7 +315,7 @@ async def asyncio( nullable_model_prop: Union[Unset, None, ModelWithUnionProperty] = UNSET, nullable_required_model_prop: Optional[ModelWithUnionProperty], ) -> Optional[Union[HTTPValidationError, None]]: - """ """ + """ """ return ( await asyncio_detailed( diff --git a/end_to_end_tests/golden-record/my_test_api_client/api/tests/get_basic_list_of_booleans.py b/end_to_end_tests/golden-record/my_test_api_client/api/tests/get_basic_list_of_booleans.py index d025860ec..08c26dcdb 100644 --- a/end_to_end_tests/golden-record/my_test_api_client/api/tests/get_basic_list_of_booleans.py +++ b/end_to_end_tests/golden-record/my_test_api_client/api/tests/get_basic_list_of_booleans.py @@ -59,7 +59,7 @@ def sync( *, client: Client, ) -> Optional[List[bool]]: - """ Get a list of booleans """ + """Get a list of booleans""" return sync_detailed( client=client, @@ -84,7 +84,7 @@ async def asyncio( *, client: Client, ) -> Optional[List[bool]]: - """ Get a list of booleans """ + """Get a list of booleans""" return ( await asyncio_detailed( diff --git a/end_to_end_tests/golden-record/my_test_api_client/api/tests/get_basic_list_of_floats.py b/end_to_end_tests/golden-record/my_test_api_client/api/tests/get_basic_list_of_floats.py index e2199a3b9..4cd722164 100644 --- a/end_to_end_tests/golden-record/my_test_api_client/api/tests/get_basic_list_of_floats.py +++ b/end_to_end_tests/golden-record/my_test_api_client/api/tests/get_basic_list_of_floats.py @@ -59,7 +59,7 @@ def sync( *, client: Client, ) -> Optional[List[float]]: - """ Get a list of floats """ + """Get a list of floats""" return sync_detailed( client=client, @@ -84,7 +84,7 @@ async def asyncio( *, client: Client, ) -> Optional[List[float]]: - """ Get a list of floats """ + """Get a list of floats""" return ( await asyncio_detailed( diff --git a/end_to_end_tests/golden-record/my_test_api_client/api/tests/get_basic_list_of_integers.py b/end_to_end_tests/golden-record/my_test_api_client/api/tests/get_basic_list_of_integers.py index dc3c6af6a..badffd2a8 100644 --- a/end_to_end_tests/golden-record/my_test_api_client/api/tests/get_basic_list_of_integers.py +++ b/end_to_end_tests/golden-record/my_test_api_client/api/tests/get_basic_list_of_integers.py @@ -59,7 +59,7 @@ def sync( *, client: Client, ) -> Optional[List[int]]: - """ Get a list of integers """ + """Get a list of integers""" return sync_detailed( client=client, @@ -84,7 +84,7 @@ async def asyncio( *, client: Client, ) -> Optional[List[int]]: - """ Get a list of integers """ + """Get a list of integers""" return ( await asyncio_detailed( diff --git a/end_to_end_tests/golden-record/my_test_api_client/api/tests/get_basic_list_of_strings.py b/end_to_end_tests/golden-record/my_test_api_client/api/tests/get_basic_list_of_strings.py index 150ab9a22..fa040b04b 100644 --- a/end_to_end_tests/golden-record/my_test_api_client/api/tests/get_basic_list_of_strings.py +++ b/end_to_end_tests/golden-record/my_test_api_client/api/tests/get_basic_list_of_strings.py @@ -59,7 +59,7 @@ def sync( *, client: Client, ) -> Optional[List[str]]: - """ Get a list of strings """ + """Get a list of strings""" return sync_detailed( client=client, @@ -84,7 +84,7 @@ async def asyncio( *, client: Client, ) -> Optional[List[str]]: - """ Get a list of strings """ + """Get a list of strings""" return ( await asyncio_detailed( diff --git a/end_to_end_tests/golden-record/my_test_api_client/api/tests/get_user_list.py b/end_to_end_tests/golden-record/my_test_api_client/api/tests/get_user_list.py index 095f4be9d..96ca18884 100644 --- a/end_to_end_tests/golden-record/my_test_api_client/api/tests/get_user_list.py +++ b/end_to_end_tests/golden-record/my_test_api_client/api/tests/get_user_list.py @@ -102,7 +102,7 @@ def sync( an_enum_value: List[AnEnum], some_date: Union[datetime.date, datetime.datetime], ) -> Optional[Union[HTTPValidationError, List[AModel]]]: - """ Get a list of things """ + """Get a list of things""" return sync_detailed( client=client, @@ -135,7 +135,7 @@ async def asyncio( an_enum_value: List[AnEnum], some_date: Union[datetime.date, datetime.datetime], ) -> Optional[Union[HTTPValidationError, List[AModel]]]: - """ Get a list of things """ + """Get a list of things""" return ( await asyncio_detailed( diff --git a/end_to_end_tests/golden-record/my_test_api_client/api/tests/int_enum_tests_int_enum_post.py b/end_to_end_tests/golden-record/my_test_api_client/api/tests/int_enum_tests_int_enum_post.py index 6691aecf0..aebbccebc 100644 --- a/end_to_end_tests/golden-record/my_test_api_client/api/tests/int_enum_tests_int_enum_post.py +++ b/end_to_end_tests/golden-record/my_test_api_client/api/tests/int_enum_tests_int_enum_post.py @@ -77,7 +77,7 @@ def sync( client: Client, int_enum: AnIntEnum, ) -> Optional[Union[HTTPValidationError, None]]: - """ """ + """ """ return sync_detailed( client=client, @@ -106,7 +106,7 @@ async def asyncio( client: Client, int_enum: AnIntEnum, ) -> Optional[Union[HTTPValidationError, None]]: - """ """ + """ """ return ( await asyncio_detailed( diff --git a/end_to_end_tests/golden-record/my_test_api_client/api/tests/json_body_tests_json_body_post.py b/end_to_end_tests/golden-record/my_test_api_client/api/tests/json_body_tests_json_body_post.py index 2c21e806e..14c81c0d1 100644 --- a/end_to_end_tests/golden-record/my_test_api_client/api/tests/json_body_tests_json_body_post.py +++ b/end_to_end_tests/golden-record/my_test_api_client/api/tests/json_body_tests_json_body_post.py @@ -72,7 +72,7 @@ def sync( client: Client, json_body: AModel, ) -> Optional[Union[HTTPValidationError, None]]: - """ Try sending a JSON body """ + """Try sending a JSON body""" return sync_detailed( client=client, @@ -101,7 +101,7 @@ async def asyncio( client: Client, json_body: AModel, ) -> Optional[Union[HTTPValidationError, None]]: - """ Try sending a JSON body """ + """Try sending a JSON body""" return ( await asyncio_detailed( diff --git a/end_to_end_tests/golden-record/my_test_api_client/api/tests/octet_stream_tests_octet_stream_get.py b/end_to_end_tests/golden-record/my_test_api_client/api/tests/octet_stream_tests_octet_stream_get.py index b1e3a0cf7..f399df6b5 100644 --- a/end_to_end_tests/golden-record/my_test_api_client/api/tests/octet_stream_tests_octet_stream_get.py +++ b/end_to_end_tests/golden-record/my_test_api_client/api/tests/octet_stream_tests_octet_stream_get.py @@ -60,7 +60,7 @@ def sync( *, client: Client, ) -> Optional[File]: - """ """ + """ """ return sync_detailed( client=client, @@ -85,7 +85,7 @@ async def asyncio( *, client: Client, ) -> Optional[File]: - """ """ + """ """ return ( await asyncio_detailed( diff --git a/end_to_end_tests/golden-record/my_test_api_client/api/tests/optional_value_tests_optional_query_param.py b/end_to_end_tests/golden-record/my_test_api_client/api/tests/optional_value_tests_optional_query_param.py index 0b60a77a2..55e040f3c 100644 --- a/end_to_end_tests/golden-record/my_test_api_client/api/tests/optional_value_tests_optional_query_param.py +++ b/end_to_end_tests/golden-record/my_test_api_client/api/tests/optional_value_tests_optional_query_param.py @@ -78,7 +78,7 @@ def sync( client: Client, query_param: Union[Unset, List[str]] = UNSET, ) -> Optional[Union[HTTPValidationError, None]]: - """ Test optional query parameters """ + """Test optional query parameters""" return sync_detailed( client=client, @@ -107,7 +107,7 @@ async def asyncio( client: Client, query_param: Union[Unset, List[str]] = UNSET, ) -> Optional[Union[HTTPValidationError, None]]: - """ Test optional query parameters """ + """Test optional query parameters""" return ( await asyncio_detailed( diff --git a/end_to_end_tests/golden-record/my_test_api_client/api/tests/test_inline_objects.py b/end_to_end_tests/golden-record/my_test_api_client/api/tests/test_inline_objects.py index 8680e8ef8..b71b0a114 100644 --- a/end_to_end_tests/golden-record/my_test_api_client/api/tests/test_inline_objects.py +++ b/end_to_end_tests/golden-record/my_test_api_client/api/tests/test_inline_objects.py @@ -68,7 +68,7 @@ def sync( client: Client, json_body: TestInlineObjectsJsonBody, ) -> Optional[TestInlineObjectsResponse_200]: - """ """ + """ """ return sync_detailed( client=client, @@ -97,7 +97,7 @@ async def asyncio( client: Client, json_body: TestInlineObjectsJsonBody, ) -> Optional[TestInlineObjectsResponse_200]: - """ """ + """ """ return ( await asyncio_detailed( diff --git a/end_to_end_tests/golden-record/my_test_api_client/api/tests/upload_file_tests_upload_post.py b/end_to_end_tests/golden-record/my_test_api_client/api/tests/upload_file_tests_upload_post.py index fb18e9f61..7148ce5f3 100644 --- a/end_to_end_tests/golden-record/my_test_api_client/api/tests/upload_file_tests_upload_post.py +++ b/end_to_end_tests/golden-record/my_test_api_client/api/tests/upload_file_tests_upload_post.py @@ -86,7 +86,7 @@ def sync( multipart_data: BodyUploadFileTestsUploadPost, keep_alive: Union[Unset, bool] = UNSET, ) -> Optional[Union[HTTPValidationError, None]]: - """ Upload a file """ + """Upload a file""" return sync_detailed( client=client, @@ -119,7 +119,7 @@ async def asyncio( multipart_data: BodyUploadFileTestsUploadPost, keep_alive: Union[Unset, bool] = UNSET, ) -> Optional[Union[HTTPValidationError, None]]: - """ Upload a file """ + """Upload a file""" return ( await asyncio_detailed( diff --git a/end_to_end_tests/golden-record/my_test_api_client/client.py b/end_to_end_tests/golden-record/my_test_api_client/client.py index c3074040c..36fa529e0 100644 --- a/end_to_end_tests/golden-record/my_test_api_client/client.py +++ b/end_to_end_tests/golden-record/my_test_api_client/client.py @@ -5,7 +5,7 @@ @attr.s(auto_attribs=True) class Client: - """ A class for keeping track of data related to the API """ + """A class for keeping track of data related to the API""" base_url: str cookies: Dict[str, str] = attr.ib(factory=dict, kw_only=True) @@ -13,34 +13,34 @@ class Client: timeout: float = attr.ib(5.0, kw_only=True) def get_headers(self) -> Dict[str, str]: - """ Get headers to be used in all endpoints """ + """Get headers to be used in all endpoints""" return {**self.headers} def with_headers(self, headers: Dict[str, str]) -> "Client": - """ Get a new client matching this one with additional headers """ + """Get a new client matching this one with additional headers""" return attr.evolve(self, headers={**self.headers, **headers}) def get_cookies(self) -> Dict[str, str]: return {**self.cookies} def with_cookies(self, cookies: Dict[str, str]) -> "Client": - """ Get a new client matching this one with additional cookies """ + """Get a new client matching this one with additional cookies""" return attr.evolve(self, cookies={**self.cookies, **cookies}) def get_timeout(self) -> float: return self.timeout def with_timeout(self, timeout: float) -> "Client": - """ Get a new client matching this one with a new timeout (in seconds) """ + """Get a new client matching this one with a new timeout (in seconds)""" return attr.evolve(self, timeout=timeout) @attr.s(auto_attribs=True) class AuthenticatedClient(Client): - """ A Client which has been authenticated for use on secured endpoints """ + """A Client which has been authenticated for use on secured endpoints""" token: str def get_headers(self) -> Dict[str, str]: - """ Get headers to be used in authenticated endpoints """ + """Get headers to be used in authenticated endpoints""" return {"Authorization": f"Bearer {self.token}", **self.headers} diff --git a/end_to_end_tests/golden-record/my_test_api_client/models/a_model.py b/end_to_end_tests/golden-record/my_test_api_client/models/a_model.py index ea60401c4..4a452564d 100644 --- a/end_to_end_tests/golden-record/my_test_api_client/models/a_model.py +++ b/end_to_end_tests/golden-record/my_test_api_client/models/a_model.py @@ -16,7 +16,7 @@ @attr.s(auto_attribs=True) class AModel: - """ A Model for testing all the ways custom objects can be used """ + """A Model for testing all the ways custom objects can be used""" an_enum_value: AnEnum a_camel_date_time: Union[datetime.date, datetime.datetime] diff --git a/end_to_end_tests/golden-record/my_test_api_client/models/all_of_sub_model.py b/end_to_end_tests/golden-record/my_test_api_client/models/all_of_sub_model.py index baa59d06a..8945c70ab 100644 --- a/end_to_end_tests/golden-record/my_test_api_client/models/all_of_sub_model.py +++ b/end_to_end_tests/golden-record/my_test_api_client/models/all_of_sub_model.py @@ -9,7 +9,7 @@ @attr.s(auto_attribs=True) class AllOfSubModel: - """ """ + """ """ a_sub_property: Union[Unset, str] = UNSET additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict) diff --git a/end_to_end_tests/golden-record/my_test_api_client/models/another_all_of_sub_model.py b/end_to_end_tests/golden-record/my_test_api_client/models/another_all_of_sub_model.py index 3949852c6..2ecc464a8 100644 --- a/end_to_end_tests/golden-record/my_test_api_client/models/another_all_of_sub_model.py +++ b/end_to_end_tests/golden-record/my_test_api_client/models/another_all_of_sub_model.py @@ -9,7 +9,7 @@ @attr.s(auto_attribs=True) class AnotherAllOfSubModel: - """ """ + """ """ another_sub_property: Union[Unset, str] = UNSET additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict) diff --git a/end_to_end_tests/golden-record/my_test_api_client/models/body_upload_file_tests_upload_post.py b/end_to_end_tests/golden-record/my_test_api_client/models/body_upload_file_tests_upload_post.py index a250dbb37..d2d263353 100644 --- a/end_to_end_tests/golden-record/my_test_api_client/models/body_upload_file_tests_upload_post.py +++ b/end_to_end_tests/golden-record/my_test_api_client/models/body_upload_file_tests_upload_post.py @@ -10,7 +10,7 @@ @attr.s(auto_attribs=True) class BodyUploadFileTestsUploadPost: - """ """ + """ """ some_file: File some_string: Union[Unset, str] = "some_default_string" diff --git a/end_to_end_tests/golden-record/my_test_api_client/models/free_form_model.py b/end_to_end_tests/golden-record/my_test_api_client/models/free_form_model.py index 1a86b6bac..f8cc2151c 100644 --- a/end_to_end_tests/golden-record/my_test_api_client/models/free_form_model.py +++ b/end_to_end_tests/golden-record/my_test_api_client/models/free_form_model.py @@ -7,7 +7,7 @@ @attr.s(auto_attribs=True) class FreeFormModel: - """ """ + """ """ additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict) diff --git a/end_to_end_tests/golden-record/my_test_api_client/models/http_validation_error.py b/end_to_end_tests/golden-record/my_test_api_client/models/http_validation_error.py index feb2cdd6b..e777fcc87 100644 --- a/end_to_end_tests/golden-record/my_test_api_client/models/http_validation_error.py +++ b/end_to_end_tests/golden-record/my_test_api_client/models/http_validation_error.py @@ -10,7 +10,7 @@ @attr.s(auto_attribs=True) class HTTPValidationError: - """ """ + """ """ detail: Union[Unset, List[ValidationError]] = UNSET diff --git a/end_to_end_tests/golden-record/my_test_api_client/models/model_from_all_of.py b/end_to_end_tests/golden-record/my_test_api_client/models/model_from_all_of.py index ce26a3bbb..60406f46d 100644 --- a/end_to_end_tests/golden-record/my_test_api_client/models/model_from_all_of.py +++ b/end_to_end_tests/golden-record/my_test_api_client/models/model_from_all_of.py @@ -9,7 +9,7 @@ @attr.s(auto_attribs=True) class ModelFromAllOf: - """ """ + """ """ a_sub_property: Union[Unset, str] = UNSET another_sub_property: Union[Unset, str] = UNSET diff --git a/end_to_end_tests/golden-record/my_test_api_client/models/model_name.py b/end_to_end_tests/golden-record/my_test_api_client/models/model_name.py index 75b12f284..c87d4c208 100644 --- a/end_to_end_tests/golden-record/my_test_api_client/models/model_name.py +++ b/end_to_end_tests/golden-record/my_test_api_client/models/model_name.py @@ -7,7 +7,7 @@ @attr.s(auto_attribs=True) class ModelName: - """ """ + """ """ additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict) diff --git a/end_to_end_tests/golden-record/my_test_api_client/models/model_with_additional_properties_inlined.py b/end_to_end_tests/golden-record/my_test_api_client/models/model_with_additional_properties_inlined.py index a81e57a8e..a2e168758 100644 --- a/end_to_end_tests/golden-record/my_test_api_client/models/model_with_additional_properties_inlined.py +++ b/end_to_end_tests/golden-record/my_test_api_client/models/model_with_additional_properties_inlined.py @@ -12,7 +12,7 @@ @attr.s(auto_attribs=True) class ModelWithAdditionalPropertiesInlined: - """ """ + """ """ a_number: Union[Unset, float] = UNSET additional_properties: Dict[str, ModelWithAdditionalPropertiesInlinedAdditionalProperty] = attr.ib( diff --git a/end_to_end_tests/golden-record/my_test_api_client/models/model_with_additional_properties_inlined_additional_property.py b/end_to_end_tests/golden-record/my_test_api_client/models/model_with_additional_properties_inlined_additional_property.py index baedb6193..490f6e34c 100644 --- a/end_to_end_tests/golden-record/my_test_api_client/models/model_with_additional_properties_inlined_additional_property.py +++ b/end_to_end_tests/golden-record/my_test_api_client/models/model_with_additional_properties_inlined_additional_property.py @@ -9,7 +9,7 @@ @attr.s(auto_attribs=True) class ModelWithAdditionalPropertiesInlinedAdditionalProperty: - """ """ + """ """ extra_props_prop: Union[Unset, str] = UNSET additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict) diff --git a/end_to_end_tests/golden-record/my_test_api_client/models/model_with_additional_properties_refed.py b/end_to_end_tests/golden-record/my_test_api_client/models/model_with_additional_properties_refed.py index b265db582..d51c5d72c 100644 --- a/end_to_end_tests/golden-record/my_test_api_client/models/model_with_additional_properties_refed.py +++ b/end_to_end_tests/golden-record/my_test_api_client/models/model_with_additional_properties_refed.py @@ -9,7 +9,7 @@ @attr.s(auto_attribs=True) class ModelWithAdditionalPropertiesRefed: - """ """ + """ """ additional_properties: Dict[str, AnEnum] = attr.ib(init=False, factory=dict) diff --git a/end_to_end_tests/golden-record/my_test_api_client/models/model_with_any_json_properties.py b/end_to_end_tests/golden-record/my_test_api_client/models/model_with_any_json_properties.py index 59b3ddb46..e33a1928e 100644 --- a/end_to_end_tests/golden-record/my_test_api_client/models/model_with_any_json_properties.py +++ b/end_to_end_tests/golden-record/my_test_api_client/models/model_with_any_json_properties.py @@ -11,7 +11,7 @@ @attr.s(auto_attribs=True) class ModelWithAnyJsonProperties: - """ """ + """ """ additional_properties: Dict[ str, Union[List[str], ModelWithAnyJsonPropertiesAdditionalPropertyType0, bool, float, int, str] diff --git a/end_to_end_tests/golden-record/my_test_api_client/models/model_with_any_json_properties_additional_property_type0.py b/end_to_end_tests/golden-record/my_test_api_client/models/model_with_any_json_properties_additional_property_type0.py index 76649bf90..41fcae7f5 100644 --- a/end_to_end_tests/golden-record/my_test_api_client/models/model_with_any_json_properties_additional_property_type0.py +++ b/end_to_end_tests/golden-record/my_test_api_client/models/model_with_any_json_properties_additional_property_type0.py @@ -7,7 +7,7 @@ @attr.s(auto_attribs=True) class ModelWithAnyJsonPropertiesAdditionalPropertyType0: - """ """ + """ """ additional_properties: Dict[str, str] = attr.ib(init=False, factory=dict) diff --git a/end_to_end_tests/golden-record/my_test_api_client/models/model_with_primitive_additional_properties.py b/end_to_end_tests/golden-record/my_test_api_client/models/model_with_primitive_additional_properties.py index 68e2238dd..5dc264152 100644 --- a/end_to_end_tests/golden-record/my_test_api_client/models/model_with_primitive_additional_properties.py +++ b/end_to_end_tests/golden-record/my_test_api_client/models/model_with_primitive_additional_properties.py @@ -12,7 +12,7 @@ @attr.s(auto_attribs=True) class ModelWithPrimitiveAdditionalProperties: - """ """ + """ """ a_date_holder: Union[Unset, ModelWithPrimitiveAdditionalPropertiesADateHolder] = UNSET additional_properties: Dict[str, str] = attr.ib(init=False, factory=dict) diff --git a/end_to_end_tests/golden-record/my_test_api_client/models/model_with_primitive_additional_properties_a_date_holder.py b/end_to_end_tests/golden-record/my_test_api_client/models/model_with_primitive_additional_properties_a_date_holder.py index 3df34635f..aa8a25252 100644 --- a/end_to_end_tests/golden-record/my_test_api_client/models/model_with_primitive_additional_properties_a_date_holder.py +++ b/end_to_end_tests/golden-record/my_test_api_client/models/model_with_primitive_additional_properties_a_date_holder.py @@ -9,7 +9,7 @@ @attr.s(auto_attribs=True) class ModelWithPrimitiveAdditionalPropertiesADateHolder: - """ """ + """ """ additional_properties: Dict[str, datetime.datetime] = attr.ib(init=False, factory=dict) diff --git a/end_to_end_tests/golden-record/my_test_api_client/models/model_with_property_ref.py b/end_to_end_tests/golden-record/my_test_api_client/models/model_with_property_ref.py index 1553914ba..6ebba75a6 100644 --- a/end_to_end_tests/golden-record/my_test_api_client/models/model_with_property_ref.py +++ b/end_to_end_tests/golden-record/my_test_api_client/models/model_with_property_ref.py @@ -10,7 +10,7 @@ @attr.s(auto_attribs=True) class ModelWithPropertyRef: - """ """ + """ """ inner: Union[Unset, ModelName] = UNSET additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict) diff --git a/end_to_end_tests/golden-record/my_test_api_client/models/model_with_union_property.py b/end_to_end_tests/golden-record/my_test_api_client/models/model_with_union_property.py index a3f049533..dc30850e9 100644 --- a/end_to_end_tests/golden-record/my_test_api_client/models/model_with_union_property.py +++ b/end_to_end_tests/golden-record/my_test_api_client/models/model_with_union_property.py @@ -11,7 +11,7 @@ @attr.s(auto_attribs=True) class ModelWithUnionProperty: - """ """ + """ """ a_property: Union[AnEnum, AnIntEnum, Unset] = UNSET diff --git a/end_to_end_tests/golden-record/my_test_api_client/models/model_with_union_property_inlined.py b/end_to_end_tests/golden-record/my_test_api_client/models/model_with_union_property_inlined.py index 2349d541d..a09a1dbc3 100644 --- a/end_to_end_tests/golden-record/my_test_api_client/models/model_with_union_property_inlined.py +++ b/end_to_end_tests/golden-record/my_test_api_client/models/model_with_union_property_inlined.py @@ -11,7 +11,7 @@ @attr.s(auto_attribs=True) class ModelWithUnionPropertyInlined: - """ """ + """ """ fruit: Union[ModelWithUnionPropertyInlinedFruitType0, ModelWithUnionPropertyInlinedFruitType1, Unset] = UNSET diff --git a/end_to_end_tests/golden-record/my_test_api_client/models/model_with_union_property_inlined_fruit_type0.py b/end_to_end_tests/golden-record/my_test_api_client/models/model_with_union_property_inlined_fruit_type0.py index da6d11826..8c1ce3f6d 100644 --- a/end_to_end_tests/golden-record/my_test_api_client/models/model_with_union_property_inlined_fruit_type0.py +++ b/end_to_end_tests/golden-record/my_test_api_client/models/model_with_union_property_inlined_fruit_type0.py @@ -9,7 +9,7 @@ @attr.s(auto_attribs=True) class ModelWithUnionPropertyInlinedFruitType0: - """ """ + """ """ apples: Union[Unset, str] = UNSET additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict) diff --git a/end_to_end_tests/golden-record/my_test_api_client/models/model_with_union_property_inlined_fruit_type1.py b/end_to_end_tests/golden-record/my_test_api_client/models/model_with_union_property_inlined_fruit_type1.py index 32a9b1727..94d92f4f8 100644 --- a/end_to_end_tests/golden-record/my_test_api_client/models/model_with_union_property_inlined_fruit_type1.py +++ b/end_to_end_tests/golden-record/my_test_api_client/models/model_with_union_property_inlined_fruit_type1.py @@ -9,7 +9,7 @@ @attr.s(auto_attribs=True) class ModelWithUnionPropertyInlinedFruitType1: - """ """ + """ """ bananas: Union[Unset, str] = UNSET additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict) diff --git a/end_to_end_tests/golden-record/my_test_api_client/models/test_inline_objects_json_body.py b/end_to_end_tests/golden-record/my_test_api_client/models/test_inline_objects_json_body.py index 1ee542873..e74ed557b 100644 --- a/end_to_end_tests/golden-record/my_test_api_client/models/test_inline_objects_json_body.py +++ b/end_to_end_tests/golden-record/my_test_api_client/models/test_inline_objects_json_body.py @@ -9,7 +9,7 @@ @attr.s(auto_attribs=True) class TestInlineObjectsJsonBody: - """ """ + """ """ a_property: Union[Unset, str] = UNSET diff --git a/end_to_end_tests/golden-record/my_test_api_client/models/test_inline_objects_response_200.py b/end_to_end_tests/golden-record/my_test_api_client/models/test_inline_objects_response_200.py index 6e44a5b14..7ab9550fc 100644 --- a/end_to_end_tests/golden-record/my_test_api_client/models/test_inline_objects_response_200.py +++ b/end_to_end_tests/golden-record/my_test_api_client/models/test_inline_objects_response_200.py @@ -9,7 +9,7 @@ @attr.s(auto_attribs=True) class TestInlineObjectsResponse_200: - """ """ + """ """ a_property: Union[Unset, str] = UNSET diff --git a/end_to_end_tests/golden-record/my_test_api_client/models/validation_error.py b/end_to_end_tests/golden-record/my_test_api_client/models/validation_error.py index 1ee784278..97d12d0f5 100644 --- a/end_to_end_tests/golden-record/my_test_api_client/models/validation_error.py +++ b/end_to_end_tests/golden-record/my_test_api_client/models/validation_error.py @@ -7,7 +7,7 @@ @attr.s(auto_attribs=True) class ValidationError: - """ """ + """ """ loc: List[str] msg: str diff --git a/end_to_end_tests/golden-record/my_test_api_client/types.py b/end_to_end_tests/golden-record/my_test_api_client/types.py index 0739e2197..2b1cfc5b8 100644 --- a/end_to_end_tests/golden-record/my_test_api_client/types.py +++ b/end_to_end_tests/golden-record/my_test_api_client/types.py @@ -16,14 +16,14 @@ def __bool__(self) -> bool: @attr.s(auto_attribs=True) class File: - """ Contains information for file uploads """ + """Contains information for file uploads""" payload: Union[BinaryIO, TextIO] file_name: Optional[str] = None mime_type: Optional[str] = None def to_tuple(self) -> FileJsonType: - """ Return a tuple representation that httpx will accept for multipart/form-data """ + """Return a tuple representation that httpx will accept for multipart/form-data""" return self.file_name, self.payload, self.mime_type @@ -32,7 +32,7 @@ def to_tuple(self) -> FileJsonType: @attr.s(auto_attribs=True) class Response(Generic[T]): - """ A response from an endpoint """ + """A response from an endpoint""" status_code: int content: bytes diff --git a/openapi_python_client/__init__.py b/openapi_python_client/__init__.py index 16cc07000..2a7cf574b 100644 --- a/openapi_python_client/__init__.py +++ b/openapi_python_client/__init__.py @@ -83,7 +83,7 @@ def __init__( self.env.filters.update(TEMPLATE_FILTERS) def build(self) -> Sequence[GeneratorError]: - """ Create the project from templates """ + """Create the project from templates""" if self.meta == MetaType.NONE: print(f"Generating {self.package_name}") @@ -101,7 +101,7 @@ def build(self) -> Sequence[GeneratorError]: return self._get_errors() def update(self) -> Sequence[GeneratorError]: - """ Update an existing project """ + """Update an existing project""" if not self.package_dir.is_dir(): raise FileNotFoundError() diff --git a/openapi_python_client/cli.py b/openapi_python_client/cli.py index d84062fd4..fdad0568b 100644 --- a/openapi_python_client/cli.py +++ b/openapi_python_client/cli.py @@ -36,7 +36,7 @@ def _process_config(path: Optional[pathlib.Path]) -> Config: def cli( version: bool = typer.Option(False, "--version", callback=_version_callback, help="Print the version and exit"), ) -> None: - """ Generate a Python client from an OpenAPI JSON document """ + """Generate a Python client from an OpenAPI JSON document""" pass @@ -55,7 +55,7 @@ def _print_parser_error(e: GeneratorError, color: str) -> None: def handle_errors(errors: Sequence[GeneratorError]) -> None: - """ Turn custom errors into formatted error messages """ + """Turn custom errors into formatted error messages""" if len(errors) == 0: return error_level = ErrorLevel.WARNING @@ -120,7 +120,7 @@ def generate( file_encoding: str = typer.Option("utf-8", help="Encoding used when writing generated"), config_path: Optional[pathlib.Path] = CONFIG_OPTION, ) -> None: - """ Generate a new OpenAPI Client library """ + """Generate a new OpenAPI Client library""" from . import create_new_client if not url and not path: @@ -157,7 +157,7 @@ def update( file_encoding: str = typer.Option("utf-8", help="Encoding used when writing generated"), config_path: Optional[pathlib.Path] = CONFIG_OPTION, ) -> None: - """ Update an existing OpenAPI Client library """ + """Update an existing OpenAPI Client library""" from . import update_existing_client if not url and not path: diff --git a/openapi_python_client/config.py b/openapi_python_client/config.py index 273848e57..11a1340b1 100644 --- a/openapi_python_client/config.py +++ b/openapi_python_client/config.py @@ -19,7 +19,7 @@ class Config(BaseModel): @staticmethod def load_from_path(path: Path) -> "Config": - """ Creates a Config from provided JSON or YAML file and sets a bunch of globals from it """ + """Creates a Config from provided JSON or YAML file and sets a bunch of globals from it""" from . import utils config_data = yaml.safe_load(path.read_text()) diff --git a/openapi_python_client/parser/errors.py b/openapi_python_client/parser/errors.py index 9a5ced0f5..562e54428 100644 --- a/openapi_python_client/parser/errors.py +++ b/openapi_python_client/parser/errors.py @@ -8,7 +8,7 @@ class ErrorLevel(Enum): - """ The level of an error """ + """The level of an error""" WARNING = "WARNING" # Client is still generated but missing some pieces ERROR = "ERROR" # Client could not be generated @@ -16,7 +16,7 @@ class ErrorLevel(Enum): @dataclass class GeneratorError: - """ Base data struct containing info on an error that occurred """ + """Base data struct containing info on an error that occurred""" detail: Optional[str] = None level: ErrorLevel = ErrorLevel.ERROR @@ -25,7 +25,7 @@ class GeneratorError: @dataclass class ParseError(GeneratorError): - """ An error raised when there's a problem parsing an OpenAPI document """ + """An error raised when there's a problem parsing an OpenAPI document""" level: ErrorLevel = ErrorLevel.WARNING data: Optional[BaseModel] = None @@ -34,7 +34,7 @@ class ParseError(GeneratorError): @dataclass class PropertyError(ParseError): - """ Error raised when there's a problem creating a Property """ + """Error raised when there's a problem creating a Property""" header = "Problem creating a Property: " diff --git a/openapi_python_client/parser/openapi.py b/openapi_python_client/parser/openapi.py index 09a24dad0..d218d3f7d 100644 --- a/openapi_python_client/parser/openapi.py +++ b/openapi_python_client/parser/openapi.py @@ -14,7 +14,7 @@ class ParameterLocation(str, Enum): - """ The places Parameters can be put when calling an Endpoint """ + """The places Parameters can be put when calling an Endpoint""" QUERY = "query" PATH = "path" @@ -23,13 +23,13 @@ class ParameterLocation(str, Enum): def import_string_from_class(class_: Class, prefix: str = "") -> str: - """ Create a string which is used to import a reference """ + """Create a string which is used to import a reference""" return f"from {prefix}.{class_.module_name} import {class_.name}" @dataclass class EndpointCollection: - """ A bunch of endpoints grouped under a tag that will become a module """ + """A bunch of endpoints grouped under a tag that will become a module""" tag: str endpoints: List["Endpoint"] = field(default_factory=list) @@ -39,7 +39,7 @@ class EndpointCollection: def from_data( *, data: Dict[str, oai.PathItem], schemas: Schemas, config: Config ) -> Tuple[Dict[str, "EndpointCollection"], Schemas]: - """ Parse the openapi paths data to get EndpointCollections by tag """ + """Parse the openapi paths data to get EndpointCollections by tag""" endpoints_by_tag: Dict[str, EndpointCollection] = {} methods = ["get", "put", "post", "delete", "options", "head", "patch", "trace"] @@ -69,7 +69,7 @@ def from_data( def generate_operation_id(*, path: str, method: str) -> str: - """ Generate an operationId from a path """ + """Generate an operationId from a path""" clean_path = path.replace("{", "").replace("}", "").replace("/", "_") if clean_path.startswith("_"): clean_path = clean_path[1:] @@ -103,7 +103,7 @@ class Endpoint: @staticmethod def parse_request_form_body(*, body: oai.RequestBody, config: Config) -> Optional[Class]: - """ Return form_body_reference """ + """Return form_body_reference""" body_content = body.content form_body = body_content.get("application/x-www-form-urlencoded") if form_body is not None and isinstance(form_body.media_type_schema, oai.Reference): @@ -112,7 +112,7 @@ def parse_request_form_body(*, body: oai.RequestBody, config: Config) -> Optiona @staticmethod def parse_multipart_body(*, body: oai.RequestBody, config: Config) -> Optional[Class]: - """ Return form_body_reference """ + """Return form_body_reference""" body_content = body.content json_body = body_content.get("multipart/form-data") if json_body is not None and isinstance(json_body.media_type_schema, oai.Reference): @@ -123,7 +123,7 @@ def parse_multipart_body(*, body: oai.RequestBody, config: Config) -> Optional[C def parse_request_json_body( *, body: oai.RequestBody, schemas: Schemas, parent_name: str, config: Config ) -> Tuple[Union[Property, PropertyError, None], Schemas]: - """ Return json_body """ + """Return json_body""" body_content = body.content json_body = body_content.get("application/json") if json_body is not None and json_body.media_type_schema is not None: @@ -145,7 +145,7 @@ def _add_body( schemas: Schemas, config: Config, ) -> Tuple[Union[ParseError, "Endpoint"], Schemas]: - """ Adds form or JSON body to Endpoint if included in data """ + """Adds form or JSON body to Endpoint if included in data""" endpoint = deepcopy(endpoint) if data.requestBody is None or isinstance(data.requestBody, oai.Reference): return endpoint, schemas @@ -245,7 +245,7 @@ def _add_parameters( def from_data( *, data: oai.Operation, path: str, method: str, tag: str, schemas: Schemas, config: Config ) -> Tuple[Union["Endpoint", ParseError], Schemas]: - """ Construct an endpoint from the OpenAPI data """ + """Construct an endpoint from the OpenAPI data""" if data.operationId is None: name = generate_operation_id(path=path, method=method) @@ -270,7 +270,7 @@ def from_data( return result, schemas def response_type(self) -> str: - """ Get the Python type of any response from this endpoint """ + """Get the Python type of any response from this endpoint""" types = sorted({response.prop.get_type_string() for response in self.responses}) if len(types) == 0: return "None" @@ -281,7 +281,7 @@ def response_type(self) -> str: @dataclass class GeneratorData: - """ All the data needed to generate a client """ + """All the data needed to generate a client""" title: str description: Optional[str] @@ -293,7 +293,7 @@ class GeneratorData: @staticmethod def from_dict(d: Dict[str, Any], *, config: Config) -> Union["GeneratorData", GeneratorError]: - """ Create an OpenAPI from dict """ + """Create an OpenAPI from dict""" try: openapi = oai.OpenAPI.parse_obj(d) except ValidationError as e: diff --git a/openapi_python_client/parser/properties/__init__.py b/openapi_python_client/parser/properties/__init__.py index 226cbe1ac..908745a6a 100644 --- a/openapi_python_client/parser/properties/__init__.py +++ b/openapi_python_client/parser/properties/__init__.py @@ -27,7 +27,7 @@ @attr.s(auto_attribs=True, frozen=True) class NoneProperty(Property): - """ A property that is always None (used for empty schemas) """ + """A property that is always None (used for empty schemas)""" _type_string: ClassVar[str] = "None" _json_type_string: ClassVar[str] = "None" @@ -36,7 +36,7 @@ class NoneProperty(Property): @attr.s(auto_attribs=True, frozen=True) class StringProperty(Property): - """ A property of type str """ + """A property of type str""" max_length: Optional[int] = None pattern: Optional[str] = None @@ -69,7 +69,7 @@ def get_imports(self, *, prefix: str) -> Set[str]: @attr.s(auto_attribs=True, frozen=True) class DateProperty(Property): - """ A property of type datetime.date """ + """A property of type datetime.date""" _type_string: ClassVar[str] = "datetime.date" _json_type_string: ClassVar[str] = "str" @@ -90,7 +90,7 @@ def get_imports(self, *, prefix: str) -> Set[str]: @attr.s(auto_attribs=True, frozen=True) class FileProperty(Property): - """ A property used for uploading files """ + """A property used for uploading files""" _type_string: ClassVar[str] = "File" # Return type of File.to_tuple() @@ -112,7 +112,7 @@ def get_imports(self, *, prefix: str) -> Set[str]: @attr.s(auto_attribs=True, frozen=True) class FloatProperty(Property): - """ A property of type float """ + """A property of type float""" _type_string: ClassVar[str] = "float" _json_type_string: ClassVar[str] = "float" @@ -120,7 +120,7 @@ class FloatProperty(Property): @attr.s(auto_attribs=True, frozen=True) class IntProperty(Property): - """ A property of type int """ + """A property of type int""" _type_string: ClassVar[str] = "int" _json_type_string: ClassVar[str] = "int" @@ -128,7 +128,7 @@ class IntProperty(Property): @attr.s(auto_attribs=True, frozen=True) class BooleanProperty(Property): - """ Property for bool """ + """Property for bool""" _type_string: ClassVar[str] = "bool" _json_type_string: ClassVar[str] = "bool" @@ -139,7 +139,7 @@ class BooleanProperty(Property): @attr.s(auto_attribs=True, frozen=True) class ListProperty(Property, Generic[InnerProp]): - """ A property representing a list (array) of other properties """ + """A property representing a list (array) of other properties""" inner_property: InnerProp template: ClassVar[str] = "list_property.py.jinja" @@ -170,7 +170,7 @@ def get_imports(self, *, prefix: str) -> Set[str]: @attr.s(auto_attribs=True, frozen=True) class UnionProperty(Property): - """ A property representing a Union (anyOf) of other properties """ + """A property representing a Union (anyOf) of other properties""" inner_properties: List[Property] template: ClassVar[str] = "union_property.py.jinja" @@ -237,7 +237,7 @@ def inner_properties_with_template(self) -> Iterator[Property]: def _string_based_property( name: str, required: bool, data: oai.Schema ) -> Union[StringProperty, DateProperty, DateTimeProperty, FileProperty]: - """ Construct a Property from the type "string" """ + """Construct a Property from the type "string" """ string_format = data.schema_format if string_format == "date-time": return DateTimeProperty( @@ -434,7 +434,7 @@ def _property_from_data( parent_name: str, config: Config, ) -> Tuple[Union[Property, PropertyError], Schemas]: - """ Generate a Property from the OpenAPI dictionary representation of it """ + """Generate a Property from the OpenAPI dictionary representation of it""" name = utils.remove_string_escapes(name) if isinstance(data, oai.Reference): return _property_from_ref(name=name, required=required, parent=None, data=data, schemas=schemas) @@ -546,7 +546,7 @@ def property_from_data( def build_schemas( *, components: Dict[str, Union[oai.Reference, oai.Schema]], schemas: Schemas, config: Config ) -> Schemas: - """ Get a list of Schemas from an OpenAPI dict """ + """Get a list of Schemas from an OpenAPI dict""" to_process: Iterable[Tuple[str, Union[oai.Reference, oai.Schema]]] = components.items() still_making_progress = True errors: List[PropertyError] = [] diff --git a/openapi_python_client/parser/properties/enum_property.py b/openapi_python_client/parser/properties/enum_property.py index 9e62643f1..cdee94b5e 100644 --- a/openapi_python_client/parser/properties/enum_property.py +++ b/openapi_python_client/parser/properties/enum_property.py @@ -13,7 +13,7 @@ @attr.s(auto_attribs=True, frozen=True) class EnumProperty(Property): - """ A property that should use an enum """ + """A property that should use an enum""" values: Dict[str, ValueType] class_info: Class @@ -42,7 +42,7 @@ def get_imports(self, *, prefix: str) -> Set[str]: @staticmethod def values_from_list(values: List[ValueType]) -> Dict[str, ValueType]: - """ Convert a list of values into dict of {name: value} """ + """Convert a list of values into dict of {name: value}""" output: Dict[str, ValueType] = {} for i, value in enumerate(values): diff --git a/openapi_python_client/parser/properties/model_property.py b/openapi_python_client/parser/properties/model_property.py index 83d824d8a..0af0b1cea 100644 --- a/openapi_python_client/parser/properties/model_property.py +++ b/openapi_python_client/parser/properties/model_property.py @@ -13,7 +13,7 @@ @attr.s(auto_attribs=True, frozen=True) class ModelProperty(Property): - """ A property which refers to another Schema """ + """A property which refers to another Schema""" class_info: Class required_properties: List[Property] diff --git a/openapi_python_client/parser/properties/property.py b/openapi_python_client/parser/properties/property.py index 7eb5161f9..99142dc41 100644 --- a/openapi_python_client/parser/properties/property.py +++ b/openapi_python_client/parser/properties/property.py @@ -84,7 +84,7 @@ def get_imports(self, *, prefix: str) -> Set[str]: return imports def to_string(self) -> str: - """ How this should be declared in a dataclass """ + """How this should be declared in a dataclass""" default: Optional[str] if self.default is not None: default = self.default diff --git a/openapi_python_client/parser/properties/schemas.py b/openapi_python_client/parser/properties/schemas.py index b4e9140b4..a81879dfc 100644 --- a/openapi_python_client/parser/properties/schemas.py +++ b/openapi_python_client/parser/properties/schemas.py @@ -31,14 +31,14 @@ def parse_reference_path(ref_path_raw: str) -> Union[_ReferencePath, ParseError] @attr.s(auto_attribs=True, frozen=True) class Class: - """ Represents Python class which will be generated from an OpenAPI schema """ + """Represents Python class which will be generated from an OpenAPI schema""" name: _ClassName module_name: str @staticmethod def from_string(*, string: str, config: Config) -> "Class": - """ Get a Class from an arbitrary string """ + """Get a Class from an arbitrary string""" class_name = string.split("/")[-1] # Get rid of ref path stuff class_name = utils.pascal_case(class_name) override = config.class_overrides.get(class_name) @@ -56,7 +56,7 @@ def from_string(*, string: str, config: Config) -> "Class": @attr.s(auto_attribs=True, frozen=True) class Schemas: - """ Structure for containing all defined, shareable, and reusable schemas (attr classes and Enums) """ + """Structure for containing all defined, shareable, and reusable schemas (attr classes and Enums)""" classes_by_reference: Dict[_ReferencePath, Union[EnumProperty, ModelProperty]] = attr.ib(factory=dict) classes_by_name: Dict[_ClassName, Union[EnumProperty, ModelProperty]] = attr.ib(factory=dict) diff --git a/openapi_python_client/parser/responses.py b/openapi_python_client/parser/responses.py index a7d5e89d7..ffa703d6f 100644 --- a/openapi_python_client/parser/responses.py +++ b/openapi_python_client/parser/responses.py @@ -12,7 +12,7 @@ @attr.s(auto_attribs=True, frozen=True) class Response: - """ Describes a single response for an endpoint """ + """Describes a single response for an endpoint""" status_code: int prop: Property @@ -28,7 +28,7 @@ class Response: def empty_response(status_code: int, response_name: str) -> Response: - """ Return an empty response, for when no response type is defined """ + """Return an empty response, for when no response type is defined""" return Response( status_code=status_code, prop=NoneProperty( @@ -44,7 +44,7 @@ def empty_response(status_code: int, response_name: str) -> Response: def response_from_data( *, status_code: int, data: Union[oai.Response, oai.Reference], schemas: Schemas, parent_name: str, config: Config ) -> Tuple[Union[Response, ParseError], Schemas]: - """ Generate a Response from the OpenAPI dictionary representation of it """ + """Generate a Response from the OpenAPI dictionary representation of it""" response_name = f"response_{status_code}" if isinstance(data, oai.Reference) or data.content is None: diff --git a/openapi_python_client/utils.py b/openapi_python_client/utils.py index 6cdcb2119..efe4f014a 100644 --- a/openapi_python_client/utils.py +++ b/openapi_python_client/utils.py @@ -6,7 +6,7 @@ def sanitize(value: str) -> str: - """ Removes every character that isn't 0-9, A-Z, a-z, ' ', -, or _ """ + """Removes every character that isn't 0-9, A-Z, a-z, ' ', -, or _""" return re.sub(r"[^\w _\-]+", "", value) diff --git a/poetry.lock b/poetry.lock index 023229c52..7d2ad38f9 100644 --- a/poetry.lock +++ b/poetry.lock @@ -41,11 +41,11 @@ pyflakes = ">=1.1.0" [[package]] name = "black" -version = "20.8b1" +version = "21.4b0" description = "The uncompromising code formatter." category = "main" optional = false -python-versions = ">=3.6" +python-versions = ">=3.6.2" [package.dependencies] appdirs = "*" @@ -55,12 +55,13 @@ mypy-extensions = ">=0.4.3" pathspec = ">=0.6,<1" regex = ">=2020.1.8" toml = ">=0.10.1" -typed-ast = ">=1.4.0" -typing-extensions = ">=3.7.4" +typed-ast = {version = ">=1.4.2", markers = "python_version < \"3.8\""} +typing-extensions = {version = ">=3.7.4", markers = "python_version < \"3.8\""} [package.extras] colorama = ["colorama (>=0.4.3)"] d = ["aiohttp (>=3.3.2)", "aiohttp-cors"] +python2 = ["typed-ast (>=1.4.2)"] [[package]] name = "certifi" @@ -595,7 +596,7 @@ python-versions = "*" [[package]] name = "typed-ast" -version = "1.4.1" +version = "1.4.3" description = "a fork of Python 2 and 3 ast modules with type comment support" category = "main" optional = false @@ -667,8 +668,8 @@ testing = ["pytest (>=3.5,!=3.7.3)", "pytest-checkdocs (>=1.2.3)", "pytest-flake [metadata] lock-version = "1.1" -python-versions = "^3.6" -content-hash = "192ab706eb92d4283c09160f994d21d176d1ba3b70e878ac81b7f94450682e0a" +python-versions = "^3.6.2" +content-hash = "a1a929ac67a48ee8136c7f67290acd2c51f87fffb357baea3f60e27b0b053218" [metadata.files] appdirs = [ @@ -687,7 +688,8 @@ autoflake = [ {file = "autoflake-1.4.tar.gz", hash = "sha256:61a353012cff6ab94ca062823d1fb2f692c4acda51c76ff83a8d77915fba51ea"}, ] black = [ - {file = "black-20.8b1.tar.gz", hash = "sha256:1c02557aa099101b9d21496f8a914e9ed2222ef70336404eeeac8edba836fbea"}, + {file = "black-21.4b0-py3-none-any.whl", hash = "sha256:2db7040bbbbaa46247bfcc05c6efdebd7ebe50c1c3ca745ca6e0f6776438c96c"}, + {file = "black-21.4b0.tar.gz", hash = "sha256:915d916c48646dbe8040d5265cff7111421a60a3dfe7f7e07273176a57c24a34"}, ] certifi = [ {file = "certifi-2020.6.20-py2.py3-none-any.whl", hash = "sha256:8fc0819f1f30ba15bdb34cceffb9ef04d99f420f68eb75d901e9560b8749fc41"}, @@ -821,39 +823,20 @@ markupsafe = [ {file = "MarkupSafe-1.1.1-cp35-cp35m-win32.whl", hash = "sha256:6dd73240d2af64df90aa7c4e7481e23825ea70af4b4922f8ede5b9e35f78a3b1"}, {file = "MarkupSafe-1.1.1-cp35-cp35m-win_amd64.whl", hash = "sha256:9add70b36c5666a2ed02b43b335fe19002ee5235efd4b8a89bfcf9005bebac0d"}, {file = "MarkupSafe-1.1.1-cp36-cp36m-macosx_10_6_intel.whl", hash = "sha256:24982cc2533820871eba85ba648cd53d8623687ff11cbb805be4ff7b4c971aff"}, - {file = "MarkupSafe-1.1.1-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:d53bc011414228441014aa71dbec320c66468c1030aae3a6e29778a3382d96e5"}, {file = "MarkupSafe-1.1.1-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:00bc623926325b26bb9605ae9eae8a215691f33cae5df11ca5424f06f2d1f473"}, {file = "MarkupSafe-1.1.1-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:717ba8fe3ae9cc0006d7c451f0bb265ee07739daf76355d06366154ee68d221e"}, - {file = "MarkupSafe-1.1.1-cp36-cp36m-manylinux2010_i686.whl", hash = "sha256:3b8a6499709d29c2e2399569d96719a1b21dcd94410a586a18526b143ec8470f"}, - {file = "MarkupSafe-1.1.1-cp36-cp36m-manylinux2010_x86_64.whl", hash = "sha256:84dee80c15f1b560d55bcfe6d47b27d070b4681c699c572af2e3c7cc90a3b8e0"}, - {file = "MarkupSafe-1.1.1-cp36-cp36m-manylinux2014_aarch64.whl", hash = "sha256:b1dba4527182c95a0db8b6060cc98ac49b9e2f5e64320e2b56e47cb2831978c7"}, {file = "MarkupSafe-1.1.1-cp36-cp36m-win32.whl", hash = "sha256:535f6fc4d397c1563d08b88e485c3496cf5784e927af890fb3c3aac7f933ec66"}, {file = "MarkupSafe-1.1.1-cp36-cp36m-win_amd64.whl", hash = "sha256:b1282f8c00509d99fef04d8ba936b156d419be841854fe901d8ae224c59f0be5"}, {file = "MarkupSafe-1.1.1-cp37-cp37m-macosx_10_6_intel.whl", hash = "sha256:8defac2f2ccd6805ebf65f5eeb132adcf2ab57aa11fdf4c0dd5169a004710e7d"}, - {file = "MarkupSafe-1.1.1-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:bf5aa3cbcfdf57fa2ee9cd1822c862ef23037f5c832ad09cfea57fa846dec193"}, {file = "MarkupSafe-1.1.1-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:46c99d2de99945ec5cb54f23c8cd5689f6d7177305ebff350a58ce5f8de1669e"}, {file = "MarkupSafe-1.1.1-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:ba59edeaa2fc6114428f1637ffff42da1e311e29382d81b339c1817d37ec93c6"}, - {file = "MarkupSafe-1.1.1-cp37-cp37m-manylinux2010_i686.whl", hash = "sha256:6fffc775d90dcc9aed1b89219549b329a9250d918fd0b8fa8d93d154918422e1"}, - {file = "MarkupSafe-1.1.1-cp37-cp37m-manylinux2010_x86_64.whl", hash = "sha256:a6a744282b7718a2a62d2ed9d993cad6f5f585605ad352c11de459f4108df0a1"}, - {file = "MarkupSafe-1.1.1-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:195d7d2c4fbb0ee8139a6cf67194f3973a6b3042d742ebe0a9ed36d8b6f0c07f"}, {file = "MarkupSafe-1.1.1-cp37-cp37m-win32.whl", hash = "sha256:b00c1de48212e4cc9603895652c5c410df699856a2853135b3967591e4beebc2"}, {file = "MarkupSafe-1.1.1-cp37-cp37m-win_amd64.whl", hash = "sha256:9bf40443012702a1d2070043cb6291650a0841ece432556f784f004937f0f32c"}, {file = "MarkupSafe-1.1.1-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:6788b695d50a51edb699cb55e35487e430fa21f1ed838122d722e0ff0ac5ba15"}, {file = "MarkupSafe-1.1.1-cp38-cp38-manylinux1_i686.whl", hash = "sha256:cdb132fc825c38e1aeec2c8aa9338310d29d337bebbd7baa06889d09a60a1fa2"}, {file = "MarkupSafe-1.1.1-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:13d3144e1e340870b25e7b10b98d779608c02016d5184cfb9927a9f10c689f42"}, - {file = "MarkupSafe-1.1.1-cp38-cp38-manylinux2010_i686.whl", hash = "sha256:acf08ac40292838b3cbbb06cfe9b2cb9ec78fce8baca31ddb87aaac2e2dc3bc2"}, - {file = "MarkupSafe-1.1.1-cp38-cp38-manylinux2010_x86_64.whl", hash = "sha256:d9be0ba6c527163cbed5e0857c451fcd092ce83947944d6c14bc95441203f032"}, - {file = "MarkupSafe-1.1.1-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:caabedc8323f1e93231b52fc32bdcde6db817623d33e100708d9a68e1f53b26b"}, {file = "MarkupSafe-1.1.1-cp38-cp38-win32.whl", hash = "sha256:596510de112c685489095da617b5bcbbac7dd6384aeebeda4df6025d0256a81b"}, {file = "MarkupSafe-1.1.1-cp38-cp38-win_amd64.whl", hash = "sha256:e8313f01ba26fbbe36c7be1966a7b7424942f670f38e666995b88d012765b9be"}, - {file = "MarkupSafe-1.1.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:d73a845f227b0bfe8a7455ee623525ee656a9e2e749e4742706d80a6065d5e2c"}, - {file = "MarkupSafe-1.1.1-cp39-cp39-manylinux1_i686.whl", hash = "sha256:98bae9582248d6cf62321dcb52aaf5d9adf0bad3b40582925ef7c7f0ed85fceb"}, - {file = "MarkupSafe-1.1.1-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:2beec1e0de6924ea551859edb9e7679da6e4870d32cb766240ce17e0a0ba2014"}, - {file = "MarkupSafe-1.1.1-cp39-cp39-manylinux2010_i686.whl", hash = "sha256:7fed13866cf14bba33e7176717346713881f56d9d2bcebab207f7a036f41b850"}, - {file = "MarkupSafe-1.1.1-cp39-cp39-manylinux2010_x86_64.whl", hash = "sha256:6f1e273a344928347c1290119b493a1f0303c52f5a5eae5f16d74f48c15d4a85"}, - {file = "MarkupSafe-1.1.1-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:feb7b34d6325451ef96bc0e36e1a6c0c1c64bc1fbec4b854f4529e51887b1621"}, - {file = "MarkupSafe-1.1.1-cp39-cp39-win32.whl", hash = "sha256:22c178a091fc6630d0d045bdb5992d2dfe14e3259760e713c490da5323866c39"}, - {file = "MarkupSafe-1.1.1-cp39-cp39-win_amd64.whl", hash = "sha256:b7d644ddb4dbd407d31ffb699f1d140bc35478da613b441c582aeb7c43838dd8"}, {file = "MarkupSafe-1.1.1.tar.gz", hash = "sha256:29872e92839765e546828bb7754a68c418d927cd064fd4708fab9fe9c8bb116b"}, ] mccabe = [ @@ -1028,12 +1011,6 @@ regex = [ {file = "regex-2020.9.27-cp38-cp38-manylinux2010_x86_64.whl", hash = "sha256:8d69cef61fa50c8133382e61fd97439de1ae623fe943578e477e76a9d9471637"}, {file = "regex-2020.9.27-cp38-cp38-win32.whl", hash = "sha256:f2388013e68e750eaa16ccbea62d4130180c26abb1d8e5d584b9baf69672b30f"}, {file = "regex-2020.9.27-cp38-cp38-win_amd64.whl", hash = "sha256:4318d56bccfe7d43e5addb272406ade7a2274da4b70eb15922a071c58ab0108c"}, - {file = "regex-2020.9.27-cp39-cp39-manylinux1_i686.whl", hash = "sha256:84cada8effefe9a9f53f9b0d2ba9b7b6f5edf8d2155f9fdbe34616e06ececf81"}, - {file = "regex-2020.9.27-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:816064fc915796ea1f26966163f6845de5af78923dfcecf6551e095f00983650"}, - {file = "regex-2020.9.27-cp39-cp39-manylinux2010_i686.whl", hash = "sha256:5d892a4f1c999834eaa3c32bc9e8b976c5825116cde553928c4c8e7e48ebda67"}, - {file = "regex-2020.9.27-cp39-cp39-manylinux2010_x86_64.whl", hash = "sha256:c9443124c67b1515e4fe0bb0aa18df640965e1030f468a2a5dc2589b26d130ad"}, - {file = "regex-2020.9.27-cp39-cp39-win32.whl", hash = "sha256:49f23ebd5ac073765ecbcf046edc10d63dcab2f4ae2bce160982cb30df0c0302"}, - {file = "regex-2020.9.27-cp39-cp39-win_amd64.whl", hash = "sha256:3d20024a70b97b4f9546696cbf2fd30bae5f42229fbddf8661261b1eaff0deb7"}, {file = "regex-2020.9.27.tar.gz", hash = "sha256:a6f32aea4260dfe0e55dc9733ea162ea38f0ea86aa7d0f77b15beac5bf7b369d"}, ] requests = [ @@ -1072,36 +1049,36 @@ toml = [ {file = "toml-0.10.1.tar.gz", hash = "sha256:926b612be1e5ce0634a2ca03470f95169cf16f939018233a670519cb4ac58b0f"}, ] typed-ast = [ - {file = "typed_ast-1.4.1-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:73d785a950fc82dd2a25897d525d003f6378d1cb23ab305578394694202a58c3"}, - {file = "typed_ast-1.4.1-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:aaee9905aee35ba5905cfb3c62f3e83b3bec7b39413f0a7f19be4e547ea01ebb"}, - {file = "typed_ast-1.4.1-cp35-cp35m-win32.whl", hash = "sha256:0c2c07682d61a629b68433afb159376e24e5b2fd4641d35424e462169c0a7919"}, - {file = "typed_ast-1.4.1-cp35-cp35m-win_amd64.whl", hash = "sha256:4083861b0aa07990b619bd7ddc365eb7fa4b817e99cf5f8d9cf21a42780f6e01"}, - {file = "typed_ast-1.4.1-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:269151951236b0f9a6f04015a9004084a5ab0d5f19b57de779f908621e7d8b75"}, - {file = "typed_ast-1.4.1-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:24995c843eb0ad11a4527b026b4dde3da70e1f2d8806c99b7b4a7cf491612652"}, - {file = "typed_ast-1.4.1-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:fe460b922ec15dd205595c9b5b99e2f056fd98ae8f9f56b888e7a17dc2b757e7"}, - {file = "typed_ast-1.4.1-cp36-cp36m-manylinux2014_aarch64.whl", hash = "sha256:fcf135e17cc74dbfbc05894ebca928ffeb23d9790b3167a674921db19082401f"}, - {file = "typed_ast-1.4.1-cp36-cp36m-win32.whl", hash = "sha256:4e3e5da80ccbebfff202a67bf900d081906c358ccc3d5e3c8aea42fdfdfd51c1"}, - {file = "typed_ast-1.4.1-cp36-cp36m-win_amd64.whl", hash = "sha256:249862707802d40f7f29f6e1aad8d84b5aa9e44552d2cc17384b209f091276aa"}, - {file = "typed_ast-1.4.1-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:8ce678dbaf790dbdb3eba24056d5364fb45944f33553dd5869b7580cdbb83614"}, - {file = "typed_ast-1.4.1-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:c9e348e02e4d2b4a8b2eedb48210430658df6951fa484e59de33ff773fbd4b41"}, - {file = "typed_ast-1.4.1-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:bcd3b13b56ea479b3650b82cabd6b5343a625b0ced5429e4ccad28a8973f301b"}, - {file = "typed_ast-1.4.1-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:f208eb7aff048f6bea9586e61af041ddf7f9ade7caed625742af423f6bae3298"}, - {file = "typed_ast-1.4.1-cp37-cp37m-win32.whl", hash = "sha256:d5d33e9e7af3b34a40dc05f498939f0ebf187f07c385fd58d591c533ad8562fe"}, - {file = "typed_ast-1.4.1-cp37-cp37m-win_amd64.whl", hash = "sha256:0666aa36131496aed8f7be0410ff974562ab7eeac11ef351def9ea6fa28f6355"}, - {file = "typed_ast-1.4.1-cp38-cp38-macosx_10_15_x86_64.whl", hash = "sha256:d205b1b46085271b4e15f670058ce182bd1199e56b317bf2ec004b6a44f911f6"}, - {file = "typed_ast-1.4.1-cp38-cp38-manylinux1_i686.whl", hash = "sha256:6daac9731f172c2a22ade6ed0c00197ee7cc1221aa84cfdf9c31defeb059a907"}, - {file = "typed_ast-1.4.1-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:498b0f36cc7054c1fead3d7fc59d2150f4d5c6c56ba7fb150c013fbc683a8d2d"}, - {file = "typed_ast-1.4.1-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:7e4c9d7658aaa1fc80018593abdf8598bf91325af6af5cce4ce7c73bc45ea53d"}, - {file = "typed_ast-1.4.1-cp38-cp38-win32.whl", hash = "sha256:715ff2f2df46121071622063fc7543d9b1fd19ebfc4f5c8895af64a77a8c852c"}, - {file = "typed_ast-1.4.1-cp38-cp38-win_amd64.whl", hash = "sha256:fc0fea399acb12edbf8a628ba8d2312f583bdbdb3335635db062fa98cf71fca4"}, - {file = "typed_ast-1.4.1-cp39-cp39-macosx_10_15_x86_64.whl", hash = "sha256:d43943ef777f9a1c42bf4e552ba23ac77a6351de620aa9acf64ad54933ad4d34"}, - {file = "typed_ast-1.4.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:92c325624e304ebf0e025d1224b77dd4e6393f18aab8d829b5b7e04afe9b7a2c"}, - {file = "typed_ast-1.4.1-cp39-cp39-manylinux1_i686.whl", hash = "sha256:d648b8e3bf2fe648745c8ffcee3db3ff903d0817a01a12dd6a6ea7a8f4889072"}, - {file = "typed_ast-1.4.1-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:fac11badff8313e23717f3dada86a15389d0708275bddf766cca67a84ead3e91"}, - {file = "typed_ast-1.4.1-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:0d8110d78a5736e16e26213114a38ca35cb15b6515d535413b090bd50951556d"}, - {file = "typed_ast-1.4.1-cp39-cp39-win32.whl", hash = "sha256:b52ccf7cfe4ce2a1064b18594381bccf4179c2ecf7f513134ec2f993dd4ab395"}, - {file = "typed_ast-1.4.1-cp39-cp39-win_amd64.whl", hash = "sha256:3742b32cf1c6ef124d57f95be609c473d7ec4c14d0090e5a5e05a15269fb4d0c"}, - {file = "typed_ast-1.4.1.tar.gz", hash = "sha256:8c8aaad94455178e3187ab22c8b01a3837f8ee50e09cf31f1ba129eb293ec30b"}, + {file = "typed_ast-1.4.3-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:2068531575a125b87a41802130fa7e29f26c09a2833fea68d9a40cf33902eba6"}, + {file = "typed_ast-1.4.3-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:c907f561b1e83e93fad565bac5ba9c22d96a54e7ea0267c708bffe863cbe4075"}, + {file = "typed_ast-1.4.3-cp35-cp35m-manylinux2014_aarch64.whl", hash = "sha256:1b3ead4a96c9101bef08f9f7d1217c096f31667617b58de957f690c92378b528"}, + {file = "typed_ast-1.4.3-cp35-cp35m-win32.whl", hash = "sha256:dde816ca9dac1d9c01dd504ea5967821606f02e510438120091b84e852367428"}, + {file = "typed_ast-1.4.3-cp35-cp35m-win_amd64.whl", hash = "sha256:777a26c84bea6cd934422ac2e3b78863a37017618b6e5c08f92ef69853e765d3"}, + {file = "typed_ast-1.4.3-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:f8afcf15cc511ada719a88e013cec87c11aff7b91f019295eb4530f96fe5ef2f"}, + {file = "typed_ast-1.4.3-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:52b1eb8c83f178ab787f3a4283f68258525f8d70f778a2f6dd54d3b5e5fb4341"}, + {file = "typed_ast-1.4.3-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:01ae5f73431d21eead5015997ab41afa53aa1fbe252f9da060be5dad2c730ace"}, + {file = "typed_ast-1.4.3-cp36-cp36m-manylinux2014_aarch64.whl", hash = "sha256:c190f0899e9f9f8b6b7863debfb739abcb21a5c054f911ca3596d12b8a4c4c7f"}, + {file = "typed_ast-1.4.3-cp36-cp36m-win32.whl", hash = "sha256:398e44cd480f4d2b7ee8d98385ca104e35c81525dd98c519acff1b79bdaac363"}, + {file = "typed_ast-1.4.3-cp36-cp36m-win_amd64.whl", hash = "sha256:bff6ad71c81b3bba8fa35f0f1921fb24ff4476235a6e94a26ada2e54370e6da7"}, + {file = "typed_ast-1.4.3-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:0fb71b8c643187d7492c1f8352f2c15b4c4af3f6338f21681d3681b3dc31a266"}, + {file = "typed_ast-1.4.3-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:760ad187b1041a154f0e4d0f6aae3e40fdb51d6de16e5c99aedadd9246450e9e"}, + {file = "typed_ast-1.4.3-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:5feca99c17af94057417d744607b82dd0a664fd5e4ca98061480fd8b14b18d04"}, + {file = "typed_ast-1.4.3-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:95431a26309a21874005845c21118c83991c63ea800dd44843e42a916aec5899"}, + {file = "typed_ast-1.4.3-cp37-cp37m-win32.whl", hash = "sha256:aee0c1256be6c07bd3e1263ff920c325b59849dc95392a05f258bb9b259cf39c"}, + {file = "typed_ast-1.4.3-cp37-cp37m-win_amd64.whl", hash = "sha256:9ad2c92ec681e02baf81fdfa056fe0d818645efa9af1f1cd5fd6f1bd2bdfd805"}, + {file = "typed_ast-1.4.3-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:b36b4f3920103a25e1d5d024d155c504080959582b928e91cb608a65c3a49e1a"}, + {file = "typed_ast-1.4.3-cp38-cp38-manylinux1_i686.whl", hash = "sha256:067a74454df670dcaa4e59349a2e5c81e567d8d65458d480a5b3dfecec08c5ff"}, + {file = "typed_ast-1.4.3-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:7538e495704e2ccda9b234b82423a4038f324f3a10c43bc088a1636180f11a41"}, + {file = "typed_ast-1.4.3-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:af3d4a73793725138d6b334d9d247ce7e5f084d96284ed23f22ee626a7b88e39"}, + {file = "typed_ast-1.4.3-cp38-cp38-win32.whl", hash = "sha256:f2362f3cb0f3172c42938946dbc5b7843c2a28aec307c49100c8b38764eb6927"}, + {file = "typed_ast-1.4.3-cp38-cp38-win_amd64.whl", hash = "sha256:dd4a21253f42b8d2b48410cb31fe501d32f8b9fbeb1f55063ad102fe9c425e40"}, + {file = "typed_ast-1.4.3-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:f328adcfebed9f11301eaedfa48e15bdece9b519fb27e6a8c01aa52a17ec31b3"}, + {file = "typed_ast-1.4.3-cp39-cp39-manylinux1_i686.whl", hash = "sha256:2c726c276d09fc5c414693a2de063f521052d9ea7c240ce553316f70656c84d4"}, + {file = "typed_ast-1.4.3-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:cae53c389825d3b46fb37538441f75d6aecc4174f615d048321b716df2757fb0"}, + {file = "typed_ast-1.4.3-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:b9574c6f03f685070d859e75c7f9eeca02d6933273b5e69572e5ff9d5e3931c3"}, + {file = "typed_ast-1.4.3-cp39-cp39-win32.whl", hash = "sha256:209596a4ec71d990d71d5e0d312ac935d86930e6eecff6ccc7007fe54d703808"}, + {file = "typed_ast-1.4.3-cp39-cp39-win_amd64.whl", hash = "sha256:9c6d1a54552b5330bc657b7ef0eae25d00ba7ffe85d9ea8ae6540d2197a3788c"}, + {file = "typed_ast-1.4.3.tar.gz", hash = "sha256:fb1bbeac803adea29cedd70781399c99138358c26d05fcbd23c13016b7f5ec65"}, ] typer = [ {file = "typer-0.3.2-py3-none-any.whl", hash = "sha256:ba58b920ce851b12a2d790143009fa00ac1d05b3ff3257061ff69dbdfc3d161b"}, diff --git a/pyproject.toml b/pyproject.toml index a3f93c8c6..cd2ccd8ef 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,13 +19,13 @@ packages = [ include = ["CHANGELOG.md", "openapi_python_client/py.typed"] [tool.poetry.dependencies] -python = "^3.6" +python = "^3.6.2" jinja2 = "^2.11.1" stringcase = "^1.2.0" typer = "^0.3" colorama = {version = "^0.4.3", markers = "sys_platform == 'win32'"} shellingham = "^1.3.2" -black = ">=20.8b1" +black = "^21.4b0" isort = "^5.0.5" pyyaml = "^5.3.1" importlib_metadata = {version = "^2.0.0", python = "<3.8"} From 22c344fdae9cdf8a2219bd458d3037c15f1c5e93 Mon Sep 17 00:00:00 2001 From: Dylan Anthony Date: Wed, 28 Apr 2021 09:26:11 -0600 Subject: [PATCH 2/2] style: Update black (again) and run post merge --- .../api/tests/test_inline_objects.py | 4 +- .../test_inline_objects_response_200.py | 2 +- openapi_python_client/utils.py | 4 +- poetry.lock | 78 +++++++++---------- 4 files changed, 44 insertions(+), 44 deletions(-) diff --git a/end_to_end_tests/golden-record/my_test_api_client/api/tests/test_inline_objects.py b/end_to_end_tests/golden-record/my_test_api_client/api/tests/test_inline_objects.py index 04fc372c4..59d12f3d6 100644 --- a/end_to_end_tests/golden-record/my_test_api_client/api/tests/test_inline_objects.py +++ b/end_to_end_tests/golden-record/my_test_api_client/api/tests/test_inline_objects.py @@ -68,7 +68,7 @@ def sync( client: Client, json_body: TestInlineObjectsJsonBody, ) -> Optional[TestInlineObjectsResponse200]: - """ """ + """ """ return sync_detailed( client=client, @@ -97,7 +97,7 @@ async def asyncio( client: Client, json_body: TestInlineObjectsJsonBody, ) -> Optional[TestInlineObjectsResponse200]: - """ """ + """ """ return ( await asyncio_detailed( diff --git a/end_to_end_tests/golden-record/my_test_api_client/models/test_inline_objects_response_200.py b/end_to_end_tests/golden-record/my_test_api_client/models/test_inline_objects_response_200.py index 9b1a6fa58..7c6aa6fb2 100644 --- a/end_to_end_tests/golden-record/my_test_api_client/models/test_inline_objects_response_200.py +++ b/end_to_end_tests/golden-record/my_test_api_client/models/test_inline_objects_response_200.py @@ -9,7 +9,7 @@ @attr.s(auto_attribs=True) class TestInlineObjectsResponse200: - """ """ + """ """ a_property: Union[Unset, str] = UNSET diff --git a/openapi_python_client/utils.py b/openapi_python_client/utils.py index 25f138924..0834e3ce6 100644 --- a/openapi_python_client/utils.py +++ b/openapi_python_client/utils.py @@ -7,12 +7,12 @@ def sanitize(value: str) -> str: - """ Removes every character that isn't 0-9, A-Z, a-z, or a known delimiter """ + """Removes every character that isn't 0-9, A-Z, a-z, or a known delimiter""" return re.sub(rf"[^\w{delimiters}]+", "", value) def split_words(value: str) -> List[str]: - """ Split a string on non-capital letters and known delimiters """ + """Split a string on non-capital letters and known delimiters""" value = " ".join(re.split("([A-Z]?[a-z]+)", value)) return re.findall(rf"[^{delimiters}]+", value) diff --git a/poetry.lock b/poetry.lock index 3cc02945a..38716140c 100644 --- a/poetry.lock +++ b/poetry.lock @@ -41,7 +41,7 @@ pyflakes = ">=1.1.0" [[package]] name = "black" -version = "21.4b0" +version = "21.4b1" description = "The uncompromising code formatter." category = "main" optional = false @@ -52,7 +52,7 @@ appdirs = "*" click = ">=7.1.2" dataclasses = {version = ">=0.6", markers = "python_version < \"3.7\""} mypy-extensions = ">=0.4.3" -pathspec = ">=0.6,<1" +pathspec = ">=0.8.1,<1" regex = ">=2020.1.8" toml = ">=0.10.1" typed-ast = {version = ">=1.4.2", markers = "python_version < \"3.8\""} @@ -324,7 +324,7 @@ six = "*" [[package]] name = "pathspec" -version = "0.8.0" +version = "0.8.1" description = "Utility library for gitignore style pattern matching of file paths." category = "main" optional = false @@ -660,8 +660,8 @@ testing = ["pytest (>=3.5,!=3.7.3)", "pytest-checkdocs (>=1.2.3)", "pytest-flake [metadata] lock-version = "1.1" -python-versions = "^3.6" -content-hash = "ecb9809f99089aae2ff5bc8532402c5a5abae87a7dfaedbfca5daa505744eedd" +python-versions = "^3.6.2" +content-hash = "b86d1b51f9ed15bb1e8942e9be13d269e68664c37e7759cf77a61bec79504480" [metadata.files] appdirs = [ @@ -680,8 +680,8 @@ autoflake = [ {file = "autoflake-1.4.tar.gz", hash = "sha256:61a353012cff6ab94ca062823d1fb2f692c4acda51c76ff83a8d77915fba51ea"}, ] black = [ - {file = "black-20.8b1-py3-none-any.whl", hash = "sha256:70b62ef1527c950db59062cda342ea224d772abdf6adc58b86a45421bab20a6b"}, - {file = "black-20.8b1.tar.gz", hash = "sha256:1c02557aa099101b9d21496f8a914e9ed2222ef70336404eeeac8edba836fbea"}, + {file = "black-21.4b1-py3-none-any.whl", hash = "sha256:c9601dc863779db2fb1bf18b345bbfa2bb868463123cde6a7eff44b59e4ef739"}, + {file = "black-21.4b1.tar.gz", hash = "sha256:20d326de75d13be6290925a95c94a9f368aca2f71cb7b753a938a5ae20f34a37"}, ] certifi = [ {file = "certifi-2020.6.20-py2.py3-none-any.whl", hash = "sha256:8fc0819f1f30ba15bdb34cceffb9ef04d99f420f68eb75d901e9560b8749fc41"}, @@ -697,7 +697,6 @@ click = [ ] colorama = [ {file = "colorama-0.4.4-py2.py3-none-any.whl", hash = "sha256:9f47eda37229f68eee03b24b9748937c7dc3868f906e8ba69fbcbdd3bc5dc3e2"}, - {file = "colorama-0.4.4.tar.gz", hash = "sha256:5941b2b48a20143d2267e95b1c2a7603ce057ee39fd88e7329b0c292aa16869b"}, ] contextvars = [ {file = "contextvars-2.4.tar.gz", hash = "sha256:f38c908aaa59c14335eeea12abea5f443646216c4e29380d7bf34d2018e2c39e"}, @@ -872,8 +871,8 @@ packaging = [ {file = "packaging-20.4.tar.gz", hash = "sha256:4357f74f47b9c12db93624a82154e9b120fa8293699949152b22065d556079f8"}, ] pathspec = [ - {file = "pathspec-0.8.0-py2.py3-none-any.whl", hash = "sha256:7d91249d21749788d07a2d0f94147accd8f845507400749ea19c1ec9054a12b0"}, - {file = "pathspec-0.8.0.tar.gz", hash = "sha256:da45173eb3a6f2a5a487efba21f050af2b41948be6ab52b6a1e3ff22bb8b7061"}, + {file = "pathspec-0.8.1-py2.py3-none-any.whl", hash = "sha256:aa0cb481c4041bf52ffa7b0d8fa6cd3e88a2ca4879c533c9153882ee2556790d"}, + {file = "pathspec-0.8.1.tar.gz", hash = "sha256:86379d6b86d75816baba717e64b1a3a3469deb93bb76d613c9ce79edc5cb68fd"}, ] pluggy = [ {file = "pluggy-0.13.1-py2.py3-none-any.whl", hash = "sha256:966c145cd83c96502c3c3868f50408687b38434af77734af1e9ca461a4081d2d"}, @@ -958,26 +957,18 @@ pyyaml = [ {file = "PyYAML-5.4.1-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:bb4191dfc9306777bc594117aee052446b3fa88737cd13b7188d0e7aa8162185"}, {file = "PyYAML-5.4.1-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:6c78645d400265a062508ae399b60b8c167bf003db364ecb26dcab2bda048253"}, {file = "PyYAML-5.4.1-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:4e0583d24c881e14342eaf4ec5fbc97f934b999a6828693a99157fde912540cc"}, - {file = "PyYAML-5.4.1-cp36-cp36m-manylinux2014_aarch64.whl", hash = "sha256:72a01f726a9c7851ca9bfad6fd09ca4e090a023c00945ea05ba1638c09dc3347"}, - {file = "PyYAML-5.4.1-cp36-cp36m-manylinux2014_s390x.whl", hash = "sha256:895f61ef02e8fed38159bb70f7e100e00f471eae2bc838cd0f4ebb21e28f8541"}, {file = "PyYAML-5.4.1-cp36-cp36m-win32.whl", hash = "sha256:3bd0e463264cf257d1ffd2e40223b197271046d09dadf73a0fe82b9c1fc385a5"}, {file = "PyYAML-5.4.1-cp36-cp36m-win_amd64.whl", hash = "sha256:e4fac90784481d221a8e4b1162afa7c47ed953be40d31ab4629ae917510051df"}, {file = "PyYAML-5.4.1-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:5accb17103e43963b80e6f837831f38d314a0495500067cb25afab2e8d7a4018"}, {file = "PyYAML-5.4.1-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:e1d4970ea66be07ae37a3c2e48b5ec63f7ba6804bdddfdbd3cfd954d25a82e63"}, - {file = "PyYAML-5.4.1-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:cb333c16912324fd5f769fff6bc5de372e9e7a202247b48870bc251ed40239aa"}, - {file = "PyYAML-5.4.1-cp37-cp37m-manylinux2014_s390x.whl", hash = "sha256:fe69978f3f768926cfa37b867e3843918e012cf83f680806599ddce33c2c68b0"}, {file = "PyYAML-5.4.1-cp37-cp37m-win32.whl", hash = "sha256:dd5de0646207f053eb0d6c74ae45ba98c3395a571a2891858e87df7c9b9bd51b"}, {file = "PyYAML-5.4.1-cp37-cp37m-win_amd64.whl", hash = "sha256:08682f6b72c722394747bddaf0aa62277e02557c0fd1c42cb853016a38f8dedf"}, {file = "PyYAML-5.4.1-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:d2d9808ea7b4af864f35ea216be506ecec180628aced0704e34aca0b040ffe46"}, {file = "PyYAML-5.4.1-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:8c1be557ee92a20f184922c7b6424e8ab6691788e6d86137c5d93c1a6ec1b8fb"}, - {file = "PyYAML-5.4.1-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:fd7f6999a8070df521b6384004ef42833b9bd62cfee11a09bda1079b4b704247"}, - {file = "PyYAML-5.4.1-cp38-cp38-manylinux2014_s390x.whl", hash = "sha256:bfb51918d4ff3d77c1c856a9699f8492c612cde32fd3bcd344af9be34999bfdc"}, {file = "PyYAML-5.4.1-cp38-cp38-win32.whl", hash = "sha256:fa5ae20527d8e831e8230cbffd9f8fe952815b2b7dae6ffec25318803a7528fc"}, {file = "PyYAML-5.4.1-cp38-cp38-win_amd64.whl", hash = "sha256:0f5f5786c0e09baddcd8b4b45f20a7b5d61a7e7e99846e3c799b05c7c53fa696"}, {file = "PyYAML-5.4.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:294db365efa064d00b8d1ef65d8ea2c3426ac366c0c4368d930bf1c5fb497f77"}, {file = "PyYAML-5.4.1-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:74c1485f7707cf707a7aef42ef6322b8f97921bd89be2ab6317fd782c2d53183"}, - {file = "PyYAML-5.4.1-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:d483ad4e639292c90170eb6f7783ad19490e7a8defb3e46f97dfe4bacae89122"}, - {file = "PyYAML-5.4.1-cp39-cp39-manylinux2014_s390x.whl", hash = "sha256:fdc842473cd33f45ff6bce46aea678a54e3d21f1b61a7750ce3c498eedfe25d6"}, {file = "PyYAML-5.4.1-cp39-cp39-win32.whl", hash = "sha256:49d4cdd9065b9b6e206d0595fee27a96b5dd22618e7520c33204a4a3239d5b10"}, {file = "PyYAML-5.4.1-cp39-cp39-win_amd64.whl", hash = "sha256:c20cfa2d49991c8b4147af39859b167664f2ad4561704ee74c1de03318e898db"}, {file = "PyYAML-5.4.1.tar.gz", hash = "sha256:607774cbba28732bfa802b54baa7484215f530991055bb562efbed5b2f20a45e"}, @@ -1038,27 +1029,36 @@ toml = [ {file = "toml-0.10.1.tar.gz", hash = "sha256:926b612be1e5ce0634a2ca03470f95169cf16f939018233a670519cb4ac58b0f"}, ] typed-ast = [ - {file = "typed_ast-1.4.1-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:73d785a950fc82dd2a25897d525d003f6378d1cb23ab305578394694202a58c3"}, - {file = "typed_ast-1.4.1-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:aaee9905aee35ba5905cfb3c62f3e83b3bec7b39413f0a7f19be4e547ea01ebb"}, - {file = "typed_ast-1.4.1-cp35-cp35m-win32.whl", hash = "sha256:0c2c07682d61a629b68433afb159376e24e5b2fd4641d35424e462169c0a7919"}, - {file = "typed_ast-1.4.1-cp35-cp35m-win_amd64.whl", hash = "sha256:4083861b0aa07990b619bd7ddc365eb7fa4b817e99cf5f8d9cf21a42780f6e01"}, - {file = "typed_ast-1.4.1-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:269151951236b0f9a6f04015a9004084a5ab0d5f19b57de779f908621e7d8b75"}, - {file = "typed_ast-1.4.1-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:24995c843eb0ad11a4527b026b4dde3da70e1f2d8806c99b7b4a7cf491612652"}, - {file = "typed_ast-1.4.1-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:fe460b922ec15dd205595c9b5b99e2f056fd98ae8f9f56b888e7a17dc2b757e7"}, - {file = "typed_ast-1.4.1-cp36-cp36m-win32.whl", hash = "sha256:4e3e5da80ccbebfff202a67bf900d081906c358ccc3d5e3c8aea42fdfdfd51c1"}, - {file = "typed_ast-1.4.1-cp36-cp36m-win_amd64.whl", hash = "sha256:249862707802d40f7f29f6e1aad8d84b5aa9e44552d2cc17384b209f091276aa"}, - {file = "typed_ast-1.4.1-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:8ce678dbaf790dbdb3eba24056d5364fb45944f33553dd5869b7580cdbb83614"}, - {file = "typed_ast-1.4.1-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:c9e348e02e4d2b4a8b2eedb48210430658df6951fa484e59de33ff773fbd4b41"}, - {file = "typed_ast-1.4.1-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:bcd3b13b56ea479b3650b82cabd6b5343a625b0ced5429e4ccad28a8973f301b"}, - {file = "typed_ast-1.4.1-cp37-cp37m-win32.whl", hash = "sha256:d5d33e9e7af3b34a40dc05f498939f0ebf187f07c385fd58d591c533ad8562fe"}, - {file = "typed_ast-1.4.1-cp37-cp37m-win_amd64.whl", hash = "sha256:0666aa36131496aed8f7be0410ff974562ab7eeac11ef351def9ea6fa28f6355"}, - {file = "typed_ast-1.4.1-cp38-cp38-macosx_10_15_x86_64.whl", hash = "sha256:d205b1b46085271b4e15f670058ce182bd1199e56b317bf2ec004b6a44f911f6"}, - {file = "typed_ast-1.4.1-cp38-cp38-manylinux1_i686.whl", hash = "sha256:6daac9731f172c2a22ade6ed0c00197ee7cc1221aa84cfdf9c31defeb059a907"}, - {file = "typed_ast-1.4.1-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:498b0f36cc7054c1fead3d7fc59d2150f4d5c6c56ba7fb150c013fbc683a8d2d"}, - {file = "typed_ast-1.4.1-cp38-cp38-win32.whl", hash = "sha256:715ff2f2df46121071622063fc7543d9b1fd19ebfc4f5c8895af64a77a8c852c"}, - {file = "typed_ast-1.4.1-cp38-cp38-win_amd64.whl", hash = "sha256:fc0fea399acb12edbf8a628ba8d2312f583bdbdb3335635db062fa98cf71fca4"}, - {file = "typed_ast-1.4.1-cp39-cp39-macosx_10_15_x86_64.whl", hash = "sha256:d43943ef777f9a1c42bf4e552ba23ac77a6351de620aa9acf64ad54933ad4d34"}, - {file = "typed_ast-1.4.1.tar.gz", hash = "sha256:8c8aaad94455178e3187ab22c8b01a3837f8ee50e09cf31f1ba129eb293ec30b"}, + {file = "typed_ast-1.4.3-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:2068531575a125b87a41802130fa7e29f26c09a2833fea68d9a40cf33902eba6"}, + {file = "typed_ast-1.4.3-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:c907f561b1e83e93fad565bac5ba9c22d96a54e7ea0267c708bffe863cbe4075"}, + {file = "typed_ast-1.4.3-cp35-cp35m-manylinux2014_aarch64.whl", hash = "sha256:1b3ead4a96c9101bef08f9f7d1217c096f31667617b58de957f690c92378b528"}, + {file = "typed_ast-1.4.3-cp35-cp35m-win32.whl", hash = "sha256:dde816ca9dac1d9c01dd504ea5967821606f02e510438120091b84e852367428"}, + {file = "typed_ast-1.4.3-cp35-cp35m-win_amd64.whl", hash = "sha256:777a26c84bea6cd934422ac2e3b78863a37017618b6e5c08f92ef69853e765d3"}, + {file = "typed_ast-1.4.3-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:f8afcf15cc511ada719a88e013cec87c11aff7b91f019295eb4530f96fe5ef2f"}, + {file = "typed_ast-1.4.3-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:52b1eb8c83f178ab787f3a4283f68258525f8d70f778a2f6dd54d3b5e5fb4341"}, + {file = "typed_ast-1.4.3-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:01ae5f73431d21eead5015997ab41afa53aa1fbe252f9da060be5dad2c730ace"}, + {file = "typed_ast-1.4.3-cp36-cp36m-manylinux2014_aarch64.whl", hash = "sha256:c190f0899e9f9f8b6b7863debfb739abcb21a5c054f911ca3596d12b8a4c4c7f"}, + {file = "typed_ast-1.4.3-cp36-cp36m-win32.whl", hash = "sha256:398e44cd480f4d2b7ee8d98385ca104e35c81525dd98c519acff1b79bdaac363"}, + {file = "typed_ast-1.4.3-cp36-cp36m-win_amd64.whl", hash = "sha256:bff6ad71c81b3bba8fa35f0f1921fb24ff4476235a6e94a26ada2e54370e6da7"}, + {file = "typed_ast-1.4.3-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:0fb71b8c643187d7492c1f8352f2c15b4c4af3f6338f21681d3681b3dc31a266"}, + {file = "typed_ast-1.4.3-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:760ad187b1041a154f0e4d0f6aae3e40fdb51d6de16e5c99aedadd9246450e9e"}, + {file = "typed_ast-1.4.3-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:5feca99c17af94057417d744607b82dd0a664fd5e4ca98061480fd8b14b18d04"}, + {file = "typed_ast-1.4.3-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:95431a26309a21874005845c21118c83991c63ea800dd44843e42a916aec5899"}, + {file = "typed_ast-1.4.3-cp37-cp37m-win32.whl", hash = "sha256:aee0c1256be6c07bd3e1263ff920c325b59849dc95392a05f258bb9b259cf39c"}, + {file = "typed_ast-1.4.3-cp37-cp37m-win_amd64.whl", hash = "sha256:9ad2c92ec681e02baf81fdfa056fe0d818645efa9af1f1cd5fd6f1bd2bdfd805"}, + {file = "typed_ast-1.4.3-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:b36b4f3920103a25e1d5d024d155c504080959582b928e91cb608a65c3a49e1a"}, + {file = "typed_ast-1.4.3-cp38-cp38-manylinux1_i686.whl", hash = "sha256:067a74454df670dcaa4e59349a2e5c81e567d8d65458d480a5b3dfecec08c5ff"}, + {file = "typed_ast-1.4.3-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:7538e495704e2ccda9b234b82423a4038f324f3a10c43bc088a1636180f11a41"}, + {file = "typed_ast-1.4.3-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:af3d4a73793725138d6b334d9d247ce7e5f084d96284ed23f22ee626a7b88e39"}, + {file = "typed_ast-1.4.3-cp38-cp38-win32.whl", hash = "sha256:f2362f3cb0f3172c42938946dbc5b7843c2a28aec307c49100c8b38764eb6927"}, + {file = "typed_ast-1.4.3-cp38-cp38-win_amd64.whl", hash = "sha256:dd4a21253f42b8d2b48410cb31fe501d32f8b9fbeb1f55063ad102fe9c425e40"}, + {file = "typed_ast-1.4.3-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:f328adcfebed9f11301eaedfa48e15bdece9b519fb27e6a8c01aa52a17ec31b3"}, + {file = "typed_ast-1.4.3-cp39-cp39-manylinux1_i686.whl", hash = "sha256:2c726c276d09fc5c414693a2de063f521052d9ea7c240ce553316f70656c84d4"}, + {file = "typed_ast-1.4.3-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:cae53c389825d3b46fb37538441f75d6aecc4174f615d048321b716df2757fb0"}, + {file = "typed_ast-1.4.3-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:b9574c6f03f685070d859e75c7f9eeca02d6933273b5e69572e5ff9d5e3931c3"}, + {file = "typed_ast-1.4.3-cp39-cp39-win32.whl", hash = "sha256:209596a4ec71d990d71d5e0d312ac935d86930e6eecff6ccc7007fe54d703808"}, + {file = "typed_ast-1.4.3-cp39-cp39-win_amd64.whl", hash = "sha256:9c6d1a54552b5330bc657b7ef0eae25d00ba7ffe85d9ea8ae6540d2197a3788c"}, + {file = "typed_ast-1.4.3.tar.gz", hash = "sha256:fb1bbeac803adea29cedd70781399c99138358c26d05fcbd23c13016b7f5ec65"}, ] typer = [ {file = "typer-0.3.2-py3-none-any.whl", hash = "sha256:ba58b920ce851b12a2d790143009fa00ac1d05b3ff3257061ff69dbdfc3d161b"},