Ivan Levkivskyi <levkivs...@gmail.com> added the comment:

Hm, I think this should be allowed. The formulation in the docs is not very 
clear, but the wording in the PEP clarifies the intention. Indeed, only 
annotations at the same scope with global declarations should be prohibited.

So I think this is a bug.

----------

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

Reply via email to