Skip to content

Commit 200d6c2

Browse files
committed
Use tuple instead of Tuple (PEP 585)
1 parent 0421b3b commit 200d6c2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/zimscraperlib/download.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22
# -*- coding: utf-8 -*-
33
# vim: ai ts=4 sts=4 et sw=4 nu
44

5+
from __future__ import annotations
6+
57
import io
68
import pathlib
79
import subprocess
810
from concurrent.futures import Future, ThreadPoolExecutor
9-
from typing import Dict, Optional, Tuple, Union
11+
from typing import Dict, Optional, Union
1012

1113
import requests
1214
import yt_dlp as youtube_dl
@@ -174,7 +176,7 @@ def stream_file(
174176
max_retries: Optional[int] = 5,
175177
headers: Optional[Dict[str, str]] = None,
176178
session: Optional[requests.Session] = None,
177-
) -> Tuple[int, requests.structures.CaseInsensitiveDict]:
179+
) -> tuple[int, requests.structures.CaseInsensitiveDict]:
178180
"""Stream data from a URL to either a BytesIO object or a file
179181
Arguments -
180182
fpath - Path of the file where data is sent

0 commit comments

Comments
 (0)