Replies: 1 comment
-
Can be seen as a duplicate of #605 |
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
-
First Check
Commit to Help
Example Code
Description
I have slightly modified the code found in https://typer.tiangolo.com/tutorial/parameter-types/enum/#list-of-enum-values.
If you execute
python3 -m main.py main
, it raises:The Annotated version however works.
To my mind, the "Tip" box message in the "Python 3.7+ non-Annotated" tabs should redirect to possible issues like this one to explain why the Annotated version should be preferred.
Operating System
Linux
Operating System Details
Linux UBUNTU 22.04
Typer Version
0.12.3
Python Version
3.10.14
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions