Skip to content

Enum class should be iterables #62

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

Closed
Martin-Molinero opened this issue Apr 23, 2025 · 0 comments · Fixed by QuantConnect/pythonnet#101
Closed

Enum class should be iterables #62

Martin-Molinero opened this issue Apr 23, 2025 · 0 comments · Fixed by QuantConnect/pythonnet#101
Labels
bug Something isn't working

Comments

@Martin-Molinero
Copy link
Member

Martin-Molinero commented Apr 23, 2025

[x for x in DataMappingMode] should work as it does for python enums but fails with Runtime Error: 'CLRMetatype' object is not iterable. Related /tmp/HistoryWithDifferentDataMappingModeRegressionAlgorithm.py_agh28ffq:29: error: Name "Enum" is not defined [name-defined]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant