Skip to content

Commit e8efab6

Browse files
committed
Added autoflake to generation and cleaned up a couple of flake8 issues. Closes #138
1 parent dabc858 commit e8efab6

23 files changed

+60
-53
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1818
### Additions
1919

2020
- Endpoints without operationIds will have a name generated from their method and path (#92). Thanks @Kerybas & @dtkav!
21+
- autoflake will be run on generated clients to clean up unused imports / variables (#138). Thanks @pawamoy!
2122
- Note to README about supported OpenAPI versions (#176). Thanks @filippog!
2223

2324
## 0.6.0 - 2020-09-21
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
""" A client library for accessing My Test API """
2-
from .client import AuthenticatedClient, Client

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
from typing import Any, Dict, List, Optional, Union, cast
1+
from typing import Any, Dict, Optional
22

33
import httpx
4-
from attr import asdict
54

6-
from ...client import AuthenticatedClient, Client
5+
from ...client import Client
76
from ...types import Response
87

98

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22
from typing import Any, Dict, List, Optional, Union, cast
33

44
import httpx
5-
from attr import asdict
65
from dateutil.parser import isoparse
76

8-
from ...client import AuthenticatedClient, Client
7+
from ...client import Client
98
from ...models.an_enum import AnEnum
109
from ...models.http_validation_error import HTTPValidationError
1110
from ...types import Response

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
from typing import Any, Dict, List, Optional, Union, cast
1+
from typing import Any, Dict, List, Optional, cast
22

33
import httpx
4-
from attr import asdict
54

6-
from ...client import AuthenticatedClient, Client
5+
from ...client import Client
76
from ...types import Response
87

98

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
from typing import Any, Dict, List, Optional, Union, cast
1+
from typing import Any, Dict, List, Optional, cast
22

33
import httpx
4-
from attr import asdict
54

6-
from ...client import AuthenticatedClient, Client
5+
from ...client import Client
76
from ...types import Response
87

98

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
from typing import Any, Dict, List, Optional, Union, cast
1+
from typing import Any, Dict, List, Optional, cast
22

33
import httpx
4-
from attr import asdict
54

6-
from ...client import AuthenticatedClient, Client
5+
from ...client import Client
76
from ...types import Response
87

98

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
from typing import Any, Dict, List, Optional, Union, cast
1+
from typing import Any, Dict, List, Optional, cast
22

33
import httpx
4-
from attr import asdict
54

6-
from ...client import AuthenticatedClient, Client
5+
from ...client import Client
76
from ...types import Response
87

98

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@
22
from typing import Any, Dict, List, Optional, Union, cast
33

44
import httpx
5-
from attr import asdict
6-
from dateutil.parser import isoparse
75

8-
from ...client import AuthenticatedClient, Client
6+
from ...client import Client
97
from ...models.a_model import AModel
108
from ...models.an_enum import AnEnum
119
from ...models.http_validation_error import HTTPValidationError

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
from typing import Any, Dict, List, Optional, Union, cast
1+
from typing import Any, Dict, Optional, Union, cast
22

33
import httpx
4-
from attr import asdict
54

6-
from ...client import AuthenticatedClient, Client
5+
from ...client import Client
76
from ...models.an_int_enum import AnIntEnum
87
from ...models.http_validation_error import HTTPValidationError
98
from ...types import Response

0 commit comments

Comments
 (0)