From b2e3b52ee2a7ca9cde572aea74f308a5ef336549 Mon Sep 17 00:00:00 2001 From: Ludolf Takens Date: Wed, 4 Oct 2023 22:17:52 +0200 Subject: [PATCH] Specify return type for APIClient.credentials method (#469) --- rest_framework-stubs/test.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest_framework-stubs/test.pyi b/rest_framework-stubs/test.pyi index b5dca1581..bec063896 100644 --- a/rest_framework-stubs/test.pyi +++ b/rest_framework-stubs/test.pyi @@ -73,7 +73,7 @@ class ForceAuthClientHandler(ClientHandler): def get_response(self, request: Request) -> _MonkeyPatchedResponse: ... # type: ignore[override] class APIClient(APIRequestFactory, DjangoClient): - def credentials(self, **kwargs: Any): ... + def credentials(self, **kwargs: Any) -> None: ... def force_authenticate( self, user: AnonymousUser | AbstractBaseUser | None = ..., token: Token | None = ... ) -> None: ...