Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/pydantic/pydantic
/ M
Class
M
tests/test_json.py:528–530 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
526
assert R.model_validate_json(r_encoded) == r
527
528
class
M(BaseModel):
529
f: float
530
model_config = R.model_config
531
532
m = M(f=float_value)
533
m_encoded = f
'{{"f":{r_encoded}}}'
Callers
4
test_recursive
Function · 0.70
test_json_inf_nan_allow
Function · 0.70
test_json_bytes_base64_round_trip
Function · 0.70
test_json_bytes_hex_round_trip
Function · 0.70
Calls
no outgoing calls
Tested by
4
test_recursive
Function · 0.56
test_json_inf_nan_allow
Function · 0.56
test_json_bytes_base64_round_trip
Function · 0.56
test_json_bytes_hex_round_trip
Function · 0.56