mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-20 17:52:50 +00:00
suppress the new click mypy errors
This commit is contained in:
parent
1b99e23b9a
commit
dfd34cfc0b
@ -28,7 +28,7 @@ from allmydata.grid_manager import (
|
||||
from allmydata.util import jsonbytes as json
|
||||
|
||||
|
||||
@click.group()
|
||||
@click.group() # type: ignore[arg-type]
|
||||
@click.option(
|
||||
'--config', '-c',
|
||||
type=click.Path(),
|
||||
@ -71,7 +71,7 @@ def grid_manager(ctx, config):
|
||||
ctx.obj = Config()
|
||||
|
||||
|
||||
@grid_manager.command()
|
||||
@grid_manager.command() # type: ignore[attr-defined]
|
||||
@click.pass_context
|
||||
def create(ctx):
|
||||
"""
|
||||
@ -91,7 +91,7 @@ def create(ctx):
|
||||
)
|
||||
|
||||
|
||||
@grid_manager.command()
|
||||
@grid_manager.command() # type: ignore[attr-defined]
|
||||
@click.pass_obj
|
||||
def public_identity(config):
|
||||
"""
|
||||
@ -103,7 +103,7 @@ def public_identity(config):
|
||||
click.echo(config.grid_manager.public_identity())
|
||||
|
||||
|
||||
@grid_manager.command()
|
||||
@grid_manager.command() # type: ignore[arg-type, attr-defined]
|
||||
@click.argument("name")
|
||||
@click.argument("public_key", type=click.STRING)
|
||||
@click.pass_context
|
||||
@ -132,7 +132,7 @@ def add(ctx, name, public_key):
|
||||
return 0
|
||||
|
||||
|
||||
@grid_manager.command()
|
||||
@grid_manager.command() # type: ignore[arg-type, attr-defined]
|
||||
@click.argument("name")
|
||||
@click.pass_context
|
||||
def remove(ctx, name):
|
||||
@ -155,7 +155,8 @@ def remove(ctx, name):
|
||||
save_grid_manager(fp, ctx.obj.grid_manager, create=False)
|
||||
|
||||
|
||||
@grid_manager.command() # noqa: F811
|
||||
@grid_manager.command() # type: ignore[attr-defined]
|
||||
# noqa: F811
|
||||
@click.pass_context
|
||||
def list(ctx):
|
||||
"""
|
||||
@ -175,7 +176,7 @@ def list(ctx):
|
||||
click.echo("expired {} ({})".format(cert.expires, abbreviate_time(delta)))
|
||||
|
||||
|
||||
@grid_manager.command()
|
||||
@grid_manager.command() # type: ignore[arg-type, attr-defined]
|
||||
@click.argument("name")
|
||||
@click.argument(
|
||||
"expiry_days",
|
||||
|
Loading…
x
Reference in New Issue
Block a user