File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 22# -*- coding: utf-8 -*-
33# vim: ai ts=4 sts=4 et sw=4 nu
44
5+ from __future__ import annotations
6+
57import io
68import pathlib
79import subprocess
810from concurrent .futures import Future , ThreadPoolExecutor
9- from typing import Dict , Optional , Tuple , Union
11+ from typing import Dict , Optional , Union
1012
1113import requests
1214import 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
You can’t perform that action at this time.
0 commit comments