Guido van Rossum <gu...@python.org> added the comment:

Honestly I don't think that the exact places where TYPE_COMMENT goes in the 
grammar should be documented as part of the language reference.  For almost all 
of them we should be using type annotation syntax, and IMO for the remaining 
ones we should either add syntax or just move the declaration to a line by 
itself using `var: type` (PEP 526).

Also note that these are irrelevant to most users -- they only come into play 
when ast.parse(type_comments=True) is used, or when code is parsed by a 
separate tool like mypy.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue37083>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to