diff options
author | Anthon van der Neut <anthon@mnt.org> | 2017-06-07 11:46:23 +0200 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2017-06-07 11:46:23 +0200 |
commit | 90583069b7efd3744e46ba65499d7090e09d70c3 (patch) | |
tree | f8ab1d58fd1492d9c8a4510dadf78b6fbbc0117a /representer.py | |
parent | 0cd057811100327978829dcef723d11e78c8efc2 (diff) | |
download | ruamel.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.py | 6 |
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) |