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

Restore type checking for functions decorated with @lru_cache #1596

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

courtneyholcomb
Copy link
Contributor

There is an issue with mypy when using the @lru_cache decorator that causes function parameters to not be type-checked. For the most part, we're migrating MF to use our custom LruCache class, but for those cases where we still use the decorator (or until we migrate all of them to the new class), this ensures they will be type checked.

@courtneyholcomb courtneyholcomb merged commit 2f1bb1c into main Jan 15, 2025
39 checks passed
@courtneyholcomb courtneyholcomb deleted the court/lru-type branch January 15, 2025 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants