diff --git a/indico/types/base.py b/indico/types/base.py index f99654f1..2d2e77ff 100644 --- a/indico/types/base.py +++ b/indico/types/base.py @@ -3,8 +3,7 @@ from typing import List, Any from indico.types.utils import cc_to_snake -generic_alias_cls = type(List) - +generic_alias_cls = type(List[Any]) def list_subtype(cls): if not issubclass(type(cls), generic_alias_cls): diff --git a/tox.Dockerfile b/tox.Dockerfile index 0cac4544..5770a168 100644 --- a/tox.Dockerfile +++ b/tox.Dockerfile @@ -6,7 +6,7 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -yqq apt-tr #deadsnakes holds old versions of python for ubuntu RUN DEBIAN_FRONTEND=noninteractive apt-get install -yqq software-properties-common && add-apt-repository ppa:deadsnakes/ppa -RUN DEBIAN_FRONTEND=noninteractive apt-get -yqq install python3.7 python3.8 python3-pip +RUN DEBIAN_FRONTEND=noninteractive apt-get -yqq install python3.7 python3.8 python3.9 python3-pip RUN pip3 install tox==3.22.0 diff --git a/tox.ini b/tox.ini index 6c1a1bd3..dd07b489 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ # content of: tox.ini , put in same dir as setup.py [tox] -envlist = py37,py38 +envlist = py37,py38,py39 [testenv] parallel_show_output = true