Skip to content

Commit cb5daac

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent ced6052 commit cb5daac

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
@@ -290,9 +290,9 @@ def get_parameter_type(
290290
self.imports_for_fastapi.append(
291291
Import(from_='fastapi', import_=param_is)
292292
)
293-
default: Optional[
294-
str
295-
] = f"{param_is}({'...' if field.required else repr(schema.default)}, alias='{orig_name}')"
293+
default: Optional[str] = (
294+
f"{param_is}({'...' if field.required else repr(schema.default)}, alias='{orig_name}')"
295+
)
296296
else:
297297
default = repr(schema.default) if schema.has_default else None
298298
self.imports_for_fastapi.append(field.imports)

0 commit comments

Comments
 (0)