[issue40897] Inheriting from class that defines __new__ causes inspect.signature to always return (*args, **kwargs) for constructor

Łukasz Langa report at bugs.python.org
Fri Jul 16 09:04:58 EDT 2021


Łukasz Langa <lukasz at langa.pl> added the comment:


New changeset 6aab5f9bf303a8e4cd8377fabcdcb499e0541f9a by Weipeng Hong in branch 'main':
bpo-40897:Give priority to using the current class constructor in `inspect.signature` (#27177)
https://github.com/python/cpython/commit/6aab5f9bf303a8e4cd8377fabcdcb499e0541f9a


----------
nosy: +lukasz.langa

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40897>
_______________________________________


More information about the Python-bugs-list mailing list