Skip to content

Commit

Permalink
fix-typing (#291)
Browse files Browse the repository at this point in the history
* fix-typing

* changelog
  • Loading branch information
karpetrosyan authored Dec 9, 2024
1 parent 4ff7a0e commit c08d8b1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# Changelog

## development

- Fix compatibility with httpx. (#291)

## 0.1.1 (2nd Nov, 2024)

- FIx typig extensions nor found. (#290)
- Fix typing extensions not found. (#290)

## 0.1.0 (2nd Nov, 2024)

Expand Down
2 changes: 1 addition & 1 deletion hishel/_async/_transports.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ async def handle_async_request(self, request: Request) -> Response:
# Controller has determined that the response needs to be re-validated.
assert isinstance(res.stream, tp.AsyncIterable)
revalidation_request = Request(
method=res.method,
method=res.method.decode(),
url=normalized_url(res.url),
headers=res.headers,
stream=AsyncCacheStream(res.stream),
Expand Down
2 changes: 1 addition & 1 deletion hishel/_sync/_transports.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def handle_request(self, request: Request) -> Response:
# Controller has determined that the response needs to be re-validated.
assert isinstance(res.stream, tp.Iterable)
revalidation_request = Request(
method=res.method,
method=res.method.decode(),
url=normalized_url(res.url),
headers=res.headers,
stream=CacheStream(res.stream),
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ classifiers = [
"Topic :: Internet :: WWW/HTTP",
]
dependencies = [
"httpx>=0.22.0",
"httpx>=0.28.0",
]

[project.optional-dependencies]
Expand Down

0 comments on commit c08d8b1

Please sign in to comment.