You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 687791d
Browse filesBrowse the repository at this point in the historyBrowse files
Return snake-cased member name from str() on enum values (#135)
* Return snake-cased member name from str() on enum values
Enum members are exposed to Python with upper-cased snake case names
(e.g. FileAccess.READ_WRITE), but str() on an enum value returned the
C# member name from Enum.ToString() (e.g. ReadWrite). str() and
f-string formatting now return the same Python-facing snake-cased name
used to access the member. Flags combinations keep the comma-separated
format with each name snake-cased, and values without a defined member
keep the raw numeric representation.
String equality comparison now accepts the snake-cased name as well,
consistently with str(), while still matching the C# member name.
* Update version to 2.0.61
* Add fast path for single-name enum values in ToPythonString
* Add Lean Python regression tests CI workflow
0 commit comments