summaryrefslogtreecommitdiff
path: root/anchor.py
blob: e1b54325ee118dd25d59f3ed389316bcfeca0e9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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