Skip to content

Commit 86e3cf7

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

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

fastapi_code_generator/parser.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,11 @@ def get_argument_list(self, snake_case: bool, path: List[str]) -> List[Argument]
330330
for argument in arguments:
331331
if positional_argument and argument.required and argument.default is None:
332332
argument.default = UsefulStr('...')
333-
positional_argument = argument.required or (argument.default is not None) or argument.type_hint.startswith('Optional[')
333+
positional_argument = (
334+
argument.required
335+
or (argument.default is not None)
336+
or argument.type_hint.startswith('Optional[')
337+
)
334338

335339
return arguments
336340

0 commit comments

Comments
 (0)