Skip to content

✨ Make Python enums PEP-435 compatible - #715

Merged
denialhaag merged 7 commits into
mainfrom
native-enum
Jul 30, 2025
Merged

✨ Make Python enums PEP-435 compatible#715
denialhaag merged 7 commits into
mainfrom
native-enum

Conversation

@denialhaag

@denialhaag denialhaag commented Jul 30, 2025

Copy link
Copy Markdown
Member

Description

This PR exposes enums to Python via pybind11's new enum.Enum-compatible py::native_enum.

Related to munich-quantum-toolkit/core#1075

Checklist:

  • The pull request only contains commits that are focused and relevant to this change.
  • I have added appropriate tests that cover the new/changed functionality.
  • I have updated the documentation to reflect these changes.
  • I have added entries to the changelog for any noteworthy additions, changes, fixes, or removals.
  • I have added migration instructions to the upgrade guide (if needed).
  • The changes follow the project's style guidelines and introduce no new warnings.
  • The changes are fully tested and pass the CI checks.
  • I have reviewed my own code changes.

@denialhaag
denialhaag marked this pull request as ready for review July 30, 2025 16:53
@denialhaag denialhaag added python Anything related to Python code c++ Anything related to C++ code enhancement Anything related to improvements of the existing library minor Changes leading to a minor version increase labels Jul 30, 2025
@denialhaag
denialhaag requested a review from burgholzer July 30, 2025 17:26

@burgholzer burgholzer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍🏼 thanks for also catching some of the small little bugs here and there.

@denialhaag
denialhaag merged commit 97a093f into main Jul 30, 2025
34 checks passed
@denialhaag
denialhaag deleted the native-enum branch July 30, 2025 18:44
@github-project-automation github-project-automation Bot moved this from In Progress to Done in MQT Compilation Jul 30, 2025
@coderabbitai coderabbitai Bot mentioned this pull request Oct 15, 2025
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ Anything related to C++ code enhancement Anything related to improvements of the existing library minor Changes leading to a minor version increase python Anything related to Python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants