Skip to content

Commit c720a19

Browse files
Update README: non-finite floats now round-trip
1 parent 385fd42 commit c720a19

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ All yamltrip errors inherit from `YAMLTripError`:
119119
- **No custom Python class serialization.** Values convert to/from
120120
`str`, `int`, `float`, `bool`, `None`, `list`, and `dict` only.
121121
- **UTF-8 only.** Other encodings raise `ParseError`.
122-
- **Non-finite floats rejected.** `float("inf")`, `float("-inf")`, and
123-
`float("nan")` cannot be serialized.
122+
- **Non-finite floats round-trip.** `float("inf")`, `float("-inf")`, and
123+
`float("nan")` map to YAML's `.inf`, `-.inf`, and `.nan`.
124124
- **Integer keys cannot create structures.** `upsert()` with integer path
125125
components can update existing sequence entries but cannot create new
126126
intermediate mappings. Only string keys create new mappings.

0 commit comments

Comments
 (0)