docs: Fix a typo in mypy documentation.

Signed-off-by: Zixuan James Li <p359101898@gmail.com>
This commit is contained in:
Zixuan James Li 2022-10-07 16:47:38 -04:00 committed by Tim Abbott
parent 8b6976331a
commit a98330b000
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ def get_book_meta_data(
return Book.objects.filter(id__in=book_ids).values("name", "id") return Book.objects.filter(id__in=book_ids).values("name", "id")
``` ```
When writing a helper function ehat returns the response from a test When writing a helper function that returns the response from a test
client, it should be typed as `TestHttpResponse` instead of client, it should be typed as `TestHttpResponse` instead of
`HttpResponse`. This type is only defined in the Django stubs, so it `HttpResponse`. This type is only defined in the Django stubs, so it
has to be conditionally imported only when type has to be conditionally imported only when type