---
source: crates/ruff_linter/src/rules/pylint/mod.rs
---
PLR0203 [*] Static method defined without decorator
  --> no_method_decorator.py:15:5
   |
13 |     pick_colors = classmethod(pick_colors)
14 |
15 |     def pick_one_color():  # [no-staticmethod-decorator]
   |     ^
16 |         """staticmethod to pick one fruit color"""
17 |         return choice(Fruit.COLORS)
   |
help: Add @staticmethod decorator
   |
14 |
15 +     @staticmethod
16 |     def pick_one_color():  # [no-staticmethod-decorator]
17 |         """staticmethod to pick one fruit color"""
18 |         return choice(Fruit.COLORS)
19 |
   -     pick_one_color = staticmethod(pick_one_color)
20 |
   |

PLR0203 [*] Static method defined without decorator
  --> no_method_decorator.py:27:5
   |
25 |     class_method = classmethod(class_method);another_statement
26 |
27 |     def static_method():
   |     ^
28 |         pass
   |
help: Add @staticmethod decorator
   |
26 |
27 +     @staticmethod
28 |     def static_method():
29 |         pass
30 |
   -     static_method = staticmethod(static_method);
31 +     
   |
