Skip to content

Commit

Permalink
fix: Use Any for HttpResponse content argument
Browse files Browse the repository at this point in the history
Django can handle anything here, that can be converted to string.
  • Loading branch information
last-partizan committed Nov 15, 2023
1 parent cdf62dd commit d086ce7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django-stubs/http/response.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class HttpResponse(HttpResponseBase, Iterable[bytes]):
test_was_secure_request: bool
xframe_options_exempt: bool
streaming: bool
def __init__(self, content: bytes = ..., *args: Any, **kwargs: Any) -> None: ...
def __init__(self, content: Any = ..., *args: Any, **kwargs: Any) -> None: ...
def serialize(self) -> bytes: ...
@property
def content(self) -> bytes: ...
Expand Down

0 comments on commit d086ce7

Please sign in to comment.