mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
fix nullability of scrypt params (#10942)
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user