Skip to content

Commit

Permalink
Allow AsyncClient to set defaults other than string
Browse files Browse the repository at this point in the history
e.g. overriding client for an ASGI request requires a list
  • Loading branch information
flaeppe committed Dec 15, 2023
1 parent 29c74e6 commit 92cdb6e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion django-stubs/test/client.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,10 @@ class _RequestFactory(Generic[_T]):
) -> _T: ...

class RequestFactory(_RequestFactory[WSGIRequest]): ...
class _AsyncRequestFactory(_RequestFactory[_T]): ...

class _AsyncRequestFactory(_RequestFactory[_T]):
defaults: dict[str, Any]

class AsyncRequestFactory(_AsyncRequestFactory[ASGIRequest]): ...

# fakes to distinguish WSGIRequest and ASGIRequest
Expand Down

0 comments on commit 92cdb6e

Please sign in to comment.