MCPcopy
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_recursiveFunction · 0.70
test_json_inf_nan_allowFunction · 0.70

Calls

no outgoing calls

Tested by 4

test_recursiveFunction · 0.56
test_json_inf_nan_allowFunction · 0.56