Skip to content

Commit

Permalink
Merge pull request #906 from python-openapi/dependabot/pip/starlette-…
Browse files Browse the repository at this point in the history
…0.38.4

Bump starlette from 0.37.2 to 0.38.4
  • Loading branch information
p1c2u authored Sep 2, 2024
2 parents 3ac2d70 + eb9dbc1 commit 0d97147
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
3 changes: 1 addition & 2 deletions openapi_core/contrib/starlette/integrations.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from aioitertools.itertools import tee as atee
from starlette.requests import Request
from starlette.responses import Response
from starlette.responses import StreamingResponse

from openapi_core.contrib.starlette.requests import StarletteOpenAPIRequest
from openapi_core.contrib.starlette.responses import StarletteOpenAPIResponse
Expand All @@ -24,7 +23,7 @@ async def get_openapi_response(
) -> StarletteOpenAPIResponse:
assert self.response_cls is not None
data = None
if isinstance(response, StreamingResponse):
if hasattr(response, "body_iterator"):
body_iter1, body_iter2 = atee(response.body_iterator)
response.body_iterator = body_iter2
data = b"".join(
Expand Down
8 changes: 4 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ django = {version = ">=3.0", optional = true}
falcon = {version = ">=3.0", optional = true}
flask = {version = "*", optional = true}
aiohttp = {version = ">=3.0", optional = true}
starlette = {version = ">=0.26.1,<0.38.0", optional = true}
starlette = {version = ">=0.26.1,<0.39.0", optional = true}
isodate = "*"
more-itertools = "*"
parse = "*"
Expand Down Expand Up @@ -101,7 +101,7 @@ pytest-flake8 = "*"
pytest-cov = "*"
python-multipart = "*"
responses = "*"
starlette = ">=0.26.1,<0.38.0"
starlette = ">=0.26.1,<0.39.0"
strict-rfc3339 = "^0.7"
webob = "*"
mypy = "^1.2"
Expand Down

0 comments on commit 0d97147

Please sign in to comment.