Skip to content

Commit 93f409a

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

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[str] = (
303-
f"{param_is}({'...' if field.required else repr(schema.default)}, alias='{orig_name}')"
304-
)
302+
default: Optional[
303+
str
304+
] = f"{param_is}({'...' if field.required else repr(schema.default)}, alias='{orig_name}')"
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)