pyyaml
pyyaml copied to clipboard
fix dumping of empty YAMLObject on Python 3.11+
fixes #692
- translate
__getstate__()
returningNone
to empty mapping (arguably wrong, but backward-compatibie) - adds constructor/representer tests to exercise this case