Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[python] Generate type hint stub files
Causes sip to generate the type hinting stub (".pyi") files alongside the generated python modules. This allows editors like PyCharm to become aware of the types of objects returned by functions, making the autocompletion much more useful (e.g. by showing all the members available for a returned type). It also fixes a bunch of incorrect warnings highlighted in PyCharm for things like calling static methods in a class (and, generates some new, but valid, warnings when unexpected types are passed to functions!) TODO: work out why PyCharm can't show the docstrings for methods when the pyi file is present.
- Loading branch information
1 parent
ce72bde
commit e906a2c
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This breaks build with SIP 4.17 (e.g. on Ubuntu 16.04).
-y
option was introduced in SIP 4.18 while (AFAIK), minimal supported version is SIP 4.12.