From 5c3898d3b0ce22942b2141f36f1e084e226d0f30 Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Sat, 1 May 2021 13:10:11 +0300 Subject: [PATCH] Revert "correct the type signature of AbstractBaseUser.set_password (#493)" (#537) This reverts commit 8729a74f8141e24ca630507e4271f984a91a53d2. --- django-stubs/contrib/auth/base_user.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django-stubs/contrib/auth/base_user.pyi b/django-stubs/contrib/auth/base_user.pyi index 1d99919..4f3cee0 100644 --- a/django-stubs/contrib/auth/base_user.pyi +++ b/django-stubs/contrib/auth/base_user.pyi @@ -31,7 +31,7 @@ class AbstractBaseUser(models.Model): def is_anonymous(self) -> Literal[False]: ... @property def is_authenticated(self) -> Literal[True]: ... - def set_password(self, raw_password: str) -> None: ... + def set_password(self, raw_password: Optional[str]) -> None: ... def check_password(self, raw_password: str) -> bool: ... def set_unusable_password(self) -> None: ... def has_usable_password(self) -> bool: ...