File "C:\Repos\@Venv\myproj-cpy3.11-1\Lib\site-packages\ruamel\yaml\representer.py", line 1090, in represent_yaml_object anchor = state.pop(Anchor.attrib, None) ^^^ AttributeError: 'NoneType' object has no attribute 'pop' If I use 'bare' tuple instead of Loc(), error doesn't ap...
... or, you need to safely read untrusted YAML that represents Python objects: !!python/object/new:module.Class { attribute: value } >>> yaml.safe_load(text) Traceback (most recent call last): ... yaml.constructor.ConstructorError: could not determine a constructor for the tag 'tag:ya...