Conversation
|
Also, the docs reference using |
|
I haven't looked over this PR, but we did just add a new doc page about supporting multiple versions in Click, with an example for the |
|
📝 Docs preview for commit 02f6565 at: https://a1cfb4c7.typertiangolo.pages.dev |
|
📝 Docs preview for commit 1cbcbc1 at: https://3eb7a4b8.typertiangolo.pages.dev |
|
Thanks a lot for offering help @davidism and especially for writing those docs! 🙌
The challenge was finding something related to the new support for enums in Click. In Click 8.2, choice types can use enums, but they expect the command to pass the name of the enum, not the value. And Typer has supported enums but using the value as the input instead of the enum name. This was handled by creating a custom Typer class type for choice that handles the input with the old Typer behavior. |
|
📝 Docs preview for commit bd98584 at: https://ec702d88.typertiangolo.pages.dev |
|
📝 Docs preview for commit 17350f5 at: https://f7ea7382.typertiangolo.pages.dev |
…eping the same behavior of enums
|
📝 Docs preview for commit 3b8f9bc at: https://560ec3ed.typertiangolo.pages.dev |
|
📝 Docs preview for commit ce2f27b at: https://243fb83f.typertiangolo.pages.dev |
|
📝 Docs preview for commit a336edd at: https://530c5e42.typertiangolo.pages.dev |
|
This is now available in Typer 0.16.0 🚀 🎉 |
Allow typer 0.16.0 by restricting click to <8.2.0. Discussions: * fastapi/typer#1240 * fastapi/typer#1233 Older layers of discussion of click 8.2 support in typer: * fastapi/typer#1215 * fastapi/typer#1222 * https://github.com/fastapi/typer/commits/click-8.2/ * pallets/click#2909 * pallets/click#1394 * pallets/click#1489
⬆️ Add compatibility with Click 8.2