diff options
author | Martin Fischer <martin@push-f.com> | 2022-01-24 11:44:18 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2022-01-27 22:17:16 +0100 |
commit | b767752d0cdefb6c5f41350c15fcdb50f34d2bfa (patch) | |
tree | 3017327b81b019aeda7d750dccf552ed1505373a /searx/network | |
parent | 640c404844e3b06482402c53fdce8a2295772d42 (diff) | |
download | searxng-b767752d0cdefb6c5f41350c15fcdb50f34d2bfa.tar.gz searxng-b767752d0cdefb6c5f41350c15fcdb50f34d2bfa.zip |
[pyright:basic] searx.webapp
Diffstat (limited to 'searx/network')
-rw-r--r-- | searx/network/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/searx/network/__init__.py b/searx/network/__init__.py index 7d02a0014..ced76243d 100644 --- a/searx/network/__init__.py +++ b/searx/network/__init__.py @@ -7,6 +7,7 @@ import threading import concurrent.futures from types import MethodType from timeit import default_timer +from typing import Iterable, Tuple import httpx import anyio @@ -210,7 +211,7 @@ def _close_response_method(self): continue -def stream(method, url, **kwargs): +def stream(method, url, **kwargs) -> Tuple[httpx.Response, Iterable[bytes]]: """Replace httpx.stream. Usage: |