---
source: crates/ruff_linter/src/rules/pylint/mod.rs
---
PLR0913 Too many arguments in function definition (8 > 5)
 --> too_many_arguments.py:1:5
  |
1 | def f(x, y, z, t, u, v, w, r):  # Too many arguments (8/5)
  |     ^
2 |     pass
  |

PLR0913 Too many arguments in function definition (6 > 5)
  --> too_many_arguments.py:17:5
   |
17 | def f(x, y, z, u=1, v=1, r=1):  # Too many arguments (6/5)
   |     ^
18 |     pass
   |

PLR0913 Too many arguments in function definition (6 > 5)
  --> too_many_arguments.py:25:5
   |
25 | def f(x, y, z, /, u, v, w):  # Too many arguments (6/5)
   |     ^
26 |     pass
   |

PLR0913 Too many arguments in function definition (6 > 5)
  --> too_many_arguments.py:29:5
   |
29 | def f(x, y, z, *, u, v, w):  # Too many arguments (6/5)
   |     ^
30 |     pass
   |

PLR0913 Too many arguments in function definition (9 > 5)
  --> too_many_arguments.py:33:5
   |
33 | def f(x, y, z, a, b, c, *, u, v, w):  # Too many arguments (9/5)
   |     ^
34 |     pass
   |

PLR0913 Too many arguments in function definition (8 > 5)
  --> too_many_arguments.py:51:9
   |
50 | class C:
51 |     def f(self, y, z, a, b, c, *, u, v, w):  # Too many arguments (8/5)
   |         ^
52 |         pass
   |
help: Consider adding `@typing.override` if changing the function signature would violate the Liskov Substitution Principle

PLR0913 Too many arguments in function definition (8 > 5)
  --> too_many_arguments.py:58:9
   |
57 |     @classmethod
58 |     def f(cls, y, z, a, b, c, *, u, v, w):  # Too many arguments (8/5)
   |         ^
59 |         pass
   |
help: Consider adding `@typing.override` if changing the function signature would violate the Liskov Substitution Principle

PLR0913 Too many arguments in function definition (8 > 5)
  --> too_many_arguments.py:66:9
   |
65 |     @staticmethod
66 |     def f(y, z, a, b, c, *, u, v, w):  # Too many arguments (8/5)
   |         ^
67 |         pass
   |
help: Consider adding `@typing.override` if changing the function signature would violate the Liskov Substitution Principle

PLR0913 Too many arguments in function definition (6 > 5)
  --> too_many_arguments.py:70:9
   |
69 |     @staticmethod
70 |     def f(y, z, a, b, c, d):  # OK
   |         ^
71 |         pass
   |
help: Consider adding `@typing.override` if changing the function signature would violate the Liskov Substitution Principle
