Here is a simple example of click usage that causes pylint error:
@click.command()
@click.option('--option', is_flag=True)
def foo(option):
click.echo(option)
foo()
foo
receives no arguments so I'm getting E1120 (no-value-for-parameter).
So I did this:
@click.command()
@click.option('--option', is_flag=True)
def foo(**kwargs):
click.echo(kwargs["option"])
foo()
Is there a better way? Or a way to disable pylint for only one line in Visual Studio Code?