According to pyproject.toml, we support the python versions 3.8, 3.9, 3.10 and 3.11, see here.
ISSUE 1:
However, in practice, modalities currently only works for 3.10 and 3.11. There is at least one example of code syntax frequently used which is not compatible with python <3.10, namely the typing or operator X | Y, which for earlier python versions would have to be replaced by Union[X, Y]. See here for an example.
Possible solutions:
(i) Change the code syntax for compatibility with python 3.8 and 3.9
(ii) Restrict the officially supported python versions to 3.10 and 3.11
ISSUE 2:
We currently do unit testing only for python 3.10, see here.
Solution: Add the other supported python versions (i.e. at least 3.11).
According to
pyproject.toml
, we support the python versions3.8
,3.9
,3.10
and3.11
, see here.ISSUE 1: However, in practice, modalities currently only works for
3.10
and3.11
. There is at least one example of code syntax frequently used which is not compatible with python<3.10
, namely the typing or operatorX | Y
, which for earlier python versions would have to be replaced byUnion[X, Y]
. See here for an example.Possible solutions: (i) Change the code syntax for compatibility with python
3.8
and3.9
(ii) Restrict the officially supported python versions to3.10
and3.11
ISSUE 2: We currently do unit testing only for python
3.10
, see here.Solution: Add the other supported python versions (i.e. at least
3.11
).