Skip to content

Conversation

@jhonabreul
Copy link
Collaborator

Description

Some fixes in Python models and algorithms for new C# enums handling in Pythonnet introduced in QuantConnect/pythonnet#103

Related Issue

Closes #8627

Motivation and Context

Allow using C# enums as enums instead of integers in Python

Requires Documentation Change

How Has This Been Tested?

Existing test suite

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • Refactor (non-breaking change which improves implementation)
  • Performance (non-breaking change which improves performance. Please add associated performance test and results)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Non-functional change (xml comments/documentation/etc)

Checklist:

  • My code follows the code style of this project.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • My branch follows the naming convention bug-<issue#>-<description> or feature-<issue#>-<description>

@jhonabreul jhonabreul merged commit 84b991b into QuantConnect:master Jul 31, 2025
6 of 8 checks passed
@jhonabreul jhonabreul deleted the feature-8627-csharp-enums-in-python branch July 31, 2025 20:53
@ArthurAsenheimer
Copy link
Contributor

@jhonabreul Thank you!

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.

Python Enum Functionality in LEAN

3 participants