Skip to content

Commit

Permalink
user parameter for login accepts None (typeddjango#496)
Browse files Browse the repository at this point in the history
Co-authored-by: Gilad Sheffer <[email protected]>
  • Loading branch information
giladsheffer and gilad-orca authored Oct 19, 2020
1 parent 8729a74 commit d746e3f
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 @@ -23,7 +23,7 @@ def load_backend(path: str) -> ModelBackend: ...
def get_backends() -> List[ModelBackend]: ...
def authenticate(request: Any = ..., **credentials: Any) -> Optional[AbstractBaseUser]: ...
def login(
request: HttpRequest, user: AbstractBaseUser, backend: Optional[Union[Type[ModelBackend], str]] = ...
request: HttpRequest, user: Optional[AbstractBaseUser], backend: Optional[Union[Type[ModelBackend], str]] = ...
) -> None: ...
def logout(request: HttpRequest) -> None: ...
def get_user_model() -> Type[Model]: ...
Expand Down

0 comments on commit d746e3f

Please sign in to comment.