Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/fastapi/fastapi
/ ModelWithConfig
Class
ModelWithConfig
tests/test_jsonable_encoder.py:59–62 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
57
58
59
class
ModelWithConfig(BaseModel):
60
role: RoleEnum | None = None
61
62
model_config = {
"use_enum_values"
: True}
63
64
65
class
ModelWithAlias(BaseModel):
Callers
1
test_encode_model_with_config
Function · 0.85
Calls
no outgoing calls
Tested by
1
test_encode_model_with_config
Function · 0.68
Used in the wild
real call sites across dependent graphs
searching dependent graphs…