Ivan Levkivskyi <[email protected]> added the comment:
There are several corner cases. For example consider this code:
>>> class C:
... del __annotations__
... x: int
Currently this correctly raises NameError, with your replacement it will
instead stick {'x': int} in the module `__annotations__`. I think there may be
other special cases but I don't remember them now.
----------
_______________________________________
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