Skip to content
Discussion options

You must be logged in to vote

@Mirandatz nailed it ❤️.

In my case I had a entry point defined with Poetry:

[tool.poetry.scripts]
fact = "fact.cli:main"

But I was pointing that to:

def main(n: int = Argument(..., min=0, help="The input n of fact(n)")) -> None:

But that wasn't being wrapped in typer.run(main).

I fixed this by pointing the console script at:

def entry_point() -> None:
    typer.run(main)

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by YuriiMotov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question or problem
4 participants
Converted from issue

This discussion was converted from issue #351 on September 17, 2025 19:04.