Skip to content

Commit 39f7b93

Browse files
author
Yusuke Hayashi
authored
Update type hints of contrib.auth.hashers (#1955)
1 parent 1d91c75 commit 39f7b93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

django-stubs/contrib/auth/hashers.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ class BasePasswordHasher:
2929
salt_entropy: int
3030
def salt(self) -> str: ...
3131
def verify(self, password: str, encoded: str) -> bool: ...
32-
def encode(self, password: str, salt: str) -> Any: ...
32+
def encode(self, password: str, salt: str) -> str: ...
3333
def decode(self, encoded: str) -> dict[str, Any]: ...
34-
def safe_summary(self, encoded: str) -> Any: ...
34+
def safe_summary(self, encoded: str) -> dict[str, Any]: ...
3535
def must_update(self, encoded: str) -> bool: ...
3636
def harden_runtime(self, password: str, encoded: str) -> None: ...
3737

0 commit comments

Comments
 (0)