Skip to content
Myr

fix typo (#3519)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kar Petrosyan · committed by GitHub · parent e70d0b0 · Browse files · 2 files+4 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+4 added−4 removed

  • other:+4 added−4 removed

2 files+4 added−4 removed

modified:httpx/_client.py+1 added-1 removed
1721 unmodified lines
1722 start = time.perf_counter()17231724 if not isinstance(request.stream, AsyncByteStream):1725 raise RuntimeError(1726 "Attempted to send an sync request with an AsyncClient instance."1726 "Attempted to send a sync request with an AsyncClient instance."1727 )17281729 with request_context(request=request):1730 response = await transport.handle_async_request(request)
289 unmodified lines
modified:httpx/_models.py+3 added-3 removed
962 unmodified lines
963 Close the response and release the connection.964 Automatically called if the response body is read to completion.965 """966 if not isinstance(self.stream, SyncByteStream):967 raise RuntimeError("Attempted to call an sync close on an async stream.")967 raise RuntimeError("Attempted to call a sync close on an async stream.")968969 if not self.is_closed:970 self.is_closed = True971 with request_context(request=self._request):
72 unmodified lines
1044 raise StreamConsumed()1045 if self.is_closed:1046 raise StreamClosed()1047 if not isinstance(self.stream, AsyncByteStream):1048 raise RuntimeError("Attempted to call an async iterator on an sync stream.")1048 raise RuntimeError("Attempted to call an async iterator on a sync stream.")10491050 self.is_stream_consumed = True1051 self._num_bytes_downloaded = 01052 chunker = ByteChunker(chunk_size=chunk_size)
14 unmodified lines
1067 Close the response and release the connection.1068 Automatically called if the response body is read to completion.1069 """1070 if not isinstance(self.stream, AsyncByteStream):1071 raise RuntimeError("Attempted to call an async close on an sync stream.")1071 raise RuntimeError("Attempted to call an async close on a sync stream.")10721073 if not self.is_closed:1074 self.is_closed = True1075 with request_context(request=self._request):
202 unmodified lines