]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-112006: Fix inspect.unwrap() for types where __wrapped__ is a data descriptor...
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 26 Feb 2024 18:07:41 +0000 (20:07 +0200)
committerGitHub <noreply@github.com>
Mon, 26 Feb 2024 18:07:41 +0000 (20:07 +0200)
commit68c79d21fa791d7418a858b7aa4604880e988a02
treefc8ebb8099cc0069929a9b00e0553bf6d798ad66
parentb05afdd5ec325bdb4cc89bb3be177ed577bea41f
gh-112006: Fix inspect.unwrap() for types where __wrapped__ is a data descriptor (GH-115540)

This also fixes inspect.Signature.from_callable() for builtins classmethod()
and staticmethod().
Lib/inspect.py
Lib/test/test_inspect/test_inspect.py
Misc/NEWS.d/next/Library/2024-02-15-23-42-54.gh-issue-112006.4wxcK-.rst [new file with mode: 0644]