Skip to content

Commit a9310e1

Browse files
committed
feat: replace union operator with Union type for better type hint clarity
1 parent 6ee3d82 commit a9310e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/openapi_python_generator/language_converters/python/service_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def is_response_type(obj) -> bool:
6161

6262

6363
def create_media_type_for_reference(
64-
reference_obj: Response30 | Reference30 | Response31 | Reference31,
64+
reference_obj: Union[Response30, Reference30 , Response31 , Reference31],
6565
):
6666
"""Create a MediaType wrapper for a reference object, using the correct version"""
6767
# Check which version the reference object belongs to

0 commit comments

Comments
 (0)