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

@alru_cache doesn't preserve function signature #636

Closed
jquelin opened this issue Jan 17, 2025 · 1 comment
Closed

@alru_cache doesn't preserve function signature #636

jquelin opened this issue Jan 17, 2025 · 1 comment

Comments

@jquelin
Copy link

jquelin commented Jan 17, 2025

When decorating a function with @alru_cache, the signature is not preserved.
Image

Maybe should it use functools.wraps?

@Dreamsorcerer
Copy link
Member

Maybe should it use functools.wraps?

That's runtime behaviour. You appear to be showing a screenshot of an IDE, which must be looking at the static typing information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants