-
For the below code, I see the "str" validation callback runs twice, but for bool vars it runs only once.
Can someone help with this? To reproduce this issue, run this code once as |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello! Typer-CLI is now part of Typer, since version 0.12.1, so, now you should be able to install 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 |
Beta Was this translation helpful? Give feedback.
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 thetyper
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