mirror of https://github.com/tiangolo/fastapi.git
🎨 Auto format
This commit is contained in:
parent
bec5e359e8
commit
a5d28b0bc4
|
|
@ -71,6 +71,7 @@ try:
|
||||||
# This was added in 4.14.0 (June 2, 2025) We want to be able to support older versions
|
# This was added in 4.14.0 (June 2, 2025) We want to be able to support older versions
|
||||||
from typing_extensions import Sentinel
|
from typing_extensions import Sentinel
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
|
||||||
class Sentinel:
|
class Sentinel:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
@ -744,7 +745,11 @@ def _get_multidict_value(
|
||||||
if field.required:
|
if field.required:
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
return field.default if isinstance(field.default, Sentinel) else deepcopy(field.default)
|
return (
|
||||||
|
field.default
|
||||||
|
if isinstance(field.default, Sentinel)
|
||||||
|
else deepcopy(field.default)
|
||||||
|
)
|
||||||
return value
|
return value
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue