From 9c52f92f8cb8a36259d2ff83534767c67a3ec6cf Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 21 Oct 2023 21:04:17 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20[pre-commit.ci]=20Auto=20format?= =?UTF-8?q?=20from=20pre-commit.com=20hooks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fastapi/dependencies/utils.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/fastapi/dependencies/utils.py b/fastapi/dependencies/utils.py index d9174311a..36892e780 100644 --- a/fastapi/dependencies/utils.py +++ b/fastapi/dependencies/utils.py @@ -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))