diff options
author | Anthon van der Neut <anthon@mnt.org> | 2018-08-18 12:15:36 +0200 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2018-08-18 12:15:36 +0200 |
commit | f3d545e81e953cf0ddd6cac4f103d05047610d39 (patch) | |
tree | b05a8dcf649eff58c7e2b0a28fc56aca09a15aaa /comments.py | |
parent | ba6beb48c620f861fcc120e272bf4b6798aff919 (diff) | |
download | ruamel.yaml-f3d545e81e953cf0ddd6cac4f103d05047610d39.tar.gz |
allow debugging of CommentedSeq
Diffstat (limited to 'comments.py')
-rw-r--r-- | comments.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/comments.py b/comments.py index 87429d9..2ca2d79 100644 --- a/comments.py +++ b/comments.py @@ -507,6 +507,10 @@ class CommentedSeq(MutableSliceableSequence, CommentedBase): if old_index in itm: self.ca.items[idx] = itm[old_index] + def __repr__(self): + # type: () -> Any + return self._lst.__repr__() + class CommentedKeySeq(tuple, CommentedBase): """This primarily exists to be able to roundtrip keys that are sequences""" |