diff options
author | larryhastings <larry@hastings.org> | 2021-04-30 03:09:08 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-30 03:09:08 (GMT) |
commit | 2f2b69855d6524e15d12c15ddc0adce629e7de84 (patch) | |
tree | aac6542c35708f45670fc5ae027a9fc1802e8498 /Misc | |
parent | dbe60ee09dc5a624cfb78dff61ecf050a5b3f105 (diff) | |
download | cpython-2f2b69855d6524e15d12c15ddc0adce629e7de84.zip cpython-2f2b69855d6524e15d12c15ddc0adce629e7de84.tar.gz cpython-2f2b69855d6524e15d12c15ddc0adce629e7de84.tar.bz2 |
bpo-43901: Lazy-create an empty annotations dict in all unannotated user classes and modules (#25623)
Change class and module objects to lazy-create empty annotations dicts on demand. The annotations dicts are stored in the object's `__dict__` for backwards compatibility.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2021-04-25-22-50-47.bpo-43901.oKjG5E.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2021-04-25-22-50-47.bpo-43901.oKjG5E.rst b/Misc/NEWS.d/next/Core and Builtins/2021-04-25-22-50-47.bpo-43901.oKjG5E.rst new file mode 100644 index 0000000..2ab93d1 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2021-04-25-22-50-47.bpo-43901.oKjG5E.rst @@ -0,0 +1,3 @@ +Change class and module objects to lazy-create empty annotations dicts on +demand. The annotations dicts are stored in the object's __dict__ for +backwards compatibility. |