Skip to content

C# enums to work as proper enums in Python#103

Merged
jhonabreul merged 10 commits intoQuantConnect:masterfrom
jhonabreul:feature-csharp-enums
Jul 31, 2025
Merged

C# enums to work as proper enums in Python#103
jhonabreul merged 10 commits intoQuantConnect:masterfrom
jhonabreul:feature-csharp-enums

Conversation

@jhonabreul
Copy link
Collaborator

Avoid converting C# enums to long in Python and make them work as actual C# enums in Python.

Part of QuantConnect/Lean#8627

Avoid converting C# enums to long in Python
Compare based on the underlying int value
Make C# enums work as singletons in Python so that the `is` identity comparison operator works for C# enums as well.
@jhonabreul jhonabreul merged commit 5f36aa7 into QuantConnect:master Jul 31, 2025
0 of 21 checks passed
@jhonabreul jhonabreul deleted the feature-csharp-enums branch July 31, 2025 15:59
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.

2 participants