sco1/flake8-annotations

--suppress-dummy-args should suppress any argument name starting with _

eternal-sorrow opened this issue · 1 comments

Description
Now it suppresses errors only for _ argument name, and I'd like it to suppress errors for any argument like _arg1, _arg2.

Rationale/Use Case
Sometimes it's needed to use more than one dummy argument for a function and then you can't use _ name.

sco1 commented

This was touched on briefly when the original request was made in #68, I don't think it's worth this plugin special casing anything besides _.

You can use noqa to accomplish this, e.g.:

def foo(a: int, b: float, _c) -> None:  # noqa: ANN001
    ...

or

def foo(
    a: int,
    b: float,
    _c,  # noqa: ANN001
) -> None:
    ...