Skip to content

Commit 0d97147

Browse files
authored
Merge pull request #906 from python-openapi/dependabot/pip/starlette-0.38.4
Bump starlette from 0.37.2 to 0.38.4
2 parents 3ac2d70 + eb9dbc1 commit 0d97147

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

openapi_core/contrib/starlette/integrations.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from aioitertools.itertools import tee as atee
22
from starlette.requests import Request
33
from starlette.responses import Response
4-
from starlette.responses import StreamingResponse
54

65
from openapi_core.contrib.starlette.requests import StarletteOpenAPIRequest
76
from openapi_core.contrib.starlette.responses import StarletteOpenAPIResponse
@@ -24,7 +23,7 @@ async def get_openapi_response(
2423
) -> StarletteOpenAPIResponse:
2524
assert self.response_cls is not None
2625
data = None
27-
if isinstance(response, StreamingResponse):
26+
if hasattr(response, "body_iterator"):
2827
body_iter1, body_iter2 = atee(response.body_iterator)
2928
response.body_iterator = body_iter2
3029
data = b"".join(

poetry.lock

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ django = {version = ">=3.0", optional = true}
6565
falcon = {version = ">=3.0", optional = true}
6666
flask = {version = "*", optional = true}
6767
aiohttp = {version = ">=3.0", optional = true}
68-
starlette = {version = ">=0.26.1,<0.38.0", optional = true}
68+
starlette = {version = ">=0.26.1,<0.39.0", optional = true}
6969
isodate = "*"
7070
more-itertools = "*"
7171
parse = "*"
@@ -101,7 +101,7 @@ pytest-flake8 = "*"
101101
pytest-cov = "*"
102102
python-multipart = "*"
103103
responses = "*"
104-
starlette = ">=0.26.1,<0.38.0"
104+
starlette = ">=0.26.1,<0.39.0"
105105
strict-rfc3339 = "^0.7"
106106
webob = "*"
107107
mypy = "^1.2"

0 commit comments

Comments
 (0)