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

Preserve function signature with decorator #791

Closed
Wyko opened this issue Dec 19, 2023 · 3 comments
Closed

Preserve function signature with decorator #791

Wyko opened this issue Dec 19, 2023 · 3 comments

Comments

@Wyko
Copy link

Wyko commented Dec 19, 2023

I've noticed that my IDE (VS Code) does not show the function arguments of anything decorated by the @cached decorator. It would be great if the decorator would fully preserve the function's signature.

image

@Dreamsorcerer
Copy link
Member

#512

@Wyko
Copy link
Author

Wyko commented Dec 19, 2023

Does #512 really match the question? Talking about typing vs preserving the original function signature.

@Dreamsorcerer
Copy link
Member

You're showing type annotations from your IDE. We don't have complete type annotations (or any exposed at all), so your IDE won't give you the correct types.

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