Skip to content
This repository has been archived by the owner on Apr 6, 2024. It is now read-only.

Input validation callbacks are triggered 2 times for string, not for booleans #145

Answered by tiangolo
gauravgs asked this question in Questions
Discussion options

You must be logged in to vote

Hello! Typer-CLI is now part of Typer, since version 0.12.1, so, now you should be able to install pip install typer and you would get the typer command. 🚀

For your use case, good question! I think I hadn't seen a callback and a prompt used together, I think it might be because of that. And it might be on the Click side. You can check that by creating an equivalent Click app, without Typer, and confirming if it behaves the same, in that case, this would be a question for Click. If not, then it is related to Typer.

If you still have problems after that, please create a new question in the Typer repo: https://github.com/tiangolo/typer/discussions/new?category=questions

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tiangolo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #129 on April 06, 2024 23:16.