News for hackers. Stuff that matters.
Re:Static types in Python by tabbott on Thursday October 13, 2016 @04:10PM (#12703644)
Original author here; I'm happy to answer any questions about the mypy experience!
Re:Static types in Python by thristian on Thursday October 13, 2016 @04:40PM (#12703852)
Does Sphinx (or any other automated-documentation tool) read the MyPy annotations, or would I have to type them in twice, in different syntaxes, if I wanted types in my docs + linting?

Or does type documentation not matter that much, once it's being enforced by a tool?

Re:Static types in Python by RubyPinch on Thursday October 13, 2016 @05:08PM (#12704039)
there is at least this, others might also exist https://pypi.python.org/pypi/sphinx-autodoc-annotation
Re:Static types in Python by tantalor on Thursday October 13, 2016 @04:16PM (#12703692)
Why not put type annotations in docstrings?
Re:Static types in Python by tabbott on Thursday October 13, 2016 @04:30PM (#12703783)
There's some discussion of this in PEP-484: https://www.python.org/dev/peps/pep-0484/#other-backwards-co....
Re:Static types in Python by muzakthings on Thursday October 13, 2016 @06:58PM (#12704857)
Does mypy see any performance improvements over vanilla python (because types are static)?
Re:Static types in Python by detaro on Thursday October 13, 2016 @07:02PM (#12704883)
No, the interpreters make no use of annotations.