On Fri, Nov 26, 2021 at 5:47 PM Jim J. Jewett <jimjjew...@gmail.com> wrote:
> Steven D'Aprano wrote: > > Maybe PEP 563 could include a decorator in the typing module to > > destringify all the annotations in a class or function? > > If it were in an annotations module, that would probably be sufficient. > > If it is in typing, then it is a very heavyweight dependency -- As of Py 3.10 there is: inspect.get_annotations one could write a decorator around that, but I think the real question is when do you want the annotations to be "finalized"? -CHB heavy enough that even the people actually using that module for > development (and not for production runs) are worried about the costs. If > the costs of the typing module are that high, it is not acceptable to > impose them on people not otherwise using the module. > > -jJ > _______________________________________________ > 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/ZQHP24T2PKRTDBGZ36KLBHLLOKITP5ON/ > Code of Conduct: http://python.org/psf/codeofconduct/ >
_______________________________________________ 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/OID2CGJ2L5IA7WGDRPO45BAPECFGWO7B/ Code of Conduct: http://python.org/psf/codeofconduct/