Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Commit

Permalink
reformatted parser.py
Browse files Browse the repository at this point in the history
  • Loading branch information
davorrunje committed May 1, 2024
1 parent 93f409a commit e85f804
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fastapi_code_generator/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,9 @@ def get_parameter_type(
self.imports_for_fastapi.append(
Import(from_='fastapi', import_=param_is)
)
default: Optional[
str
] = f"{param_is}({'...' if field.required else repr(schema.default)}, alias='{orig_name}')"
default: Optional[str] = (
f"{param_is}({'...' if field.required else repr(schema.default)}, alias='{orig_name}')"
)
else:
default = repr(schema.default) if schema.has_default else None
self.imports_for_fastapi.append(field.imports)
Expand Down

0 comments on commit e85f804

Please sign in to comment.