diff --git a/fastapi/utils.py b/fastapi/utils.py index f6476933d..40bff3279 100644 --- a/fastapi/utils.py +++ b/fastapi/utils.py @@ -168,7 +168,7 @@ def get_value_or_default( Otherwise, the first item (a `DefaultPlaceholder`) will be returned. """ items = (first_item,) + extra_items - for item in (first_item,) + items: + for item in items: if not isinstance(item, DefaultPlaceholder): return item return first_item