diff options
author | Anthon van der Neut <anthon@mnt.org> | 2018-12-27 23:37:32 +0100 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2018-12-27 23:37:32 +0100 |
commit | 25b7008eb7721763fe0ea10cc23abeed2c1ef780 (patch) | |
tree | 6ea378f32bd05947a84bcdceedc1d90418aca13f /comments.py | |
parent | cdb3ca654eb8f6ef734b82bf9130045ce6d85e45 (diff) | |
download | ruamel.yaml-25b7008eb7721763fe0ea10cc23abeed2c1ef780.tar.gz |
roundtrip anchors/aliases on str, int, float
Diffstat (limited to 'comments.py')
-rw-r--r-- | comments.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/comments.py b/comments.py index 7048772..5068d84 100644 --- a/comments.py +++ b/comments.py @@ -375,7 +375,7 @@ class CommentedBase(object): raise NotImplementedError -class CommentedSeq(MutableSliceableSequence, list, CommentedBase): +class CommentedSeq(MutableSliceableSequence, list, CommentedBase): # type: ignore __slots__ = (Comment.attrib, '_lst') def __init__(self, *args, **kw): @@ -508,7 +508,7 @@ class CommentedSeq(MutableSliceableSequence, list, CommentedBase): return list.__repr__(self) -class CommentedKeySeq(tuple, CommentedBase): +class CommentedKeySeq(tuple, CommentedBase): # type: ignore """This primarily exists to be able to roundtrip keys that are sequences""" def _yaml_add_comment(self, comment, key=NoComment): |