Python stub location for custom C extension
已回答
Hello,
How to add python stub files for a custom C extension library for Python 2018.3.1? There is a similar post in 2016:
However, the response points to a repo that is deprecated. I tried putting my python stub next to my C extension .so file, and add the location to library root, but that didn't work.
请先登录再写评论。
Hi,
There are two ways to work with custom stubs:
1) Create a package with stubs, mark it as Source root and then use it.
2) Put your stub files in the same directory where the files in which you want to use them are located.