summaryrefslogtreecommitdiff
path: root/representer.py
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2017-06-07 11:46:23 +0200
committerAnthon van der Neut <anthon@mnt.org>2017-06-07 11:46:23 +0200
commit90583069b7efd3744e46ba65499d7090e09d70c3 (patch)
treef8ab1d58fd1492d9c8a4510dadf78b6fbbc0117a /representer.py
parent0cd057811100327978829dcef723d11e78c8efc2 (diff)
downloadruamel.yaml-90583069b7efd3744e46ba65499d7090e09d70c3.tar.gz
fix issue # 123: type annotations0.15.2
mypy needed updating from 0.501 to 0.511, with may different warnings/errors then before
Diffstat (limited to 'representer.py')
-rw-r--r--representer.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/representer.py b/representer.py
index f6eef1b..38fc823 100644
--- a/representer.py
+++ b/representer.py
@@ -61,8 +61,8 @@ class BaseRepresenter(object):
# type: () -> Any
try:
if hasattr(self.dumper, 'typ'):
- return self.dumper.serializer
- return self.dumper._serializer
+ return self.dumper.serializer # type: ignore
+ return self.dumper._serializer # type: ignore
except AttributeError:
return self # cyaml
@@ -527,7 +527,7 @@ class Representer(SafeRepresenter):
value = {}
if bool(args):
value['args'] = args
- value['state'] = state
+ value['state'] = state # type: ignore
return self.represent_mapping(
u'tag:yaml.org,2002:python/object/new:'+class_name, value)