We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4dc5d9a commit 36311a8Copy full SHA for 36311a8
django-stubs/http/request.pyi
@@ -105,8 +105,8 @@ class HttpRequest:
105
def accepts(self, media_type: str) -> bool: ...
106
def close(self) -> None: ...
107
# File-like and iterator interface, a minimal subset of BytesIO.
108
- def read(self, n: int = -1, /) -> bytes: ...
109
- def readline(self, limit: int = -1, /) -> bytes: ...
+ def read(self, n: int | None = -1, /) -> bytes: ...
+ def readline(self, limit: int | None = -1, /) -> bytes: ...
110
def __iter__(self) -> Iterator[bytes]: ...
111
def readlines(self) -> list[bytes]: ...
112
0 commit comments