Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 4 commits into from Oct 30, 2019
Merged

Conversation

b0g3r
Copy link
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
Member

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

Thanks for your PR.

@b0g3r
Copy link
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.

None yet

2 participants