Skip to content

Commit

Permalink
auth/__init__.py: get_user should return more useful AbstractUser
Browse files Browse the repository at this point in the history
  • Loading branch information
noelleleigh committed May 31, 2024
1 parent 16d32e2 commit af33bbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django-stubs/contrib/auth/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ async def alogin(
backend: type[ModelBackend] | str | None = ...,
) -> None: ...
def get_user_model() -> type[AbstractUser]: ...
def get_user(request: HttpRequest | Client) -> AbstractBaseUser | AnonymousUser: ...
def get_user(request: HttpRequest | Client) -> AbstractUser | AnonymousUser: ...
def get_permission_codename(action: str, opts: Options[Any]) -> str: ...
def update_session_auth_hash(request: HttpRequest, user: AbstractBaseUser) -> None: ...

Expand Down

0 comments on commit af33bbe

Please sign in to comment.