Skip to content

Commit

Permalink
fix 3.9 issue (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
goatrocks authored Mar 22, 2021
1 parent a3962d3 commit 71bb17a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions indico/types/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion tox.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 71bb17a

Please sign in to comment.