]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-137317: Fix inspect.signature() for class with wrapped __init__ or __new__...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 28 Aug 2025 16:10:06 +0000 (18:10 +0200)
committerGitHub <noreply@github.com>
Thu, 28 Aug 2025 16:10:06 +0000 (16:10 +0000)
commitf6536d48cd294f3dea6a4ecfd8148aa505dbb581
tree7d1525239400f6c1d71e1f470ff12869d815a1c2
parent502ca0d1adc98775a7b92b5259c275ea2051b475
[3.13] gh-137317: Fix inspect.signature() for class with wrapped __init__ or __new__ (GH-137862) (GH-138225)

Fixed several cases where __init__, __new__ or metaclass` __call__ is a descriptor
that returns a wrapped function.
(cherry picked from commit 025a2135eff848abf24f9dc52c81386eea9da397)

Co-authored-by: Ju4tCode <42488585+yanyongyu@users.noreply.github.com>
Lib/inspect.py
Lib/test/test_inspect/test_inspect.py
Misc/NEWS.d/next/Library/2025-08-16-16-04-15.gh-issue-137317.Dl13B5.rst [new file with mode: 0644]