summaryrefslogtreecommitdiff
path: root/comments.py
Commit message (Collapse)AuthorAgeFilesLines
* fix for issue 3870.17.8Anthon van der Neut2021-06-091-5/+5
| | | | | tagged objects that have a templated (idNNN) anchor, did get the anchor added explicitly, resulting potentially in double anchors
* fix 385 (missing attribute) and mypy issues0.17.6Anthon van der Neut2021-05-311-9/+16
|
* Fix type annotationsJochen Sprickerhof2021-05-301-1/+1
| | | | column was added in fd2ef3 but it seems unused so not sure about the type.
* fix for issue 3840.17.5Anthon van der Neut2021-05-301-11/+13
| | | | aliased scalars in !!set would not round trip with ?
* * extend EOL token handlingAnthon van der Neut2021-05-061-17/+84
| | | | * extending comment
* removed (object), prepare new RTScannerAnthon van der Neut2021-04-191-9/+25
|
* remove support for 2.7, prepare for f-strings0.17.0Anthon van der Neut2021-03-261-8/+81
|
* remove python 2 specific codeAnthon van der Neut2021-03-091-75/+14
| | | | add future deprecation warning to old style functions
* fix #371Anthon van der Neut2021-03-051-1/+4
|
* corrections on update()Anthon van der Neut2020-09-221-5/+5
|
* fix issue 359Anthon van der Neut2020-09-221-7/+9
|
* fix issue with mypy, dumping lit scalar in sequence0.16.7Anthon van der Neut2020-01-301-1/+1
|
* https://stackoverflow.com/a/58707111/1307905Anthon van der Neut2019-11-051-3/+5
|
* mypy, split contruct_object0.16.3Anthon van der Neut2019-08-151-6/+7
| | | | | | | | fixes issue #306 *When this change indeed resolves your problem, please **Close** this issue*. *(You can do so using the WorkFlow pull-down (close to the top right of this page))*
* regenerate _ruamel_yaml.c with newest cython for 3.8.0b20.15.98Anthon van der Neut2019-07-091-1/+0
| | | | fixes issue #296
* pass memo on to deepcopyAnthon van der Neut2019-06-231-7/+8
|
* fix update CommentedMap with list of tuples0.15.90Anthon van der Neut2019-04-041-1/+6
| | | | | | | | fixes issue #282 *When this change indeed resolves your problem, please **Close** this issue*. *(You can do so using the WorkFlow pull-down (close to the top right of this page))*
* fixes issue #269 CommentedMap.copy() not returning CommentedMap0.15.84Anthon van der Neut2019-01-071-2/+3
| | | | | *When this change indeed resolves your problem, please **Close** this issue*. *(You can do so using the WorkFlow pull-down (close to the top right of this page))*
* preserve anchors on scalars, on tagged objects0.15.82Anthon van der Neut2018-12-281-3/+3
| | | | | | | | fixes issue #63 fixes issue #266 *When this change indeed resolves your problem, please **Close** this issue*. *(You can do so using the WorkFlow pull-down (close to the top right of this page))*
* work around issue 6112 in mypyAnthon van der Neut2018-12-281-7/+7
|
* roundtrip anchors/aliases on str, int, floatAnthon van der Neut2018-12-271-2/+2
|
* moved Anchor to own moduleAnthon van der Neut2018-10-291-14/+4
| | | | this prevents future circular imports
* fix issue #242 cannot instantiate mapping with parametersAnthon van der Neut2018-09-261-1/+1
| | | | | | | Initialisation order incorrect *When this change indeed resolves your problem, please **Close** this issue*. *(You can do so using the WorkFlow pull-down (close to the top right of this page))*
* fix #233 fix #231 reverting to subclass dict resp list for CommentedMap/Seq0.15.70Anthon van der Neut2018-09-211-23/+27
| | | | | | | | | | had to reimplement round-trippable mappings with merge-keys to get both JSON dumping and casting using dict(**some_commented_map) to work. (JSON dump of merge maps not tested) *When this change indeed resolves your problem, please **Close** this issue*. *(You can do so using the WorkFlow pull-down (close to the top right of this page))*
* revert CommentedMap to ordereddict subclassAnthon van der Neut2018-09-211-95/+61
| | | | reimplemented merged dictionaries, they now have _ok (own key) set attribute
* add key and reverse parameter to CommentedSeq.sort()Anthon van der Neut2018-09-011-4/+8
| | | | suggested via email by Jannik Klemm
* allow debugging of CommentedSeqAnthon van der Neut2018-08-181-0/+4
|
* updates for mypy and remove print statementsAnthon van der Neut2018-08-181-7/+15
|
* fix for 2.7, ruamel.ordereddict expects ordered inputAnthon van der Neut2018-08-171-1/+7
|
* allow simple mappings as mapping keysAnthon van der Neut2018-08-161-2/+90
|
* fix issue #221 .__add__() and .sort() no longer available on CommentedSeq0.15.57Anthon van der Neut2018-08-151-0/+13
| | | | | | | | | CommentedSeq + list used to return a list, it now again does so. sort never worked correctly, it should now (i.e. move the EOL comments along). *When this change indeed resolves your problem, please **Close** this issue*. *(You can do so using the WorkFlow pull-down (close to the top right of this page))*
* fix issue #176 CommentedSeq does not support slice assignmentAnthon van der Neut2018-08-141-5/+5
| | | | | | | | | | | I implemented slicing in an intermediate baseclass ruamel.yaml.compat.MutableSliceableSequence, on top of collections.{,abc.}.MutableSequence. I'm not sure if I tested all possibilities but CommentedSeq **should** now support all (extended) slicing operations. Test were added in _test/test_issues.py *When this change indeed resolves your problem, please **Close** this issue*. *(You can do so using the WorkFlow pull-down (close to the top right of this page))*
* reimplement CommentedSeq to subclass MutableSequence instead of listAnthon van der Neut2018-08-141-34/+53
| | | | re issue #176
* fix issue #184 adding eol commentAnthon van der Neut2018-08-131-1/+4
| | | | | | | | | this was not possible without explicit column specification and no neighbouring comment was available. Thanks for reporting *When this change indeed resolves your problem, please **Close** this issue*. *(You can do so usingthe WorkFlow pull-down (close to the top right of this page)*
* get rid of mypy error not MRO-ing subclass MutableSet + MutableMapAnthon van der Neut2018-08-121-2/+18
|
* fix issue #196 loosing items on cast to dict0.15.52Anthon van der Neut2018-08-091-39/+50
| | | | | *When this change indeed resolves your problem, please **Close** this issue*. *(You can do so usingthe WorkFlow pull-down (close to the top right of this page)*
* adding test for issue 196Anthon van der Neut2018-08-091-21/+20
|
* fix issue #213 : CommentedMap.copy() incomplete resultAnthon van der Neut2018-08-081-0/+7
| | | | | | | | Only the "native" keys were copied, not any of the merged keys. Now .copy() is implemented and a "flattened" new dict is returned. *When this change indeed resolves your problem, please **Close** this issue*. *(You can do so usingthe WorkFlow pull-down (close to the top right of this page)*
* added context manager, mypy cleanup (w. Optional) added tests0.15.50Anthon van der Neut2018-08-051-2/+2
|
* Apply oitnb and mypy 0.620, then make everything work again0.15.48Anthon van der Neut2018-08-031-26/+54
|
* flake8-bugbearAnthon van der Neut2018-08-011-3/+3
|
* Resolving issue #210 deprecation warning in python 3.7Anthon van der Neut2018-07-281-1/+5
| | | | | *When this change indeed resolves your problem, please **Close** this issue*. *(You can do so usingthe WorkFlow pull-down (close to the top right of this page)*
* re-added test to make sure C-Compiler is available0.15.41Anthon van der Neut2018-06-271-11/+11
|
* Fix typosAndrey Somov2018-05-211-1/+1
|
* round-trip support for tagged scalars0.15.33Anthon van der Neut2017-08-311-0/+6
| | | | | Inspired by Matthew Patton's question on StackOverflow: https://stackoverflow.com/a/45967047/1307905
* fix comment dumping0.15.31Anthon van der Neut2017-08-151-4/+6
|
* issue #61: merge of merge cannot be __repr__-ed (reported by Tal Liron)0.15.28Anthon van der Neut2017-08-131-2/+2
| | | | **When this change resolves your problem, then please close this issue**
* fix issue #62: not allowing : or ? in flow style plain scalar0.15.27Anthon van der Neut2017-08-131-2/+3
| | | | also fix list withing list comment dropping, as it happened to occur in the example
* fix lists within lists with commentsAnthon van der Neut2017-08-131-2/+3
| | | | had to keep emit the comment and mark it for having been emitted, then reset on next run (as with maps)
* fix issue #102: comment disappear after empty flow-style sequenceAnthon van der Neut2017-08-101-0/+20
| | | | **When this fix solves the reported problem, please close this issue.**