[pyright:basic] searx.webapp

This commit is contained in:
Martin Fischer 2022-01-24 11:44:18 +01:00
parent 640c404844
commit b767752d0c
2 changed files with 23 additions and 9 deletions

View file

@ -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: