You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Implement inspect.signature() for functools.cmp_to_key() result #118402
functools.cmp_to_key() returns a custom callable. inspect.signature()returns generic <Signature (*args, **kwargs)> raises a TypeError for the C implementation. The following PR makes it returning the same signature (<Signature (obj)>) for both Python and C implementations (currently it is returned for the Python implementation).
Activity
serhiy-storchaka commentedon Apr 29, 2024
Split the TypeError bug in a separate issue #118404.
pythongh-118402: Fix inspect.signature() for functools.cmp_to_key() r…
gh-118402: Fix inspect.signature() for functools.cmp_to_key() result (G…
pythongh-118402: Fix inspect.signature() for functools.cmp_to_key() r…