How to support annotations for a custom type in a C extension?

Marco Sulla Marco.Sulla.Python at gmail.com
Thu Nov 18 17:30:35 EST 2021


It works. Thanks a lot.

On Sun, 19 Sept 2021 at 19:23, Serhiy Storchaka <storchaka at gmail.com> wrote:
>
> 19.09.21 05:59, MRAB пише:
> > On 2021-09-18 16:09, Serhiy Storchaka wrote:
> >> "(PyCFunction)" is redundant, Py_GenericAlias already has the right
> >> type. Overuse of casting to PyCFunction can hide actual bugs.
> >>
> > I borrowed that from listobject.c, which does have the cast.
>
> Fixed. https://github.com/python/cpython/pull/28450
>
> --
> https://mail.python.org/mailman/listinfo/python-list


More information about the Python-list mailing list