mirror of
https://github.com/xcat2/confluent.git
synced 2026-08-04 00:17:01 +00:00
d415fcd97f
PyYAML implements YAML 1.1 implicit typing, so hand edited values like 'yes', '52:54:00:12:34:56', or '2026-07-17' in a YAML dump would be restored as bool, sexagesimal int, or date instead of strings (the date additionally crashing the JSON re-serialization). Load with a SafeLoader subclass that only implicitly types scalars the PyYAML dumper would have quoted when emitting strings, keeping dump/restore round trips faithful.