diff --git a/stdlib/hashlib.pyi b/stdlib/hashlib.pyi index 18b1ab549..ed1321f23 100644 --- a/stdlib/hashlib.pyi +++ b/stdlib/hashlib.pyi @@ -113,14 +113,7 @@ shake_128 = _VarLenHash shake_256 = _VarLenHash def scrypt( - password: ReadableBuffer, - *, - salt: ReadableBuffer | None = None, - n: int | None = None, - r: int | None = None, - p: int | None = None, - maxmem: int = 0, - dklen: int = 64, + password: ReadableBuffer, *, salt: ReadableBuffer, n: int, r: int, p: int, maxmem: int = 0, dklen: int = 64 ) -> bytes: ... @final class _BlakeHash(_Hash): diff --git a/tests/stubtest_allowlists/py3_common.txt b/tests/stubtest_allowlists/py3_common.txt index a1d9b2b85..c0e624182 100644 --- a/tests/stubtest_allowlists/py3_common.txt +++ b/tests/stubtest_allowlists/py3_common.txt @@ -416,6 +416,7 @@ csv.DictWriter.__init__ # runtime sig has *args but will error if more than 5 p contextvars.Context.__init__ # C signature is broader than what is actually accepted dataclasses.field # White lies around defaults +hashlib.scrypt # Raises TypeError if salt, n, r or p are None hashlib.sha3_\d+ # Can be a class or a built-in function, can't be subclassed at runtime hashlib.shake_\d+ # Can be a class or a built-in function, can't be subclassed at runtime hmac.HMAC.blocksize # use block_size instead