Skip to content

Commit 1e4e55c

Browse files
committed
chore: apply sorting to __all__
1 parent 2f0cee9 commit 1e4e55c

File tree

10 files changed

+15
-15
lines changed

10 files changed

+15
-15
lines changed

end_to_end_tests/golden-record/my_test_api_client/types.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ class Response(Generic[T]):
4343
parsed: Optional[T]
4444

4545

46-
__all__ = ["File", "Response", "FileJsonType", "Unset", "UNSET"]
46+
__all__ = ["UNSET", "File", "FileJsonType", "Response", "Unset"]

end_to_end_tests/literal-enums-golden-record/my_enum_api_client/types.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ class Response(Generic[T]):
4343
parsed: Optional[T]
4444

4545

46-
__all__ = ["File", "Response", "FileJsonType", "Unset", "UNSET"]
46+
__all__ = ["UNSET", "File", "FileJsonType", "Response", "Unset"]

end_to_end_tests/test-3-1-golden-record/test_3_1_features_client/types.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ class Response(Generic[T]):
4343
parsed: Optional[T]
4444

4545

46-
__all__ = ["File", "Response", "FileJsonType", "Unset", "UNSET"]
46+
__all__ = ["UNSET", "File", "FileJsonType", "Response", "Unset"]

integration-tests/integration_tests/types.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ class Response(Generic[T]):
4343
parsed: Optional[T]
4444

4545

46-
__all__ = ["File", "Response", "FileJsonType", "Unset", "UNSET"]
46+
__all__ = ["UNSET", "File", "FileJsonType", "Response", "Unset"]

openapi_python_client/parser/errors.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from enum import Enum
33
from typing import Optional
44

5-
__all__ = ["ErrorLevel", "GeneratorError", "ParseError", "PropertyError", "ParameterError"]
5+
__all__ = ["ErrorLevel", "GeneratorError", "ParameterError", "ParseError", "PropertyError"]
66

77
from pydantic import BaseModel
88

openapi_python_client/parser/properties/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"Parameters",
1010
"Property",
1111
"Schemas",
12-
"build_schemas",
1312
"build_parameters",
13+
"build_schemas",
1414
"property_from_data",
1515
]
1616

openapi_python_client/parser/properties/schemas.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
__all__ = [
22
"Class",
3-
"Schemas",
43
"Parameters",
54
"ReferencePath",
5+
"Schemas",
6+
"parameter_from_data",
7+
"parameter_from_reference",
68
"parse_reference_path",
7-
"update_schemas_with_data",
89
"update_parameters_with_data",
9-
"parameter_from_reference",
10-
"parameter_from_data",
10+
"update_schemas_with_data",
1111
]
1212

1313
from typing import TYPE_CHECKING, NewType, Union, cast

openapi_python_client/schema/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
__all__ = [
2+
"DataType",
23
"MediaType",
34
"OpenAPI",
45
"Operation",
56
"Parameter",
7+
"Parameter",
68
"ParameterLocation",
7-
"DataType",
89
"PathItem",
9-
"Parameter",
1010
"Reference",
1111
"RequestBody",
1212
"Response",

openapi_python_client/schema/openapi_schema_pydantic/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
"""
88

99
__all__ = [
10+
"XML",
11+
"Callback",
1012
"Components",
1113
"Contact",
1214
"Discriminator",
@@ -35,8 +37,6 @@
3537
"Server",
3638
"ServerVariable",
3739
"Tag",
38-
"XML",
39-
"Callback",
4040
]
4141

4242

openapi_python_client/templates/types.py.jinja

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ class Response(Generic[T]):
4444
parsed: Optional[T]
4545

4646

47-
__all__ = ["File", "Response", "FileJsonType", "Unset", "UNSET"]
47+
__all__ = ["UNSET", "File", "FileJsonType", "Response", "Unset"]

0 commit comments

Comments
 (0)