Revert "correct the type signature of AbstractBaseUser.set_password (#493)" (#537)

This reverts commit 8729a74f81.
This commit is contained in:
Nikita Sobolev
2021-05-01 13:10:11 +03:00
committed by GitHub
parent e5ff9808cf
commit 5c3898d3b0

View File

@@ -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: ...