From 90583069b7efd3744e46ba65499d7090e09d70c3 Mon Sep 17 00:00:00 2001 From: Anthon van der Neut Date: Wed, 7 Jun 2017 11:46:23 +0200 Subject: fix issue # 123: type annotations mypy needed updating from 0.501 to 0.511, with may different warnings/errors then before --- nodes.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'nodes.py') 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 -- cgit v1.2.1