We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36ae903 commit 0421b3bCopy full SHA for 0421b3b
src/zimscraperlib/download.py
@@ -6,7 +6,7 @@
6
import pathlib
7
import subprocess
8
from concurrent.futures import Future, ThreadPoolExecutor
9
-from typing import Dict, Optional, Union
+from typing import Dict, Optional, Tuple, Union
10
11
import requests
12
import yt_dlp as youtube_dl
@@ -174,7 +174,7 @@ def stream_file(
174
max_retries: Optional[int] = 5,
175
headers: Optional[Dict[str, str]] = None,
176
session: Optional[requests.Session] = None,
177
-) -> Union[int, requests.structures.CaseInsensitiveDict]:
+) -> Tuple[int, requests.structures.CaseInsensitiveDict]:
178
"""Stream data from a URL to either a BytesIO object or a file
179
Arguments -
180
fpath - Path of the file where data is sent
0 commit comments