🎨 [pre-commit.ci] Auto format from pre-commit.com hooks

This commit is contained in:
pre-commit-ci[bot] 2023-10-21 21:04:17 +00:00
parent 45fbe92dc7
commit 9c52f92f8c
1 changed files with 4 additions and 7 deletions

View File

@ -707,13 +707,10 @@ async def request_body_to_args(
except AttributeError:
errors.append(get_missing_field_error(loc))
continue
if (
value is None
or (
isinstance(field_info, params.Form)
and is_sequence_field(field)
and len(value) == 0
)
if value is None or (
isinstance(field_info, params.Form)
and is_sequence_field(field)
and len(value) == 0
):
if field.required:
errors.append(get_missing_field_error(loc))