diff options
author | Anthon van der Neut <anthon@mnt.org> | 2018-09-26 22:04:31 +0200 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2018-09-26 22:04:31 +0200 |
commit | 4f2694580a82e11b5ae13aa3cb1c177af5bb8827 (patch) | |
tree | df495d91d5b56357ebbe02b96578b2ead7d826b1 /comments.py | |
parent | 7a95315755802efe70f79f5d87ca0be321802752 (diff) | |
download | ruamel.yaml-4f2694580a82e11b5ae13aa3cb1c177af5bb8827.tar.gz |
fix issue #242 cannot instantiate mapping with parameters
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))*
Diffstat (limited to 'comments.py')
-rw-r--r-- | comments.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/comments.py b/comments.py index b54f45a..02a98b5 100644 --- a/comments.py +++ b/comments.py @@ -644,9 +644,9 @@ class CommentedMap(MutableMapping, ordereddict, CommentedBase): def __init__(self, *args, **kw): # type: (Any, Any) -> None - ordereddict.__init__(self, *args, **kw) # type: ignore self._ok = set() # type: MutableSet[Any] # own keys self._ref = [] # type: List[CommentedMap] + ordereddict.__init__(self, *args, **kw) # type: ignore def _yaml_add_comment(self, comment, key=NoComment, value=NoComment): # type: (Any, Optional[Any], Optional[Any]) -> None |