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
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/PPDBI3J4SUJ6NCWRORWYAOKYW4IM3HMQ/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to