From 249b689dcef57def544c8bb19b2a9486c55f84c7 Mon Sep 17 00:00:00 2001 From: yassu Date: Sat, 5 Nov 2022 23:41:02 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Fix=20type=20annotation=20of=20`?= =?UTF-8?q?typer.run()`=20(#284)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Sebastián Ramírez --- typer/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typer/main.py b/typer/main.py index 8aa1cf9b3..e17c4b2b8 100644 --- a/typer/main.py +++ b/typer/main.py @@ -1044,7 +1044,7 @@ def wrapper(ctx: click.Context, args: List[str], incomplete: Optional[str]) -> A return wrapper -def run(function: Callable[..., Any]) -> Any: +def run(function: Callable[..., Any]) -> None: app = Typer() app.command()(function) app()