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 7b41b04 commit e57f6deCopy full SHA for e57f6de
src/zimscraperlib/download.py
@@ -177,13 +177,13 @@ def stream_file(
177
fpath: pathlib.Path | None = None,
178
byte_stream: IO[bytes] | None = None,
179
block_size: int | None = 1024,
180
- proxies: dict | None = None,
+ proxies: dict[str, str] | None = None,
181
max_retries: int | None = 5,
182
headers: dict[str, str] | None = None,
183
session: requests.Session | None = None,
184
*,
185
only_first_block: bool | None = False,
186
-) -> tuple[int, requests.structures.CaseInsensitiveDict]:
+) -> tuple[int, requests.structures.CaseInsensitiveDict[str]]:
187
"""Stream data from a URL to either a BytesIO object or a file
188
Arguments -
189
fpath - Path of the file where data is sent
0 commit comments