Skip to content

gh-129931: use functools.wraps within overloads #129932

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

Closed
wants to merge 2 commits into from

Conversation

thejcannon
Copy link
Contributor

@thejcannon thejcannon commented Feb 10, 2025

Fixes #129931 - Title says pretty much everything.

I had to use a lambda, which is a bit sad, but oh well.

(Added new test)

@sobolevn sobolevn closed this Feb 12, 2025
@thejcannon thejcannon deleted the jcannon/overload-wraps branch February 13, 2025 00:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

@typing.overload doesn't preserve function attributes (like __annotations__)
2 participants