mindee / tawazi

A DAG Scheduler library written in pure python
https://mindee.github.io/tawazi/
Apache License 2.0
70 stars 5 forks source link

[BUG] future type annotations doesn't work #213

Closed bashirmindee closed 6 months ago

bashirmindee commented 6 months ago

Describe the bug using future type annotations fails the test

from __future__ import annotations
from tawazi import xn
@xn(unpack_to=2)
def return_tuple() -> Tuple[int, int]:  # noqa: UP006
     return 1, 2
bashirmindee commented 6 months ago

resolved in #210 and #211