Skip to content

Conversation

@Ahajha
Copy link
Contributor

@Ahajha Ahajha commented Jun 18, 2025

This uses nanobind's builtin stub generator tool to generate stubfiles. These can be seen by generating a wheel locally, and these should help with IDE go-to-definitions, though they'll just point at a stub. We can add better type annotations, docs, and argument names to the compiled stubs later.

Working towards #233

@Ahajha Ahajha force-pushed the ahajha/stubgen branch 3 times, most recently from c8dd88a to 355689c Compare June 18, 2025 03:15
@Ahajha Ahajha marked this pull request as draft June 26, 2025 06:12
@Ahajha
Copy link
Contributor Author

Ahajha commented Jun 26, 2025

Going to wait for wjakob/nanobind#1082 - and I think I can actually do this in a better way, we can run this script at install time to just directly put the stubs in the wheel. Will need to give it some thought. Note for self: https://stackoverflow.com/questions/41254902/cmake-run-script-for-install-target

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.

1 participant