-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
Closed as not planned
Labels
type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Bug description:
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 versions tested on:
CPython main branch
Operating systems tested on:
No response
Linked PRs
Metadata
Metadata
Assignees
Labels
type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error