Skip to content
Discussion options

You must be logged in to vote

Cause analysis

Pylint introduced a new code style error R0917:too-many-positional-arguments in 2023, which will throw an error when the number of function parameters exceeds the default value 5. See details at PylintDocs/R0917

This feature only exists in Pylint with python>=3.9, so Pylint with python=3.7,3.8 will not raise this error.

Possible Solutions

Solution 1: Disable R0917 Check

✅ Can Solve
⚠️ It will not be monitored when there are truly too many positional arguments.

Solution 2: Increase max-positional-arguments to A Bigger Number

✅ Can Solve
❓The upper limit still needs to be discussed. ( temporarily set to 10 in #158 )

Solution 3: Refactor dataset.py to Comply With the New Style…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by MooreZheng
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
kind/bug Categorizes issue or PR as related to a bug.
4 participants
Converted from issue

This discussion was converted from issue #157 on February 13, 2026 03:38.