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

fix(dx): Fix type hints on caching decorators #26809

Closed

Conversation

cogk
Copy link
Contributor

@cogk cogk commented Jun 20, 2024

Fix imprecise type hints, and try to let the typechecker do its job. I believe the TypeVar is necessary because of the double usage of @redis_cache and @site_cache: with and without the TTL parameter.

Before

after


After

before

Fix imprecise type hints, and try to let the typechecker do its job.
I believe the TypeVar is necessary because of the double usage of
@redis_cache and @site_cache: with and without the TTL parameter.
@github-actions github-actions bot added the add-test-cases Add test case to validate fix or enhancement label Jun 20, 2024
Copy link

stale bot commented Jul 6, 2024

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed within 3 days if no further activity occurs, but it only takes a comment to keep a contribution alive :) Also, even if it is closed, you can always reopen the PR when you're ready. Thank you for contributing.

@stale stale bot added the inactive label Jul 6, 2024
@stale stale bot closed this Jul 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
add-test-cases Add test case to validate fix or enhancement inactive
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant