]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-137317: Fix inspect.signature() for class with wrapped __init__ or __new__...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 8 Oct 2025 13:48:06 +0000 (15:48 +0200)
committerGitHub <noreply@github.com>
Wed, 8 Oct 2025 13:48:06 +0000 (15:48 +0200)
commit7e23d3677000deacd368e8b94b6a32923f38446a
treea3ebd907297664e2d3d9866285407655c681fee4
parentc05053589f15d1f0fefef72740b3f5c062286e2c
[3.14] gh-137317: Fix inspect.signature() for class with wrapped __init__ or __new__ (GH-137862) (#138224)

gh-137317: Fix inspect.signature() for class with wrapped __init__ or __new__ (GH-137862)

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]