Change extensions type (#2803)
* Change extensions type
* Update changelog
* install httpcore from the git
* Revert "install httpcore from the git"
This reverts commit 1813c6aff1.
* bump httpcore version
* fix requirements
---------
Co-authored-by: Tom Christie <tom@tomchristie.com>
This commit is contained in:
parent
e874351f04
commit
adbcd0e0e7
@ -12,6 +12,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||
|
||||
### Added
|
||||
|
||||
* Change the type of `Extensions` from `Mapping[Str, Any]` to `MutableMapping[Str, Any]`. (#2803)
|
||||
* Add `socket_options` argument to `httpx.HTTPTransport` and `httpx.AsyncHTTPTransport` classes. (#2716)
|
||||
* The `Response.raise_for_status()` method now returns the response instance. For example: `data = httpx.get('...').raise_for_status().json()`. (#2776)
|
||||
|
||||
|
||||
@ -16,6 +16,7 @@ from typing import (
|
||||
Iterator,
|
||||
List,
|
||||
Mapping,
|
||||
MutableMapping,
|
||||
NamedTuple,
|
||||
Optional,
|
||||
Sequence,
|
||||
@ -87,7 +88,7 @@ AuthTypes = Union[
|
||||
|
||||
RequestContent = Union[str, bytes, Iterable[bytes], AsyncIterable[bytes]]
|
||||
ResponseContent = Union[str, bytes, Iterable[bytes], AsyncIterable[bytes]]
|
||||
ResponseExtensions = Mapping[str, Any]
|
||||
ResponseExtensions = MutableMapping[str, Any]
|
||||
|
||||
RequestData = Mapping[str, Any]
|
||||
|
||||
@ -104,7 +105,7 @@ FileTypes = Union[
|
||||
]
|
||||
RequestFiles = Union[Mapping[str, FileTypes], Sequence[Tuple[str, FileTypes]]]
|
||||
|
||||
RequestExtensions = Mapping[str, Any]
|
||||
RequestExtensions = MutableMapping[str, Any]
|
||||
|
||||
|
||||
class SyncByteStream:
|
||||
|
||||
@ -28,7 +28,7 @@ classifiers = [
|
||||
]
|
||||
dependencies = [
|
||||
"certifi",
|
||||
"httpcore>=0.17.2,<0.18.0",
|
||||
"httpcore>=0.18.0,<0.19.0",
|
||||
"idna",
|
||||
"sniffio",
|
||||
]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user