MCPcopy
hub / github.com/fastapi/fastapi / Default

Function Default

fastapi/datastructures.py:174–181  ·  view source on GitHub ↗

You shouldn't use this function directly. It's used internally to recognize when a default value has been overwritten, even if the overridden default value was truthy.

(value: DefaultType)

Source from the content-addressed store, hash-verified

172
173
174def Default(value: DefaultType) -> DefaultType:
175 """
176 You shouldn't use this function directly.
177
178 It's used internally to recognize when a default value has been overwritten, even
179 if the overridden default value was truthy.
180 """
181 return DefaultPlaceholder(value) # type: ignore
182
183
184# Sentinel for "parameter not provided" in Param/FieldInfo.

Callers 15

get_request_handlerFunction · 0.90
__init__Method · 0.90
for_includeMethod · 0.90
__init__Method · 0.90
add_api_routeMethod · 0.90
api_routeMethod · 0.90
include_routerMethod · 0.90
getMethod · 0.90
putMethod · 0.90

Calls 1

DefaultPlaceholderClass · 0.85

Tested by 2

Used in the wild real call sites across dependent graphs

searching dependent graphs…