16 Jan
2021
16 Jan
'21
6:09 p.m.
On 17/01/21 12:31 pm, Larry Hastings wrote:
Consider the best practice for getting class annotations, example here from Lib/dataclasses.py:
cls_annotations = cls.__dict__.get('__annotations__', {})
Isn't that going to get broken anyway? It won't trigger the calling of __co_annotations__. -- Greg