3 ms·
Whoa, that's neat! I had no idea! Does PyCharm support these? Like if I write the stub files manually, will type hints and autocompletion work correctly in the
by DonaldPShimoda 7y ago
Whoa, that's neat! I had no idea!
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.
- BerislavLopac 7y agoAt 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.