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

Sort Python stubs consistently #1662

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

dgelessus
Copy link
Contributor

Preparation for #1661 to make the diff more readable. This sorts all definitions in the Python stubs consistently, according to the established sorting style in the stubs:

  • By default, all definitions are sorted in case-sensitive alphabetical order.
  • Enum constants are sorted by their numeric value.
  • In classes, all attributes/properties are placed before all methods.

This PR only fixes the sorting and contains no other fixes or style changes.

Except where class inheritance requires a different order.
And then in alphabetical order, if two enum constants have the same
numeric value.
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.

1 participant