Skip to content

Commit f913696

Browse files
committed
Disable pylints too many arguments lint
Fixed this pylint 3.3.3 error: ``` ************* Module seven.content datasrc/seven/content.py:34:1: R0917: Too many positional arguments (7/5) (too-many-positional-arguments) ************* Module content datasrc/content.py:34:1: R0917: Too many positional arguments (7/5) (too-many-positional-arguments) ------------------------------------------------------------------ Your code has been rated at 9.99/10 (previous run: 9.99/10, +0.00) ``` Could also refactor the code to take a struct instead of many arguments. ```python class Sprite(Struct): def __init__(self, name="", Set=None, x=0, y=0, w=0, h=0): ``` But I do not think adding a huge diff in 16 year old code just for that is worth it. Closed ddnet#9428
1 parent 4c0a087 commit f913696

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.pylintrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ disable=
2323
W0511, # fixme
2424
W0603, # global-statement
2525
R0022, # useless-option-value
26+
R0917, # too-many-positional-arguments

0 commit comments

Comments
 (0)