Skip to content
Myr

Change extensions type (#2803)

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

* Change extensions type * Update changelog * install httpcore from the git * Revert "install httpcore from the git" This reverts commit 1813c6aff178cce3b63d7458ec9a8337542de9dd. * bump httpcore version * fix requirements ---------

authored by Kar Petrosyan · committed by GitHub · parent e874351 · Browse files · 3 files+5 added−3 removed
This commit

State

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

Trailers

  • Co-authored-by: Tom Christie <tom@tomchristie.com>

Diff stats

3 files+5 added−3 removed

  • other:+5 added−3 removed

3 files+5 added−3 removed

modified:httpx/_types.py+3 added-2 removed
14 unmodified lines
15 Iterable,16 Iterator,17 List,18 Mapping,19 MutableMapping,20 NamedTuple,21 Optional,22 Sequence,23 Tuple,
63 unmodified lines
87]8889RequestContent = Union[str, bytes, Iterable[bytes], AsyncIterable[bytes]]90ResponseContent = Union[str, bytes, Iterable[bytes], AsyncIterable[bytes]]90ResponseExtensions = Mapping[str, Any]91ResponseExtensions = MutableMapping[str, Any]9293RequestData = Mapping[str, Any]9495FileContent = Union[IO[bytes], bytes, str]
8 unmodified lines
104 Tuple[Optional[str], FileContent, Optional[str], Mapping[str, str]],105]106RequestFiles = Union[Mapping[str, FileTypes], Sequence[Tuple[str, FileTypes]]]107107RequestExtensions = Mapping[str, Any]108RequestExtensions = MutableMapping[str, Any]109110111class SyncByteStream:112 def __iter__(self) -> Iterator[bytes]:
21 unmodified lines
modified:CHANGELOG.md+1 added
10 unmodified lines
11* Drop support for Python 3.7. (#2813)1213### Added1415* Change the type of `Extensions` from `Mapping[Str, Any]` to `MutableMapping[Str, Any]`. (#2803)16* Add `socket_options` argument to `httpx.HTTPTransport` and `httpx.AsyncHTTPTransport` classes. (#2716)17* The `Response.raise_for_status()` method now returns the response instance. For example: `data = httpx.get('...').raise_for_status().json()`. (#2776)1819### Fixed
1015 unmodified lines
modified:pyproject.toml+1 added-1 removed