Skip to content

Commit dd4e975

Browse files
committed
:chore: Typing for older python version
1 parent ae7a60b commit dd4e975

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/openapi_python_generator/language_converters/python/model_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from openapi_python_generator.models import TypeConversion
2222

2323

24-
def type_converter(schema: Schema, required: bool = False, model_name: str | None = None,) -> TypeConversion:
24+
def type_converter(schema: Schema, required: bool = False, model_name: Optional[str] = None,) -> TypeConversion:
2525
"""
2626
Converts an OpenAPI type to a Python type.
2727
:param schema: Schema containing the type to be converted

0 commit comments

Comments
 (0)