Python type hinting stubs generator?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Python type hinting stubs generator?

Matěj Cepl-2
Hi,

does anybody know about a program which would generate *.pyi
files for PEP-484 for libraries bindings generated by SWIG?

Thanks,

Matěj

--
https://matej.ceplovi.cz/blog/, Jabber: [hidden email]
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
Give your heartache to him. (1Pt 5,7; Mt 11:28-30)

------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Swig-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/swig-user

attachment0 (205 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Python type hinting stubs generator?

William S Fulton
On 14 May 2016 at 13:32, Matěj Cepl <[hidden email]> wrote:
> Hi,
>
> does anybody know about a program which would generate *.pyi
> files for PEP-484 for libraries bindings generated by SWIG?
>
Have you looked at the autodoc feature -
http://swig.org/Doc3.0/Python.html#Python_nn67 ? Possibly some
standard 3rd party tools can use the doc comments that this generates.
Alternatively, as the type information is available and can be
generated into documentation comments, it might not be too hard to
modify SWIG to output the .pyi file.

William

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
Swig-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/swig-user
Loading...