Skip to content

Conversation

@rykerfish
Copy link
Contributor

This adds module stubs from nanobind (relevant docs here). linters should be able to use these to provide better autocomplete using the docstrings we already provide.

Here's it working in vscode:
image

Before, it would just look like this and not provide the extra tooltip:
image

@RaulPPelaez would I need to do anything extra to the feedstock to be able to ship this functionality to versions of libMobility installed via conda?

Give it a try and let me know what you think! I don't know if it works for all workflows, but it worked for me immediately in vscode with the standard Python linting plugins.

@github-actions
Copy link

Linter reported no issues

All Python files are correctly formatted with Black.

@github-actions
Copy link

Linter reported no issues

All C/C++ files are correctly formatted with clang-format.

@RaulPPelaez
Copy link
Contributor

That is awesome. Did not know you could do that. AFAIK this should be automatically included in the next conda automatic release, but tbh you will have to try and see.

@RaulPPelaez RaulPPelaez merged commit 8707116 into main Feb 11, 2026
3 checks passed
@RaulPPelaez RaulPPelaez deleted the stubgen branch February 11, 2026 09:43
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.

2 participants