Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement inspect.signature() for functools.cmp_to_key() result #118402

Closed
serhiy-storchaka opened this issue Apr 29, 2024 · 1 comment
Closed
Labels
3.13 bugs and security fixes type-feature A feature request or enhancement

Comments

@serhiy-storchaka
Copy link
Member

serhiy-storchaka commented Apr 29, 2024

Feature or enhancement

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).

This issue is similar to #118285.

Linked PRs

@serhiy-storchaka
Copy link
Member Author

Split the TypeError bug in a separate issue #118404.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.13 bugs and security fixes type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

1 participant