Skip to content

Commit

Permalink
馃帹 Fix type annotation of typer.run() (#284)
Browse files Browse the repository at this point in the history
Co-authored-by: Sebasti谩n Ram铆rez <tiangolo@gmail.com>
  • Loading branch information
yassu and tiangolo committed Nov 5, 2022
1 parent 5a5db51 commit 249b689
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion typer/main.py
Expand Up @@ -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()

0 comments on commit 249b689

Please sign in to comment.