We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
BasePasswordHasher.safe_summary
_StrOrPromise
1 parent 1a0ee53 commit 14ddbf7Copy full SHA for 14ddbf7
django-stubs/contrib/auth/hashers.pyi
@@ -1,6 +1,8 @@
1
from collections.abc import Callable
2
from typing import Any
3
4
+from django.utils.functional import _StrOrPromise
5
+
6
UNUSABLE_PASSWORD_PREFIX: str
7
UNUSABLE_PASSWORD_SUFFIX_LENGTH: int
8
@@ -32,7 +34,7 @@ class BasePasswordHasher:
32
34
def verify(self, password: str, encoded: str) -> bool: ...
33
35
def encode(self, password: str, salt: str) -> str: ...
36
def decode(self, encoded: str) -> dict[str, Any]: ...
- def safe_summary(self, encoded: str) -> dict[str, Any]: ...
37
+ def safe_summary(self, encoded: str) -> dict[_StrOrPromise, Any]: ...
38
def must_update(self, encoded: str) -> bool: ...
39
def harden_runtime(self, password: str, encoded: str) -> None: ...
40
0 commit comments