-
-
Notifications
You must be signed in to change notification settings - Fork 233
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
Allow to preserve keys order in ConsoleRenderer. Related to #166 #358
Conversation
In case you're waiting for feedback:
|
Thanks for feedback, if you find this PR useful, I can complete missing parts, wanted to be sure this change is welcomed before spending time the completion and docs. Btw, seems to me CI is failing for non-related to my changes reasons:
|
I don't see much value in the behavior myself, but the impact is small enough that I'd merge it to make others happy. ;) I've re-run the tests and now mypy is failing...I tried briefly to recreate the error locally but I couldn't. |
@darklow For what it's worth, I'm also interested in this feature. |
I personally see lot of value organising keys by priority, most important at first, and more secondary later rather relying on alphabet. Also having same length parameters as first helps readability as well. Just pushed three things you mentioned. |
To be clear, I don't disagree. It's just not always clear that the most important keys are merged first and sorting them gives a stable order which is also useful. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
(docs were failing due to a typo in the PR number but I quickly fixed it in abc9312 myself to avoid extra review cycles) |
Thanks for approval and docs fix! |
Pull Request Check List
This is just a friendly reminder about the most common mistakes. Please make sure that you tick all boxes. But please read our contribution guide at least once, it will save you unnecessary review cycles!
If an item doesn't apply to your pull request, check it anyway to make it apparent that there's nothing left to do.
docs/api.rst
by hand.versionadded
,versionchanged
, ordeprecated
directives. Find the appropriate next version in our__init__.py
file..rst
files is written using semantic newlines.If you have any questions to any of the points above, just submit and ask! This checklist is here to help you, not to deter you from contributing!