Merge pull request #817 from not-my-profile/pyright-01

Pyright 01
This commit is contained in:
Alexandre Flament 2022-01-27 23:18:41 +01:00 committed by GitHub
commit 4f82ab36a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 102 additions and 36 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: