Ivan Levkivskyi <[email protected]> added the comment:
There is also another corner case to consider:
class C:
exec('x: int')
assert C.__annotations__ == {'x': int}
assert __annotations__ == {}
I am not sure this one will be covered correctly.
But the main argument here is speed I think.
Let us see what others think about this.
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue32550>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com