diff --git a/hyperpyyaml/core.py b/hyperpyyaml/core.py index 52d6443..3a809e9 100644 --- a/hyperpyyaml/core.py +++ b/hyperpyyaml/core.py @@ -608,7 +608,9 @@ def deref(ref, full_tree, copy_mode=False): if attr is not None: node = ruamel.yaml.comments.CommentedSeq() node += [branch, attr] - node.yaml_set_tag("!apply:getattr") + node.yaml_set_ctag( + ruamel.yaml.Tag(suffix="!apply:getattr") + ) return node return branch diff --git a/setup.py b/setup.py index 5561c65..7cc7f84 100644 --- a/setup.py +++ b/setup.py @@ -18,5 +18,5 @@ "License :: OSI Approved :: Apache Software License", ], packages=["hyperpyyaml"], - install_requires=["pyyaml>=5.1", "ruamel.yaml>=0.17.8, <=0.17.28"], + install_requires=["pyyaml>=5.1", "ruamel.yaml>=0.17.28"], )