News for hackers. Stuff that matters.
Re:Things to use in Python 3 by DonaldPShimoda on Wednesday May 15, 2019 @12:44PM (#19921207)
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.

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.