diff options
Diffstat (limited to 'anchor.py')
-rw-r--r-- | anchor.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/anchor.py b/anchor.py new file mode 100644 index 0000000..e1b5432 --- /dev/null +++ b/anchor.py @@ -0,0 +1,14 @@ + + + +anchor_attrib = '_yaml_anchor' + +class Anchor(object): + __slots__ = 'value', 'always_dump' + attrib = anchor_attrib + + def __init__(self): + # type: () -> None + self.value = None + self.always_dump = False + |