summaryrefslogtreecommitdiff
path: root/constructor.py
diff options
context:
space:
mode:
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