From 82a72a27c6ba866878fdebe7a70bd4a86f54e81d Mon Sep 17 00:00:00 2001 From: Anthon van der Neut Date: Mon, 29 Oct 2018 14:14:33 +0100 Subject: moved Anchor to own module this prevents future circular imports --- anchor.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 anchor.py (limited to 'anchor.py') 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 + -- cgit v1.2.1