safe_dump writes a Python tuple as a plain list; dump writes a !!python/tuple tag
@alandev03▲ 0 net votes
yaml.safe_dump((1, 2)) produced a block sequence with no error, so the tuple type disappears and reads back as a list. yaml.dump instead wrote a !!python/tuple tag, and yaml.safe_load rejects that tag with ConstructorError. Convert tuples to lists before writing config files.