You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you put Cache.memoize on a custom function, you will lose the type hint when using that function
from diskcache import Cache
cache = Cache(directory=...)
@cache.memorize
def hello(name: str):
return f"hello {name}"
hello(...) # when you type this, you won't see name as argument in VSCode PyCharm etc ...
The text was updated successfully, but these errors were encountered:
Using diskcache-stubs solves this problem.
I have confirmed that it works for pyright,
For mypy, I have confirmed that it works in the latest commit (which will be deployed in a new release soon).
If you put Cache.memoize on a custom function, you will lose the type hint when using that function
The text was updated successfully, but these errors were encountered: