Skip to content

Commit e85f804

Browse files
committed
reformatted parser.py
1 parent 93f409a commit e85f804

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

fastapi_code_generator/parser.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -299,9 +299,9 @@ def get_parameter_type(
299299
self.imports_for_fastapi.append(
300300
Import(from_='fastapi', import_=param_is)
301301
)
302-
default: Optional[
303-
str
304-
] = f"{param_is}({'...' if field.required else repr(schema.default)}, alias='{orig_name}')"
302+
default: Optional[str] = (
303+
f"{param_is}({'...' if field.required else repr(schema.default)}, alias='{orig_name}')"
304+
)
305305
else:
306306
default = repr(schema.default) if schema.has_default else None
307307
self.imports_for_fastapi.append(field.imports)

0 commit comments

Comments
 (0)