From f689a3a93a64c028e5e64d4f7c3343a0e5635b5b Mon Sep 17 00:00:00 2001 From: Stanislav Zmiev Date: Fri, 14 Oct 2022 00:23:37 +0400 Subject: [PATCH] passlib: allow password hashes to be None for verify() (#8888) --- stubs/passlib/passlib/context.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stubs/passlib/passlib/context.pyi b/stubs/passlib/passlib/context.pyi index 2a394d141..23e84fc10 100644 --- a/stubs/passlib/passlib/context.pyi +++ b/stubs/passlib/passlib/context.pyi @@ -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: ...