-
Notifications
You must be signed in to change notification settings - Fork 344
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
WIP: Fix stubgen #1254
base: production
Are you sure you want to change the base?
WIP: Fix stubgen #1254
Conversation
The current state is this
|
This one can be removed by 8bdb91f, but I'm not sure if such [Edit] I kindof mean by |
7a7df6f is much cleaner (see https://github.com/rdiankov/openrave/commits/fixStubgen_binderPtr) |
this one got fixed too |
further fix generated the very first typestub |
@felixvd @gywn
Background
We would like to get type stub for openravepy. However we have some issues.
For example, on production HEAD, GetManipulator is like this:
With this patch, GetManipulator is like this:
You can see the difference in return type. And latter form is required for pybind11-stubgen. This is achieved by declaring Manipulator class before Robot.GetManipulator method declaration in pybind11 entrypoint.
Result
I have fixed most order, but some cannot be fixed (yet).
When there are mutual dependency, this method can be used:
However, if the files are separated, such dependency cannot be written.