Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

Alternatively it could be evaluated in global scope. All names are globals 
(non-global names do not work in MyPy in any case), yield and await are 
forbidden outside function. It will still perform run-time check which was an 
initial intention.

----------

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

Reply via email to