Skip to content

Commit d9b2620

Browse files
authoredJan 3, 2024
feat: Export Unset types from generated types.py (#927)
Closes #925
1 parent bbef24d commit d9b2620

File tree

4 files changed

+4
-4
lines changed
  • end_to_end_tests
    • golden-record/my_test_api_client
    • test-3-1-golden-record/test_3_1_features_client
  • integration-tests/integration_tests
  • openapi_python_client/templates

4 files changed

+4
-4
lines changed
 

‎end_to_end_tests/golden-record/my_test_api_client/types.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ class Response(Generic[T]):
4141
parsed: Optional[T]
4242

4343

44-
__all__ = ["File", "Response", "FileJsonType"]
44+
__all__ = ["File", "Response", "FileJsonType", "Unset", "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
@@ -41,4 +41,4 @@ class Response(Generic[T]):
4141
parsed: Optional[T]
4242

4343

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

‎integration-tests/integration_tests/types.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ class Response(Generic[T]):
4141
parsed: Optional[T]
4242

4343

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

‎openapi_python_client/templates/types.py.jinja

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

4444

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

0 commit comments

Comments
 (0)
Please sign in to comment.