Replies: 1 comment
-
I am trying to achieve a similar thing and I found something intereseting. if I use I think it has something to do with trying to write to stdout at the sametime. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
First Check
Commit to Help
Example Code
Description
I'm trying to add dynamic completion for a
typer.Argument
(also triedtyper.Option
) but the shell completion fails with what seems to be a truncated python stacktrace:By "dynamic" I meant, that I try to fetch the list of completion suggestions calling a REST API.
If I set a static list of completion suggestions, like used in Typer docs, everything works correctly.
Is there any known limitation/issue for my use case? I couldn't find any on Click docs neither.
I couldn't provide a self contained sample code but exceprts of my code.either
Operating System
Linux
Operating System Details
Distributor ID: Ubuntu
Description: Ubuntu 21.10
Release: 21.10
Codename: impish
Typer Version
0.4.0
Python Version
3.9.10
Additional Context
Using zsh.
Other dependencies versions:
Beta Was this translation helpful? Give feedback.
All reactions