summaryrefslogtreecommitdiff
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
parent217a99b6114c03627431a3ea0fdcbc75eb4f5244 (diff)
downloadruamel.yaml-80c2abd341248d58710aa1753c9ef62d9c41d70b.tar.gz
addition type info to satisfy schema_salad0.12.1
-rw-r--r--__init__.py4
-rw-r--r--constructor.py2
-rw-r--r--representer.py2
-rw-r--r--resolver.py1
4 files changed, 7 insertions, 2 deletions
diff --git a/__init__.py b/__init__.py
index e37b3b2..76accee 100644
--- a/__init__.py
+++ b/__init__.py
@@ -9,7 +9,7 @@ from __future__ import absolute_import
_package_data = dict(
full_package_name="ruamel.yaml",
- version_info=(0, 12, 0),
+ version_info=(0, 12, 1),
author="Anthon van der Neut",
author_email="a.van.der.neut@ruamel.eu",
description="ruamel.yaml is a YAML parser/emitter that supports roundtrip preservation of comments, seq/map flow style, and map key order", # NOQA
@@ -68,7 +68,7 @@ def _convert_version(tup):
# <
version_info = _package_data['version_info']
-__version__ = _convert_version(version_info)
+__version__ = _convert_version(version_info) # type: ignore
del _convert_version
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
diff --git a/representer.py b/representer.py
index 0071152..6be2e13 100644
--- a/representer.py
+++ b/representer.py
@@ -103,12 +103,14 @@ class BaseRepresenter(object):
@classmethod
def add_representer(cls, data_type, representer):
+ # type: (Any, Any) -> None
if 'yaml_representers' not in cls.__dict__:
cls.yaml_representers = cls.yaml_representers.copy()
cls.yaml_representers[data_type] = representer
@classmethod
def add_multi_representer(cls, data_type, representer):
+ # type: (Any, Any) -> None
if 'yaml_multi_representers' not in cls.__dict__:
cls.yaml_multi_representers = cls.yaml_multi_representers.copy()
cls.yaml_multi_representers[data_type] = representer
diff --git a/resolver.py b/resolver.py
index 5c59377..366d8ff 100644
--- a/resolver.py
+++ b/resolver.py
@@ -36,6 +36,7 @@ class BaseResolver(object):
@classmethod
def add_implicit_resolver(cls, tag, regexp, first):
+ # type: (Any, Any, Any) -> None
if 'yaml_implicit_resolvers' not in cls.__dict__:
cls.yaml_implicit_resolvers = cls.yaml_implicit_resolvers.copy()
if first is None: