Skip to content

Commit

Permalink
✨ Make typer.run() not add completion scripts by default, it only mak…
Browse files Browse the repository at this point in the history
…es sense in installed apps
  • Loading branch information
tiangolo committed Nov 5, 2022
1 parent 2b0aa71 commit d95da30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion typer/main.py
Expand Up @@ -1045,6 +1045,6 @@ def wrapper(ctx: click.Context, args: List[str], incomplete: Optional[str]) -> A


def run(function: Callable[..., Any]) -> None:
app = Typer()
app = Typer(add_completion=False)
app.command()(function)
app()

0 comments on commit d95da30

Please sign in to comment.