diff options
author | Anthon van der Neut <anthon@mnt.org> | 2021-06-09 15:29:00 +0200 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2021-06-09 15:29:00 +0200 |
commit | 5a5b603289bfd9b9e1bcd57618cf8694bd0ec2aa (patch) | |
tree | 3244f3c128fbb54bfc57e06f309a3ea333a62938 /scalarbool.py | |
parent | 148949be5260969391a5b993cbb3fb602bed55a6 (diff) | |
download | ruamel.yaml-5a5b603289bfd9b9e1bcd57618cf8694bd0ec2aa.tar.gz |
fix for issue 3870.17.8
tagged objects that have a templated (idNNN) anchor, did get the anchor added explicitly, resulting
potentially in double anchors
Diffstat (limited to 'scalarbool.py')
-rw-r--r-- | scalarbool.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scalarbool.py b/scalarbool.py index 3862464..60242b4 100644 --- a/scalarbool.py +++ b/scalarbool.py @@ -20,8 +20,8 @@ __all__ = ['ScalarBoolean'] class ScalarBoolean(int): def __new__(cls, *args, **kw): # type: (Any, Any, Any) -> Any - anchor = kw.pop('anchor', None) # type: ignore - b = int.__new__(cls, *args, **kw) # type: ignore + anchor = kw.pop('anchor', None) + b = int.__new__(cls, *args, **kw) if anchor is not None: b.yaml_set_anchor(anchor, always_dump=True) return b |