ruff icon indicating copy to clipboard operation
ruff copied to clipboard

ARG001 - Ignore None type arguments

Open Philipp-Thiel opened this issue 1 week ago • 8 comments

Summary

Pytest fixtures can be used for side effects and reasonably often those fixtures do not need to return anything, but are still included in the test relying on it. Can function arguments with type None be excluded from ARG001, as they can not in any meaningful way be "used" anyway?

If you are interested in this change, I can implement it.

Philipp-Thiel avatar Dec 16 '25 09:12 Philipp-Thiel