Skip to content

Commit

Permalink
refactor: Always sort labels when serializing
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Apr 22, 2022
1 parent c450a82 commit bd2504b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/griffe/encoders.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def _enum_value(obj):
ParameterKind: _enum_value,
Kind: _enum_value,
DocstringSectionKind: _enum_value,
set: list,
set: sorted,
}


Expand Down

0 comments on commit bd2504b

Please sign in to comment.