Skip to content

Commit

Permalink
HttpResponseBase isn't iterable
Browse files Browse the repository at this point in the history
  • Loading branch information
noelleleigh committed Oct 31, 2023
1 parent 356e6cd commit 68a0871
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions django-stubs/http/response.pyi
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import datetime
from collections.abc import AsyncIterable, Iterable, Iterator
from collections.abc import AsyncIterable, Iterable
from io import BytesIO
from json import JSONEncoder
from typing import Any, overload
Expand Down Expand Up @@ -72,7 +72,6 @@ class HttpResponseBase:
def seekable(self) -> bool: ...
def writable(self) -> bool: ...
def writelines(self, lines: Iterable[str | bytes]) -> Never: ...
def __iter__(self) -> Iterator[Any]: ...

class HttpResponse(HttpResponseBase, Iterable[bytes]):
csrf_cookie_set: bool
Expand Down

0 comments on commit 68a0871

Please sign in to comment.