summaryrefslogtreecommitdiff
path: root/constructor.py
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2016-08-16 10:08:43 +0200
committerAnthon van der Neut <anthon@mnt.org>2016-08-16 10:08:43 +0200
commit80c2abd341248d58710aa1753c9ef62d9c41d70b (patch)
tree5a6651f20609b81e30f4bca6475bd0c73addfdfb /constructor.py
parent217a99b6114c03627431a3ea0fdcbc75eb4f5244 (diff)
downloadruamel.yaml-80c2abd341248d58710aa1753c9ef62d9c41d70b.tar.gz
addition type info to satisfy schema_salad0.12.1
Diffstat (limited to 'constructor.py')
-rw-r--r--constructor.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/constructor.py b/constructor.py
index acf6341..c86989a 100644
--- a/constructor.py
+++ b/constructor.py
@@ -194,12 +194,14 @@ class BaseConstructor(object):
@classmethod
def add_constructor(cls, tag, constructor):
+ # type: (Any, Any) -> None
if 'yaml_constructors' not in cls.__dict__:
cls.yaml_constructors = cls.yaml_constructors.copy()
cls.yaml_constructors[tag] = constructor
@classmethod
def add_multi_constructor(cls, tag_prefix, multi_constructor):
+ # type: (Any, Any) -> None
if 'yaml_multi_constructors' not in cls.__dict__:
cls.yaml_multi_constructors = cls.yaml_multi_constructors.copy()
cls.yaml_multi_constructors[tag_prefix] = multi_constructor