Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when from __future__ import annotations #8555

Open
evan0greenup opened this issue Jul 6, 2024 · 0 comments
Open

Error when from __future__ import annotations #8555

evan0greenup opened this issue Jul 6, 2024 · 0 comments

Comments

@evan0greenup
Copy link

Describe the bug

When add from __future__ import annotation in the beginning of the source file, it will raise error.

To Reproduce

Just add from __future__ import annotation in any of example source files, the error will be thrown.

Log/Screenshots

(Skip)

$ python my_sample_code.py
[Taichi] mode=release
[Taichi] version 0.6.29, llvm 10.0.0, commit b63f6663, linux, python 3.8.3
...

Additional comments

In the future of Python release, from __future__ import annotations would be defaulted enabled. To get inspiration on how to support this, pydantic https://docs.pydantic.dev/latest/ would be a great resource to learn and research.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Untriaged
Development

No branches or pull requests

1 participant