summaryrefslogtreecommitdiff
path: root/searx/network
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2022-01-27 23:18:41 +0100
committerGitHub <noreply@github.com>2022-01-27 23:18:41 +0100
commit4f82ab36a90db39d21201c11df3f4a437188e8d0 (patch)
tree3937ca19529bf38f4d5cd551de3ee81e042bd4b3 /searx/network
parent5fc53b41f8a0c6e1e1dea02f1427100c0a760beb (diff)
parent506169f312735301c1eb3ca8d10dd715298087b3 (diff)
downloadsearxng-4f82ab36a90db39d21201c11df3f4a437188e8d0.tar.gz
searxng-4f82ab36a90db39d21201c11df3f4a437188e8d0.zip
Merge pull request #817 from not-my-profile/pyright-01
Pyright 01
Diffstat (limited to 'searx/network')
-rw-r--r--searx/network/__init__.py3
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: