Skip to content

Commit cfde8a9

Browse files
authored
5.0: Update django.test.client (#2059)
1 parent 55def63 commit cfde8a9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

django-stubs/test/client.pyi

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
from collections.abc import Awaitable, Callable, Iterable, Iterator, Mapping
1+
from collections.abc import AsyncIterable, AsyncIterator, Awaitable, Callable, Iterable, Iterator, Mapping
2+
from http import HTTPStatus
23
from http.cookies import SimpleCookie
34
from io import BytesIO, IOBase
45
from json import JSONEncoder
@@ -23,6 +24,7 @@ BOUNDARY: str
2324
MULTIPART_CONTENT: str
2425
CONTENT_TYPE_RE: Pattern[str]
2526
JSON_CONTENT_TYPE_RE: Pattern[str]
27+
REDIRECT_STATUS_CODES: frozenset[HTTPStatus]
2628

2729
class RedirectCycleError(Exception):
2830
last_response: HttpResponseBase
@@ -40,6 +42,7 @@ class FakePayload(IOBase):
4042
_T = TypeVar("_T")
4143

4244
def closing_iterator_wrapper(iterable: Iterable[_T], close: Callable[[], Any]) -> Iterator[_T]: ...
45+
async def aclosing_iterator_wrapper(iterable: AsyncIterable[_T], close: Callable[[], Any]) -> AsyncIterator[_T]: ...
4346
def conditional_content_removal(request: HttpRequest, response: HttpResponseBase) -> HttpResponseBase: ...
4447
@type_check_only
4548
class _WSGIResponse(HttpResponseBase):

0 commit comments

Comments
 (0)