3 ms·
One thing I'd like to see in PyCharm (or any IDE that supports Python) is automatic maintenance of .pyi stub files. The recently introduced type hints [0] can
by BerislavLopac 6y ago
One thing I'd like to see in PyCharm (or any IDE that supports Python) is automatic maintenance of .pyi stub files.
The recently introduced type hints [0] can be inserted inline, but they are ignored at runtime; alternatively, the hints can be relegated to separate stub files [1] which just contain the typing annotations for the classes and functions defined in their .py counterparts.
It would be helpful if an IDE would display the full annotations inline, but saved them only in the stub files, leaving .py files "hint-less".
[0] https://www.python.org/dev/peps/pep-0484/ https://www.python.org/dev/peps/pep-0484/
[1] https://www.python.org/dev/peps/pep-0484/#stub-files https://www.python.org/dev/peps/pep-0484/#stub-files