From 05539d7cd12d3aebf564ae05cbe427e5adf9d577 Mon Sep 17 00:00:00 2001 From: Boris Smidt Date: Thu, 6 Jul 2023 15:00:12 +0200 Subject: [PATCH] #88: Fix the mypy linter --- typer/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/typer/main.py b/typer/main.py index a685149e1f..9e4f4ebfe5 100644 --- a/typer/main.py +++ b/typer/main.py @@ -240,7 +240,7 @@ def command( cls = TyperCommand def decorator(f: CommandFunctionType) -> CommandFunctionType: - def add_runner(f: CommandFunctionType) -> CommandFunctionType: + def add_runner(f: CommandFunctionType) -> CommandFunctionType: #type: ignore @wraps(f) def run_wrapper(*args, **kwargs) -> Any: if sys.version_info >= (3, 11) and self.loop_factory: @@ -251,7 +251,7 @@ def run_wrapper(*args, **kwargs) -> Any: else: asyncio.get_event_loop().run_until_complete(asyncio.wait(f(*args, **kwargs))) - return run_wrapper + return run_wrapper #type: ignore if inspect.iscoroutinefunction(f): callback = add_runner(f)