cpython/Lib/test/ann_module4.py
larryhastings 2f2b69855d
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.
2021-04-29 20:09:08 -07:00

6 lines
81 B
Python

# This ann_module isn't for test_typing,
# it's for test_module
a:int=3
b:str=4