From 80c2abd341248d58710aa1753c9ef62d9c41d70b Mon Sep 17 00:00:00 2001 From: Anthon van der Neut Date: Tue, 16 Aug 2016 10:08:43 +0200 Subject: addition type info to satisfy schema_salad --- constructor.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'constructor.py') 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 -- cgit v1.2.1