mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
Extend digest argument type for hmac.digest (#7931)
Now allows a `Callable` and `ModuleType` in addition to `str`
This commit is contained in:
@@ -42,4 +42,4 @@ def compare_digest(__a: ReadableBuffer, __b: ReadableBuffer) -> bool: ...
|
||||
def compare_digest(__a: AnyStr, __b: AnyStr) -> bool: ...
|
||||
|
||||
if sys.version_info >= (3, 7):
|
||||
def digest(key: bytes, msg: ReadableBuffer, digest: str) -> bytes: ...
|
||||
def digest(key: bytes, msg: ReadableBuffer, digest: _DigestMod) -> bytes: ...
|
||||
|
||||
Reference in New Issue
Block a user