Postponed evaluation of annotations #19
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
Starting from Python 3.10, postponed evaulation of annotations will be the default behavior for Python:
For Python >=3.7 this feature can be enabled using
from __future__ import annotations
. When enabled, the ARTIQ compiler throws an error. See the following snippet.When enabling postponed evaluation of annotations, the following error is raised.
It is fine that currently the ARTIQ compiler is not compatible with postponed evaluation of annotations. Will the new compiler be?
This is a bug in the current ARTIQ compiler and could be fixed. The new compiler should also be fine with this. I would submit a PR soon.
https://github.com/m-labs/artiq/pull/1704