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

Added typehint for Callable[P, R] in the decorator #430

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

fheinze-tkb
Copy link

My colleague and I had the issue that we had to use async everytime we use the cache decorator, even if we didn't want to mark that function as async.
In the decorator.py we saw that you support Coroutines and Callables (by calling run_in_threadpool) but the typehint for the func only supported Coroutines.

Thanks and best wishes!

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

Successfully merging this pull request may close these issues.

None yet

1 participant