[issue42837] Symbol table incorrectly identifies code as a generator, when 'yield' occurs in an annotation

Serhiy Storchaka report at bugs.python.org
Wed Jan 6 06:29:05 EST 2021


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

Then why not fix the compiler?

As I understand, it is not clear yet what behavior should be, and discussing it is the matter of issue42725. Any changes before the decision be made are preliminary.

It is very likely that the decision will be in favor of ignoring annotations. In that case your PR or even more radical changes can be merged.

----------

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


More information about the Python-bugs-list mailing list