[docs] What's new item for PEP 526 -- Variable annotations (issue 28109)

yselivanov at gmail.com yselivanov at gmail.com
Mon Sep 12 19:14:30 EDT 2016


http://bugs.python.org/review/28109/diff/18524/Doc/whatsnew/3.6.rst
File Doc/whatsnew/3.6.rst (right):

http://bugs.python.org/review/28109/diff/18524/Doc/whatsnew/3.6.rst#newcode297
Doc/whatsnew/3.6.rst:297: attribute ``__annotations__`` of a class or
module.
Should we add an example like this:

   x: int = 'spam'

^ legal from Python's standpoint, but tools will complain?

http://bugs.python.org/review/28109/diff/18524/Doc/whatsnew/3.6.rst#newcode298
Doc/whatsnew/3.6.rst:298: In contrast to variable declarations in
statically typed languages,
A new line before "In contrast.." to make this a separate paragraph?

http://bugs.python.org/review/28109/diff/18524/Doc/whatsnew/3.6.rst#newcode309
Doc/whatsnew/3.6.rst:309: Tools that could benefit from this syntax
include
I'd replace with "Tools that use or will use the new syntax: mypy,
pytype, PyCharm" -- Guido, what do you think?

http://bugs.python.org/review/28109/


More information about the docs mailing list