Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/fastapi/fastapi
/ get_default
Method
get_default
fastapi/_compat/v2.py:168–171 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
166
)
167
168
def
get_default(self) -> Any:
169
if
self.field_info.is_required():
170
return
Undefined
171
return
self.field_info.get_default(call_default_factory=True)
172
173
def
validate(
174
self,
Callers
1
default
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected