diff options
author | Alexandre Flament <alex@al-f.net> | 2022-01-27 23:18:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-27 23:18:41 +0100 |
commit | 4f82ab36a90db39d21201c11df3f4a437188e8d0 (patch) | |
tree | 3937ca19529bf38f4d5cd551de3ee81e042bd4b3 /searx/network | |
parent | 5fc53b41f8a0c6e1e1dea02f1427100c0a760beb (diff) | |
parent | 506169f312735301c1eb3ca8d10dd715298087b3 (diff) | |
download | searxng-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__.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: |