summaryrefslogtreecommitdiff
path: root/nodes.py
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2017-06-07 11:46:23 +0200
committerAnthon van der Neut <anthon@mnt.org>2017-06-07 11:46:23 +0200
commit90583069b7efd3744e46ba65499d7090e09d70c3 (patch)
treef8ab1d58fd1492d9c8a4510dadf78b6fbbc0117a /nodes.py
parent0cd057811100327978829dcef723d11e78c8efc2 (diff)
downloadruamel.yaml-90583069b7efd3744e46ba65499d7090e09d70c3.tar.gz
fix issue # 123: type annotations0.15.2
mypy needed updating from 0.501 to 0.511, with may different warnings/errors then before
Diffstat (limited to 'nodes.py')
-rw-r--r--nodes.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/nodes.py b/nodes.py
index 96f3190..8babbd7 100644
--- a/nodes.py
+++ b/nodes.py
@@ -99,3 +99,10 @@ class SequenceNode(CollectionNode):
class MappingNode(CollectionNode):
__slots__ = ('merge', )
id = 'mapping'
+
+ def __init__(self, tag, value, start_mark=None, end_mark=None,
+ flow_style=None, comment=None, anchor=None):
+ # type: (Any, Any, Any, Any, Any, Any, Any) -> None
+ CollectionNode.__init__(self, tag, value, start_mark, end_mark,
+ flow_style, comment, anchor)
+ self.merge = None