]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-101293: Fix support of custom callables and types in inspect.Signature.from_callab...
authorSerhiy Storchaka <storchaka@gmail.com>
Fri, 1 Mar 2024 11:32:16 +0000 (13:32 +0200)
committerGitHub <noreply@github.com>
Fri, 1 Mar 2024 11:32:16 +0000 (13:32 +0200)
commit59167c962efcae72e8d88aa4b33062ed3de4f120
tree5d7802a8e021d025ef69181ec38dcc2a6b1f06e4
parent8ab6c2775c4b2566477589cfc50fb64f020dc4de
gh-101293: Fix support of custom callables and types in inspect.Signature.from_callable() (GH-115530)

Support callables with the __call__() method and types with
__new__() and __init__() methods set to class methods, static
methods, bound methods, partial functions, and other types of
methods and descriptors.

Add tests for numerous types of callables and descriptors.
Lib/inspect.py
Lib/test/test_inspect/test_inspect.py
Misc/NEWS.d/next/Library/2024-02-15-19-11-49.gh-issue-101293.898b8l.rst [new file with mode: 0644]