Re:Things to use in Python 3
by BerislavLopac on Thursday May 16, 2019 @07:23AM
(#19927952)
At the moment, you can click on a (say) class definition, and, if it has the corresponding entry in the pyi file, it will open it. But I would like it to be a bit more integrated.
Another advantage is that you can use pyi files for static checking, but remove them when deploying the application.
Does PyCharm support these? Like if I write the stub files manually, will type hints and autocompletion work correctly in the main file? This could be a great way to reduce the amount of syntactic overhead, at least in function definitions and top-level code.