Bug in python 3.8 when you use Annotated and annotations from __future__ #708
Unanswered
freddyaboulton
asked this question in
Questions
Replies: 0 comments
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
Run the previous script in python 3.8. You will get a RunTimeError
If you run it in 3.9 or above it works. If you delete the
from __future__ import annotations
it will run successfully in 3.8. Also works if you do not useAnnotated
.Operating System
macOS
Operating System Details
Mac OSX
Typer Version
0.9.0
Python Version
3.8.18
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions