Skip to content

Commit 3ea84cb

Browse files
author
hauntsaninja
committed
hashlib: add default values to scrypt, make args Optional
1 parent 1c4727d commit 3ea84cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/3/hashlib.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ if sys.version_info >= (3, 6):
5555
shake_128 = _VarLenHash
5656
shake_256 = _VarLenHash
5757

58-
def scrypt(password: _DataType, *, salt: _DataType, n: int, r: int, p: int, maxmem: int = ..., dklen: int = ...) -> bytes: ...
58+
def scrypt(password: _DataType, *, salt: Optional[_DataType] = ..., n: Optional[int] = ..., r: Optional[int] = ..., p: Optional[int] = ..., maxmem: int = ..., dklen: int = ...) -> bytes: ...
5959

6060
class _BlakeHash(_Hash):
6161
MAX_DIGEST_SIZE: int

0 commit comments

Comments
 (0)