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
andrewjw
changed the title
lru_cache function calls parameters are not checked
Parameters for a call to a function wrapped in a lru_cache are not checked
Oct 13, 2023
Ah, thanks for that. I assumed I wouldn't be the first to see this, but couldn't find this specific problem. I guess I didn't read that thread closely enough. I guess this can be closed unless the situation has changed since then, and it is possible to fix.
Bug Report
The parameters used in a call to a function which is wrapped in a
functools.lru_cache
are not checked.To Reproduce
Expected Behavior
This should raise several errors about the arguments being wrong. Commenting out the line
@lru_cache
correctly generates the following errors.Actual Behavior
Success: no issues found in 1 source file
Your Environment
mypy 1.6.0 running on Python 3.11.6
The text was updated successfully, but these errors were encountered: