From: Kar Petrosyan <92274156+karpetrosyan@users.noreply.github.com> Date: Thu, 27 Feb 2025 17:03:59 +0000 (+0400) Subject: Merge branch 'master' into use-unasync-for-tests X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=187d0356225197691a4ae01275f789820fa7daff;p=thirdparty%2Fhttpx.git Merge branch 'master' into use-unasync-for-tests --- 187d0356225197691a4ae01275f789820fa7daff diff --cc httpx/_client.py index bbeef7b5,13cd9336..17a71df8 --- a/httpx/_client.py +++ b/httpx/_client.py @@@ -1721,9 -1721,9 +1721,9 @@@ class AsyncClient(BaseClient) transport = self._transport_for_url(request.url) start = time.perf_counter() - if not isinstance(request.stream, AsyncByteStream): + if not isinstance(request.stream, AsyncByteStream): # pragma: no cover raise RuntimeError( - "Attempted to send an sync request with an AsyncClient instance." + "Attempted to send a sync request with an AsyncClient instance." ) with request_context(request=request):