Skip to content
Discussion options

You must be logged in to vote
  1. You wrote that you use version 0.4.2. AFAIK version 0.4.2 doesn't support Annotated, yet you ask for Annotated. If you want to use Annotated I would suggest that you upgrade to 0.9.0+
  2. To answer the question of the title, an example of Annotated argument with a default value (i.e. an optional argument) can be found in the docs
  3. You wrote:

a Typer command that takes a required pathlib.Path argument for which there is no sane default value.

Probably some terminology miscommunication here, but If the argument has a default value, then it is an optional argument, is it not?

Replies: 1 comment

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
2 participants