Skip to content

Conversation

@ska-kialo
Copy link

Fixes #1361.

self.content = b"".join(http_response.streaming_content) # type: ignore
else:
self.content = http_response.content
self.content = cast(HttpResponse, http_response).content
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mypy complained about StreamingHttpResponse not having an attribute content.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Utilising TestAsyncClient with await causes a mypy error

2 participants