Skip to content

Commit f3999ad

Browse files
thearchitectorSung96kim
authored andcommitted
fix: typing after 3.13 rebase
1 parent e824f3d commit f3999ad

File tree

3 files changed

+16
-6
lines changed

3 files changed

+16
-6
lines changed

indico/http/serialization.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from indico.errors import IndicoDecodingError
1515

1616
if TYPE_CHECKING: # pragma: no cover
17-
from typing import Any, Callable, Mapping, Optional
17+
from typing import Any, Callable, Dict, Mapping, Optional, Tuple
1818

1919
from aiohttp import ClientResponse
2020
from requests import Response
@@ -78,7 +78,7 @@ async def aio_deserialize(
7878
)
7979

8080

81-
def parse_header(header: str) -> tuple[str, dict[str, str]]:
81+
def parse_header(header: str) -> "Tuple[str, Dict[str, str]]":
8282
email = EmailMessage()
8383
email["Content-Type"] = header
8484
return email.get_content_type(), email["Content-Type"].params

tox.Dockerfile

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,22 @@
11
FROM ubuntu:20.04
22

3+
ENV DEBIAN_FRONTEND=noninteractive
34

4-
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -yqq apt-transport-https
5+
RUN apt-get update && apt-get install -yqq apt-transport-https
56

67
#deadsnakes holds old versions of python for ubuntu
7-
RUN DEBIAN_FRONTEND=noninteractive apt-get install -yqq software-properties-common && add-apt-repository ppa:deadsnakes/ppa
8+
RUN apt-get install -yqq software-properties-common && \
9+
add-apt-repository ppa:deadsnakes/ppa
810

9-
RUN DEBIAN_FRONTEND=noninteractive apt-get -yqq install python3.9 python3.10 python3.11 python3.12 python3.13 python3-pip
11+
RUN apt-get update && \
12+
apt-get -yqq install \
13+
python3.8 \
14+
python3.9 \
15+
python3.10 \
16+
python3.11 \
17+
python3.12 \
18+
python3.13 \
19+
python3-pip
1020

1121
RUN pip3 install tox==4.11.3
1222

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# content of: tox.ini , put in same dir as setup.py
22
[tox]
3-
envlist = py39,py310,py311,py312,py313
3+
envlist = py38,py39,py310,py311,py312,py313
44

55
[testenv]
66
extras = all

0 commit comments

Comments
 (0)