@cache decorator causes function to be untyped #8466
veber-alex
started this conversation in
General
Replies: 1 comment
-
This is a known issue with the typeshed definition of As discussed in that thread, there are tradeoffs that the typeshed maintainers are trying to balance here. I'm not convinced they've struck the right balance in this case. Feel free to add to the typeshed thread if you have an opinion. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This doesn't show any error for me in vscode and even hovering over the call of foo just shows
(function) foo: _lru_cache_wrapper[None]
I am not sure if the issue is in pyright, vscode or typeshed.
Beta Was this translation helpful? Give feedback.
All reactions