Skip to content

Fix method return types of TestAsyncClient#1611

Open
ska-kialo wants to merge 3 commits intovitalik:masterfrom
kialo:master
Open

Fix method return types of TestAsyncClient#1611
ska-kialo wants to merge 3 commits intovitalik:masterfrom
kialo:master

Conversation

@ska-kialo
Copy link
Copy Markdown

Fixes #1361.

Comment thread ninja/testing/client.py Outdated
Comment thread ninja/testing/client.py
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
Copy Markdown
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