---
source: crates/ruff_linter/src/rules/pyupgrade/mod.rs
---
UP011.py:5:21: UP011 [*] Unnecessary parentheses to `functools.lru_cache`
  |
5 | @functools.lru_cache()
  |                     ^^ UP011
6 | def fixme():
7 |     pass
  |
  = help: Remove unnecessary parentheses

ℹ Safe fix
2 2 | from functools import lru_cache
3 3 | 
4 4 | 
5   |-@functools.lru_cache()
  5 |+@functools.lru_cache
6 6 | def fixme():
7 7 |     pass
8 8 | 

UP011.py:10:11: UP011 [*] Unnecessary parentheses to `functools.lru_cache`
   |
10 | @lru_cache()
   |           ^^ UP011
11 | def fixme():
12 |     pass
   |
   = help: Remove unnecessary parentheses

ℹ Safe fix
7  7  |     pass
8  8  | 
9  9  | 
10    |-@lru_cache()
   10 |+@lru_cache
11 11 | def fixme():
12 12 |     pass
13 13 | 

UP011.py:16:21: UP011 [*] Unnecessary parentheses to `functools.lru_cache`
   |
15 | @other_decorator
16 | @functools.lru_cache()
   |                     ^^ UP011
17 | def fixme():
18 |     pass
   |
   = help: Remove unnecessary parentheses

ℹ Safe fix
13 13 | 
14 14 | 
15 15 | @other_decorator
16    |-@functools.lru_cache()
   16 |+@functools.lru_cache
17 17 | def fixme():
18 18 |     pass
19 19 | 

UP011.py:21:21: UP011 [*] Unnecessary parentheses to `functools.lru_cache`
   |
21 | @functools.lru_cache()
   |                     ^^ UP011
22 | @other_decorator
23 | def fixme():
   |
   = help: Remove unnecessary parentheses

ℹ Safe fix
18 18 |     pass
19 19 | 
20 20 | 
21    |-@functools.lru_cache()
   21 |+@functools.lru_cache
22 22 | @other_decorator
23 23 | def fixme():
24 24 |     pass


