From ca4b104b12aa983364ec278a6a957acf7f88297d Mon Sep 17 00:00:00 2001 From: Ali-Akber Saifee Date: Sat, 3 Feb 2024 09:25:09 -0800 Subject: [PATCH] Remove unused type ignore pragma --- flask_limiter/commands.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flask_limiter/commands.py b/flask_limiter/commands.py index 848bb4d..76e27f1 100644 --- a/flask_limiter/commands.py +++ b/flask_limiter/commands.py @@ -200,7 +200,7 @@ def cli() -> None: @cli.command(help="View the extension configuration") -@with_appcontext # type: ignore +@with_appcontext def config() -> None: with current_app.test_request_context(): console = Console(theme=limiter_theme) @@ -366,7 +366,7 @@ def config() -> None: @click.option("--method", default=None, help="HTTP Method to filter by") @click.option("--key", default=None, help="Test the limit") @click.option("--watch/--no-watch", default=False, help="Create a live dashboard") -@with_appcontext # type: ignore +@with_appcontext def limits( endpoint: Optional[str] = None, path: Optional[str] = None, @@ -488,7 +488,7 @@ def console_renderable() -> Generator: # type: ignore @click.option("--method", default=None, help="HTTP Method to filter by") @click.option("--key", default=None, required=True, help="Key to reset the limits for") @click.option("-y", is_flag=True, help="Skip prompt for confirmation") -@with_appcontext # type: ignore +@with_appcontext def clear( key: str, endpoint: Optional[str] = None,