Skip to content

Commit

Permalink
Specify return type for APIClient.credentials method (#469)
Browse files Browse the repository at this point in the history
  • Loading branch information
ltakens authored Oct 4, 2023
1 parent 5615274 commit b2e3b52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rest_framework-stubs/test.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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: ...
Expand Down

0 comments on commit b2e3b52

Please sign in to comment.