Derived from the pyupgrade linter.
Fix is always available.
What it does#
Checks for uses of
functools.lru_cache that set
Why is this bad?#
Since Python 3.9,
functools.cache can be used as a drop-in replacement
functools.lru_cache(maxsize=None). When possible, prefer
functools.cache as it is more readable and idiomatic.