Skip to content

Commit

Permalink
HttpResponseBase: Remove Never methods
Browse files Browse the repository at this point in the history
mypy doesn't like how the return types changed in HttpResponse.
  • Loading branch information
noelleleigh committed Oct 31, 2023
1 parent 7aa6689 commit 8500198
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions django-stubs/http/response.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,10 @@ class HttpResponseBase:
) -> None: ...
def make_bytes(self, value: object) -> bytes: ...
def close(self) -> None: ...
def write(self, content: str | bytes) -> Never: ...
def flush(self) -> None: ...
def tell(self) -> Never: ...
def readable(self) -> bool: ...
def seekable(self) -> bool: ...
def writable(self) -> bool: ...
def writelines(self, lines: Iterable[str | bytes]) -> Never: ...

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

0 comments on commit 8500198

Please sign in to comment.