Skip to content

Commit

Permalink
馃悰 Fix type annotation of run function
Browse files Browse the repository at this point in the history
  • Loading branch information
alexreg committed Jul 20, 2022
1 parent 45a2ac2 commit 4046e93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion typer/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,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 4046e93

Please sign in to comment.