summaryrefslogtreecommitdiff
path: root/anchor.py
blob: 4d77ad3815715133772da0e6e1b77235e6b98eaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13


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