mirror of
https://github.com/python/cpython
synced 2024-09-20 15:41:39 +00:00
2f2b69855d
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.
6 lines
81 B
Python
6 lines
81 B
Python
# This ann_module isn't for test_typing,
|
|
# it's for test_module
|
|
|
|
a:int=3
|
|
b:str=4
|