Replies: 1 comment
-
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.
Uh oh!
There was an error while loading. Please reload this page.
-
First Check
Commit to Help
Example Code
Description
Currently, typer doesn't support PEP 585 (on Python <3.9) and PEP 604 (on Python <3.10).
Pydantic adopted a backport which I worked on as well and it can be incorporated into typer, too.
The backport can be used from a third-party package called
eval_type_backport
(PyPI), maintained here.Integrating with the backport might significantly reduce the need of using some deprecated/verbose typing components, such as
typing.List
(deprecated since 3.9, instead leverage PEP 585) ortyping.Union
(instead leverage PEP 604).Operating System
Other
Operating System Details
All.
Typer Version
Python Version
3.8.19, 3.9.19
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions