[Cython] Annotations and Cython 3

da-woods dw-git at d-woods.co.uk
Tue Oct 26 03:14:06 EDT 2021


On 26/10/2021 07:53, Stefan Behnel wrote:
> Am 26. Oktober 2021 07:54:10 MESZ schrieb Lisandro Dalcin:
>> In any case, if you know how and can implement the __future__ import,
>> that
>> would be great. Otherwise, valid Python3 code using that import
>> currently fails to compile in Cython.
> Probably just an oversight. A no-op future import is trivial to add and ignore.

We do support the __future__ import as a no-op on the Cython 3 alphas:

https://github.com/cython/cython/blob/e93c2c556c5c15148763b26c6e3eef35ee88a22f/tests/run/pep563_annotations.py#L4



More information about the cython-devel mailing list