[issue43901] Add an empty annotations dict to all unannotated classes and modules

Larry Hastings report at bugs.python.org
Wed Apr 21 19:34:29 EDT 2021


Larry Hastings <larry at hastings.org> added the comment:

> * Never modify o.__annotations__.

Let me revise that to:

* If o.__annotations__ is a dict, never modify the contents of that dict.

----------

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


More information about the Python-bugs-list mailing list