[issue41967] Handle annotations in the parser to avoid the need for roundtrip

Pablo Galindo Salgado report at bugs.python.org
Wed Oct 7 16:41:38 EDT 2020


Pablo Galindo Salgado <pablogsal at gmail.com> added the comment:

> Hm, this buffer thing is not what I had expected. I think it's a show-stopper -- if we don't reproduce spaces exactly.

Hummm, I think I may have not clarified this in my previous messages: the space issue is an aesthetic one. The AST generated with and without spaces is the same. As far as I understand get_type_hints() will give the same result in all cases being considered.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41967>
_______________________________________


More information about the Python-bugs-list mailing list