diff options
author | Anthon van der Neut <anthon@mnt.org> | 2020-01-30 10:59:27 +0100 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2020-01-30 10:59:27 +0100 |
commit | 10c6a6b07ee92ee797460fbe8207abe0669e25bf (patch) | |
tree | 7e0c6e2bb95065c90b5a02d042e4c128ae82f158 /anchor.py | |
parent | 1d7c8bd627dff124687111dc2125e9f1588f2f49 (diff) | |
download | ruamel.yaml-10c6a6b07ee92ee797460fbe8207abe0669e25bf.tar.gz |
fix issue with mypy, dumping lit scalar in sequence0.16.7
Diffstat (limited to 'anchor.py')
-rw-r--r-- | anchor.py | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1,4 +1,6 @@ +if False: # MYPY + from typing import Any, Dict, Optional, List, Union, Optional, Iterator # NOQA anchor_attrib = '_yaml_anchor' @@ -13,5 +15,6 @@ class Anchor(object): self.always_dump = False def __repr__(self): - ad = ", (always dump)" if self.always_dump else "" - return "Anchor({!r}{})".format(self.value, ad) + # type: () -> Any + ad = ', (always dump)' if self.always_dump else "" + return 'Anchor({!r}{})'.format(self.value, ad) |