mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-21 18:06:46 +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
|
from allmydata.util import jsonbytes as json
|
||||||
|
|
||||||
|
|
||||||
@click.group()
|
@click.group() # type: ignore[arg-type]
|
||||||
@click.option(
|
@click.option(
|
||||||
'--config', '-c',
|
'--config', '-c',
|
||||||
type=click.Path(),
|
type=click.Path(),
|
||||||
@ -71,7 +71,7 @@ def grid_manager(ctx, config):
|
|||||||
ctx.obj = Config()
|
ctx.obj = Config()
|
||||||
|
|
||||||
|
|
||||||
@grid_manager.command()
|
@grid_manager.command() # type: ignore[attr-defined]
|
||||||
@click.pass_context
|
@click.pass_context
|
||||||
def create(ctx):
|
def create(ctx):
|
||||||
"""
|
"""
|
||||||
@ -91,7 +91,7 @@ def create(ctx):
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@grid_manager.command()
|
@grid_manager.command() # type: ignore[attr-defined]
|
||||||
@click.pass_obj
|
@click.pass_obj
|
||||||
def public_identity(config):
|
def public_identity(config):
|
||||||
"""
|
"""
|
||||||
@ -103,7 +103,7 @@ def public_identity(config):
|
|||||||
click.echo(config.grid_manager.public_identity())
|
click.echo(config.grid_manager.public_identity())
|
||||||
|
|
||||||
|
|
||||||
@grid_manager.command()
|
@grid_manager.command() # type: ignore[arg-type, attr-defined]
|
||||||
@click.argument("name")
|
@click.argument("name")
|
||||||
@click.argument("public_key", type=click.STRING)
|
@click.argument("public_key", type=click.STRING)
|
||||||
@click.pass_context
|
@click.pass_context
|
||||||
@ -132,7 +132,7 @@ def add(ctx, name, public_key):
|
|||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
|
||||||
@grid_manager.command()
|
@grid_manager.command() # type: ignore[arg-type, attr-defined]
|
||||||
@click.argument("name")
|
@click.argument("name")
|
||||||
@click.pass_context
|
@click.pass_context
|
||||||
def remove(ctx, name):
|
def remove(ctx, name):
|
||||||
@ -155,7 +155,8 @@ def remove(ctx, name):
|
|||||||
save_grid_manager(fp, ctx.obj.grid_manager, create=False)
|
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
|
@click.pass_context
|
||||||
def list(ctx):
|
def list(ctx):
|
||||||
"""
|
"""
|
||||||
@ -175,7 +176,7 @@ def list(ctx):
|
|||||||
click.echo("expired {} ({})".format(cert.expires, abbreviate_time(delta)))
|
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("name")
|
||||||
@click.argument(
|
@click.argument(
|
||||||
"expiry_days",
|
"expiry_days",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user