Python stub
#654
Replies: 1 comment 1 reply
-
Sounds like it should run as part of setup.py to autogen on the fly when building the package. What kinds of issues are you seeing in the output? Probably we should fix those in the tool itself or in the nanobind code so it can be fully automated. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was trying to use https://github.com/cansik/nanobind-stubgen to generate python stub for autocomplete and static type check. The stub it generates is not perfect and requires some manual updates. Will open a PR later for this.
I wonder what is the best way to keep the stub up to date with the python file. Should we write our own script to validate them?
The stub file also indicates we can have better numpy support for a lot of our functions, which @wrongbad is doing now.
Beta Was this translation helpful? Give feedback.
All reactions