-
Notifications
You must be signed in to change notification settings - Fork 305
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Python] Manually cast enums while we transition to nanobind.
As we transition from pybind11 to nanobind, the enums defined upstream will be defined by nanobind. This no longer works with automatic casting in the pybind11 APIs we define ourselves. To work around this while we smooth the transition, this updates the APIs to work with plain py::objects and manually cast to the appropriate C API enums in a way that's compatible with both the pybind11 and nanobind versions of enums.
- Loading branch information
1 parent
812cbe9
commit b56dacc
Showing
1 changed file
with
40 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters