Skip to content

Commit e57f6de

Browse files
committed
Fix typing
1 parent 7b41b04 commit e57f6de

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
@@ -177,13 +177,13 @@ def stream_file(
177177
fpath: pathlib.Path | None = None,
178178
byte_stream: IO[bytes] | None = None,
179179
block_size: int | None = 1024,
180-
proxies: dict | None = None,
180+
proxies: dict[str, str] | None = None,
181181
max_retries: int | None = 5,
182182
headers: dict[str, str] | None = None,
183183
session: requests.Session | None = None,
184184
*,
185185
only_first_block: bool | None = False,
186-
) -> tuple[int, requests.structures.CaseInsensitiveDict]:
186+
) -> tuple[int, requests.structures.CaseInsensitiveDict[str]]:
187187
"""Stream data from a URL to either a BytesIO object or a file
188188
Arguments -
189189
fpath - Path of the file where data is sent

0 commit comments

Comments
 (0)