Skip to content

Commit 0421b3b

Browse files
committed
Fix return type since it is a Tuple and not a Union
1 parent 36ae903 commit 0421b3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/zimscraperlib/download.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import pathlib
77
import subprocess
88
from concurrent.futures import Future, ThreadPoolExecutor
9-
from typing import Dict, Optional, Union
9+
from typing import Dict, Optional, Tuple, Union
1010

1111
import requests
1212
import yt_dlp as youtube_dl
@@ -174,7 +174,7 @@ def stream_file(
174174
max_retries: Optional[int] = 5,
175175
headers: Optional[Dict[str, str]] = None,
176176
session: Optional[requests.Session] = None,
177-
) -> Union[int, requests.structures.CaseInsensitiveDict]:
177+
) -> Tuple[int, requests.structures.CaseInsensitiveDict]:
178178
"""Stream data from a URL to either a BytesIO object or a file
179179
Arguments -
180180
fpath - Path of the file where data is sent

0 commit comments

Comments
 (0)