-
Notifications
You must be signed in to change notification settings - Fork 242
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
SWIG generator of PEP-484 type hint stub files #220
Comments
You'd have to open a SWIG feature request. (Or contribute one yourself.) This is a special case though of something we are keeping track of here: python/mypy#1240 -- for example we've actually got a use case for a similar thing for Protocol Buffers (protobuf). |
I have asked for it on the SWIG list already (http://thread.gmane.org/gmane.comp.programming.swig/21112), but I just thought that you may be able to push from the other side as well ;). |
Presumably you wouldn't be happy running stubgen on the SWIG output (plus
that currently doesn't add any types to the output).
|
Not sure what you mean as |
Oh, sorry. Doesn't it generate Python glue? If it's just generating C, it |
It doesn't. It basically generates the C code (see attached) which compiles to Python-compatible binary module. Anyway, I will continue to pursue this on the Swig list. |
Just for the record, there is swig/swig#735 |
I know this is probably wrong place to ask, so I am expecting to be redirected somewhere else, but it would be awfully nice to have a tool, which would be able to generate
*.pyi
files for the Python bindings generated by SWIG.The text was updated successfully, but these errors were encountered: