]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-137317: Fix inspect.signature() for class with wrapped __init__ or __new__ (GH...
authorJu4tCode <42488585+yanyongyu@users.noreply.github.com>
Thu, 28 Aug 2025 14:57:53 +0000 (22:57 +0800)
committerGitHub <noreply@github.com>
Thu, 28 Aug 2025 14:57:53 +0000 (17:57 +0300)
commit025a2135eff848abf24f9dc52c81386eea9da397
tree49a4b8f6090ea52013d45462ed4f570d2151cbd0
parentef4dd1d65520dd9c6fa40e67d4b976929f920fa8
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.
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]