🎨 [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: except AttributeError:
errors.append(get_missing_field_error(loc)) errors.append(get_missing_field_error(loc))
continue continue
if ( if value is None or (
value is None isinstance(field_info, params.Form)
or ( and is_sequence_field(field)
isinstance(field_info, params.Form) and len(value) == 0
and is_sequence_field(field)
and len(value) == 0
)
): ):
if field.required: if field.required:
errors.append(get_missing_field_error(loc)) errors.append(get_missing_field_error(loc))