diff options
Diffstat (limited to 'representer.py')
-rw-r--r-- | representer.py | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/representer.py b/representer.py index f0ad89f..1b5185a 100644 --- a/representer.py +++ b/representer.py @@ -15,6 +15,17 @@ from ruamel.yaml.scalarstring import ( DoubleQuotedScalarString, PlainScalarString, ) +from ruamel.yaml.comments import ( + CommentedMap, + CommentedOrderedMap, + CommentedSeq, + CommentedKeySeq, + CommentedKeyMap, + CommentedSet, + comment_attrib, + merge_attrib, + TaggedScalar, +) from ruamel.yaml.scalarint import ScalarInt, BinaryInt, OctalInt, HexInt, HexCapsInt from ruamel.yaml.scalarfloat import ScalarFloat from ruamel.yaml.scalarbool import ScalarBoolean @@ -644,18 +655,6 @@ Representer.add_multi_representer(object, Representer.represent_object) Representer.add_multi_representer(type, Representer.represent_name) -from ruamel.yaml.comments import ( - CommentedMap, - CommentedOrderedMap, - CommentedSeq, - CommentedKeySeq, - CommentedKeyMap, - CommentedSet, - comment_attrib, - merge_attrib, - TaggedScalar, -) # NOQA - class RoundTripRepresenter(SafeRepresenter): # need to add type here and write out the .comment |