Skip to content
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

multiple --enum-class-locations #157

Closed
wojdyr opened this issue Sep 27, 2023 · 1 comment · Fixed by #158
Closed

multiple --enum-class-locations #157

wojdyr opened this issue Sep 27, 2023 · 1 comment · Fixed by #158
Labels
bug Something isn't working

Comments

@wojdyr
Copy link

wojdyr commented Sep 27, 2023

How to specify multiple enum mappings?
This works for me:

--enum-class-locations 'Ignore:gemmi.ContactSearch'

but when I add a second option:

--enum-class-locations 'Ignore:gemmi.ContactSearch' --enum-class-locations 'M.+:gemmi'

the first one stops working.

@sizmailov sizmailov added the bug Something isn't working label Sep 27, 2023
sizmailov added a commit that referenced this issue Sep 27, 2023
@sizmailov
Copy link
Owner

Thanks for catching this. It should be fixed now.

pybind11-stubgen \
    --enum-class-locations='Ignore:gemmi.ContactSearch'  \
    --enum-class-locations='Asu|MapSetup|CoorFormat|AxisOrder|HydrogenChange:gemmi' \
    --enum-class-locations='Style:gemmi.cif'  \
    gemmi

pybind11_stubgen - [  ERROR] In gemmi.Residue : Invalid expression '<gemmi.Element: X>'
pybind11_stubgen - [  ERROR] In gemmi.Scaling : Invalid expression '<gemmi.ComplexAsuData with 0 values>'
pybind11_stubgen - [WARNING] Raw C++ types/values were found in signatures extracted from docstrings.
Please check the corresponding sections of pybind11 documentation to avoid common mistakes in binding code:
 - https://pybind11.readthedocs.io/en/latest/advanced/misc.html#avoiding-cpp-types-in-docstrings
 - https://pybind11.readthedocs.io/en/latest/advanced/functions.html#default-arguments-revisited

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.

2 participants