mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-08 05:04:44 +08:00
passlib: allow password hashes to be None for verify() (#8888)
This commit is contained in:
1 parent
c88c9dd18d
commit
f689a3a93a
1 file changed
+2
-2
@@ -67,10 +67,10 @@ class CryptContext:
|
||||
def hash(self, secret: str | bytes, scheme: str | None = ..., category: str | None = ..., **kwds: Any) -> str: ...
|
||||
def encrypt(self, *args, **kwds): ...
|
||||
def verify(
|
||||
self, secret: str | bytes, hash: str | bytes, scheme: str | None = ..., category: str | None = ..., **kwds: Any
|
||||
self, secret: str | bytes, hash: str | bytes | None, scheme: str | None = ..., category: str | None = ..., **kwds: Any
|
||||
) -> bool: ...
|
||||
def verify_and_update(
|
||||
self, secret: str | bytes, hash: str | bytes, scheme: str | None = ..., category: str | None = ..., **kwds: Any
|
||||
self, secret: str | bytes, hash: str | bytes | None, scheme: str | None = ..., category: str | None = ..., **kwds: Any
|
||||
) -> tuple[bool, str | None]: ...
|
||||
def dummy_verify(self, elapsed: int = ...): ...
|
||||
def is_enabled(self, hash: str | bytes) -> bool: ...
|
||||
|
||||
Reference in new issue
Block a user