import tobac
broken for Python<3.10
#467
Labels
bug
Code that is failing or producing the wrong result
import tobac
broken for Python<3.10
#467
If you install
tobac
from scratch on Python <3.10,import tobac
fails with the following error:This makes sense, as the
|
character as an alias for union wasn't introduced until 3.10.The fix for this is easy: add
from __future__ import annotations
to this file (and all other files), but this raises a key question: why did our matrix tests not catch this?I think this fix warrants a
v1.5.5
, unfortunately.The text was updated successfully, but these errors were encountered: