---
source: crates/ruff_linter/src/rules/pyupgrade/mod.rs
---
UP033_0.py:4:21: UP033 [*] Use `@functools.cache` instead of `@functools.lru_cache(maxsize=None)`
  |
4 | @functools.lru_cache(maxsize=None)
  |                     ^^^^^^^^^^^^^^ UP033
5 | def fixme():
6 |     pass
  |
  = help: Rewrite with `@functools.cache

ℹ Safe fix
1 1 | import functools
2 2 | 
3 3 | 
4   |-@functools.lru_cache(maxsize=None)
  4 |+@functools.cache
5 5 | def fixme():
6 6 |     pass
7 7 | 

UP033_0.py:10:21: UP033 [*] Use `@functools.cache` instead of `@functools.lru_cache(maxsize=None)`
   |
 9 | @other_decorator
10 | @functools.lru_cache(maxsize=None)
   |                     ^^^^^^^^^^^^^^ UP033
11 | def fixme():
12 |     pass
   |
   = help: Rewrite with `@functools.cache

ℹ Safe fix
7  7  | 
8  8  | 
9  9  | @other_decorator
10    |-@functools.lru_cache(maxsize=None)
   10 |+@functools.cache
11 11 | def fixme():
12 12 |     pass
13 13 | 

UP033_0.py:15:21: UP033 [*] Use `@functools.cache` instead of `@functools.lru_cache(maxsize=None)`
   |
15 | @functools.lru_cache(maxsize=None)
   |                     ^^^^^^^^^^^^^^ UP033
16 | @other_decorator
17 | def fixme():
   |
   = help: Rewrite with `@functools.cache

ℹ Safe fix
12 12 |     pass
13 13 | 
14 14 | 
15    |-@functools.lru_cache(maxsize=None)
   15 |+@functools.cache
16 16 | @other_decorator
17 17 | def fixme():
18 18 |     pass


