You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
List of keywords you searched for before creating this issue. Write them down here so that others can find this issue more easily and help provide feedback.
Apparently, ruff considers self and cls when computing the number of arguments. However, these arguments are mandatory anyway, are not visible to the consumer of these methods and don't introduce any maintenance overhead. I propose that ruff ignores them.
The current Ruff settings (any relevant sections from your pyproject.toml). used --isolated flag above
The current Ruff version (ruff --version): ruff 0.5.1
List of keywords you searched for before creating this issue. Write them down here so that others can find this issue more easily and help provide feedback.
A minimal code snippet that reproduces the bug.
The command you invoked (e.g.,
ruff /path/to/file.py --fix), ideally including the--isolatedflag.This produles the following output:
Apparently, ruff considers
selfandclswhen computing the number of arguments. However, these arguments are mandatory anyway, are not visible to the consumer of these methods and don't introduce any maintenance overhead. I propose that ruff ignores them.The current Ruff settings (any relevant sections from yourusedpyproject.toml).--isolatedflag aboveThe current Ruff version (
ruff --version):ruff 0.5.1