[3.11] gh-101293: Fix support of custom callables and types in inspect.Signature.from_callable() (GH-115530) (GH-116197)
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. (cherry picked from commit 59167c962efcae72e8d88aa4b33062ed3de4f120) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
M
Miss Islington (bot) committed
726c1170e84cae6b51983a6ae530b8b1f085f913
Parent: 8813e5a
Committed by GitHub <noreply@github.com>
on 3/1/2024, 12:55:14 PM