On Tue, Apr 20, 2021 at 4:24 PM Inada Naoki <songofaca...@gmail.com> wrote: > > Just an idea: do not save co_name and co_firstlineno in code object > for function annotations. > When creating a function object from a code object, they can be copied > from annotated function. >
I created a pull request. It use `__co_annotations__` for name, but use `<func.__qualname__>.__co_annotations__` for qualname. https://github.com/larryhastings/co_annotations/pull/11 -- Inada Naoki <songofaca...@gmail.com> _______________________________________________ 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/D2X42E54IM2ASKDE5VJP6YJX557OOCHU/ Code of Conduct: http://python.org/psf/codeofconduct/