Skip to content

Add sort_keys param to all dump-like functions in PyYAML (yaml) lib#3417

Merged
JelleZijlstra merged 4 commits into
python:masterfrom
b0g3r:master
Oct 30, 2019
Merged

Add sort_keys param to all dump-like functions in PyYAML (yaml) lib#3417
JelleZijlstra merged 4 commits into
python:masterfrom
b0g3r:master

Conversation

@b0g3r
Copy link
Copy Markdown
Contributor

@b0g3r b0g3r commented Oct 28, 2019

New sort_keys parameter In PyYAML (yaml) library was added for python2 and python3 in 5.1 version (PR with discussion, actual commit)

I tried carefully add sort_keys to all changed methods and classes. Should I add strict typing, like sort_keys: bool = ... instead of sort_keys=... or it's a bad idea?

@JelleZijlstra
Copy link
Copy Markdown
Member

Yes, strict typing is a good idea—that's what we're here for!

Thanks for your PR.

@b0g3r
Copy link
Copy Markdown
Contributor Author

b0g3r commented Oct 28, 2019

@JelleZijlstra Thank you for the fast feedback! I add stricter bool typing in the last commit 🙏

@JelleZijlstra JelleZijlstra merged commit aae01b8 into python:master Oct 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants