Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/pydantic/pydantic
/ Bar
Class
Bar
tests/test_json_schema.py:199–201 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
197
b: float
198
199
class
Bar(BaseModel):
200
a: int
201
b: Optional[Foo] = None
202
203
assert Bar.model_json_schema() == {
204
'type'
:
'object'
,
Callers
nothing calls this directly
Calls
1
Foo
Class · 0.70
Tested by
no test coverage detected