Skip to content

Commit 14ddbf7

Browse files
jdelicsobolevnpre-commit-ci[bot]
authored
BasePasswordHasher.safe_summary commonly uses _StrOrPromise (#2742)
Co-authored-by: sobolevn <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 1a0ee53 commit 14ddbf7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

django-stubs/contrib/auth/hashers.pyi

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
from collections.abc import Callable
22
from typing import Any
33

4+
from django.utils.functional import _StrOrPromise
5+
46
UNUSABLE_PASSWORD_PREFIX: str
57
UNUSABLE_PASSWORD_SUFFIX_LENGTH: int
68

@@ -32,7 +34,7 @@ class BasePasswordHasher:
3234
def verify(self, password: str, encoded: str) -> bool: ...
3335
def encode(self, password: str, salt: str) -> str: ...
3436
def decode(self, encoded: str) -> dict[str, Any]: ...
35-
def safe_summary(self, encoded: str) -> dict[str, Any]: ...
37+
def safe_summary(self, encoded: str) -> dict[_StrOrPromise, Any]: ...
3638
def must_update(self, encoded: str) -> bool: ...
3739
def harden_runtime(self, password: str, encoded: str) -> None: ...
3840

0 commit comments

Comments
 (0)