Allow for Type Unions for Lists (RuntimeError: Type not yet supported: int | str) #655
Unanswered
fordmcdonald
asked this question in
Questions
Replies: 1 comment 1 reply
-
It's especially troubling for |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First Check
Commit to Help
Example Code
Description
When outlining parameters of type List, they should support the type unions allowed by Python. A list can contain multiple types; therefore, Typer should allow for this behavior, as well.
Operating System
macOS
Operating System Details
No response
Typer Version
0.6.1
Python Version
Python 3.10.12
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions