Docstring of this method has following signature specification:
PyDoc_STR("__prepare__($cls, name, bases, /, **kwds)\n" ...
It's wrong, the first argument should be $type (a class method). Because of this, the inspect.signature() fails to parse the __text_signature__ attribute for the method.
CPython main branch
No response
pythongh-114949: fix signature in the type.__prepare__() doc string
Revert "pythongh-114949: fix signature in the type.__prepare__() doc …
Seems to be fixed now.
Activity
pythongh-114949: fix signature in the type.__prepare__() doc string
pythongh-114949: fix signature in the type.__prepare__() doc string
Revert "pythongh-114949: fix signature in the type.__prepare__() doc …
skirpichev commented on Sep 30, 2024
Seems to be fixed now.