Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/pydantic/pydantic
/ R
Class
R
tests/test_json.py:517–518 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
515
)
516
def
test_json_inf_nan_allow(float_value, encoded_str):
517
class
R(RootModel[float]):
518
model_config = ConfigDict(ser_json_inf_nan=
'strings'
)
519
520
r = R(float_value)
521
r_encoded = f
'"{encoded_str}"'
Callers
3
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
1
ConfigDict
Class · 0.90
Tested by
3
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