Skip to content

Commit

Permalink
Change type of Extensions (#762)
Browse files Browse the repository at this point in the history
* Change type of Extensions, update changelog

* Add pr number

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>

---------

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
  • Loading branch information
karpetrosyan and Kludex authored Jul 28, 2023
1 parent 0211d10 commit c86d507
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## Unreleased

- Change the type of `Extensions` from `Mapping[Str, Any]` to `MutableMapping[Str, Any]`. (#762)
- Handle HTTP/1.1 half-closed connections gracefully. (#641)

## 0.17.3 (5th July 2023)
Expand Down
3 changes: 2 additions & 1 deletion httpcore/_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
Iterator,
List,
Mapping,
MutableMapping,
Optional,
Sequence,
Tuple,
Expand All @@ -20,7 +21,7 @@
HeadersAsMapping = Mapping[Union[bytes, str], Union[bytes, str]]
HeaderTypes = Union[HeadersAsSequence, HeadersAsMapping, None]

Extensions = Mapping[str, Any]
Extensions = MutableMapping[str, Any]


def enforce_bytes(value: Union[bytes, str], *, name: str) -> bytes:
Expand Down

0 comments on commit c86d507

Please sign in to comment.