Skip to content

Commit

Permalink
Merge pull request #36 from dHannasch/sort-keys
Browse files Browse the repository at this point in the history
Allow explicitly specifying that keys shall not be sorted.
  • Loading branch information
smurfix authored Feb 8, 2021
2 parents 477e16b + 1d45a36 commit 79a520b
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions lib/ruyaml/dumper.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,12 @@ def __init__(
explicit_end=None,
version=None,
tags=None,
sort_keys=False,
block_seq_indent=None,
top_level_colon_align=None,
prefix_colon=None,
):
# type: (Any, StreamType, Any, Any, Optional[bool], Optional[int], Optional[int], Optional[bool], Any, Any, Optional[bool], Optional[bool], Any, Any, Any, Any, Any) -> None # NOQA
# type: (Any, StreamType, Any, Any, Optional[bool], Optional[int], Optional[int], Optional[bool], Any, Any, Optional[bool], Optional[bool], Any, Any, Optional[bool], Any, Any, Any) -> None # NOQA
Emitter.__init__(
self,
stream,
Expand Down Expand Up @@ -86,11 +87,12 @@ def __init__(
explicit_end=None,
version=None,
tags=None,
sort_keys=False,
block_seq_indent=None,
top_level_colon_align=None,
prefix_colon=None,
):
# type: (StreamType, Any, Any, Optional[bool], Optional[int], Optional[int], Optional[bool], Any, Any, Optional[bool], Optional[bool], Any, Any, Any, Any, Any) -> None # NOQA
# type: (StreamType, Any, Any, Optional[bool], Optional[int], Optional[int], Optional[bool], Any, Any, Optional[bool], Optional[bool], Any, Any, Optional[bool], Any, Any, Any) -> None # NOQA
Emitter.__init__(
self,
stream,
Expand Down Expand Up @@ -136,11 +138,14 @@ def __init__(
explicit_end=None,
version=None,
tags=None,
sort_keys=False,
block_seq_indent=None,
top_level_colon_align=None,
prefix_colon=None,
):
# type: (StreamType, Any, Any, Optional[bool], Optional[int], Optional[int], Optional[bool], Any, Any, Optional[bool], Optional[bool], Any, Any, Any, Any, Any) -> None # NOQA
# type: (StreamType, Any, Any, Optional[bool], Optional[int], Optional[int], Optional[bool], Any, Any, Optional[bool], Optional[bool], Any, Any, Optional[bool], Any, Any, Any) -> None # NOQA
if sort_keys:
raise NotImplementedError
Emitter.__init__(
self,
stream,
Expand Down

0 comments on commit 79a520b

Please sign in to comment.