Skip to content

Argument value returned by callback function is list of None #629

Closed Answered by NikosAlexandris
NikosAlexandris asked this question in Questions
Discussion options

You must be logged in to vote

UPDATED Using

❯ pip freeze |ag typer
typer==0.9.0

it will work if the input type is set to List[str]. Examples :

❯ python geometry.py
Usage: geometry.py [OPTIONS] MODEL_X...

  Calculate

Arguments:
  MODEL_X...  Model(s)  [required]

Options:
  --model TEXT          Model(s)  [default: Model.a]
  --install-completion  Install completion for the current shell.
  --show-completion     Show completion for the current shell, to copy it or
                        customize the installation.
  --help                Show this message and exit.

and

python geometry.py position a
python geometry.py position a --model b
python geometry.py position a --model b --model c
python geometry.py position a…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@NikosAlexandris
Comment options

Comment options

You must be logged in to vote
2 replies
@NikosAlexandris
Comment options

@NikosAlexandris
Comment options

Answer selected by NikosAlexandris
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