From 38ed18a3f416618920a99684cda0993bf72cc0db Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Mon, 31 Oct 2022 21:27:31 -0700 Subject: [PATCH] hmac: also support bytearray in 3.7 branch --- stdlib/hmac.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/hmac.pyi b/stdlib/hmac.pyi index c5ab94c6ca4b..dc29836b6b87 100644 --- a/stdlib/hmac.pyi +++ b/stdlib/hmac.pyi @@ -23,7 +23,7 @@ if sys.version_info >= (3, 8): def new(key: bytes | bytearray, *, digestmod: _DigestMod) -> HMAC: ... else: - def new(key: bytes, msg: ReadableBuffer | None = ..., digestmod: _DigestMod | None = ...) -> HMAC: ... + def new(key: bytes | bytearray, msg: ReadableBuffer | None = ..., digestmod: _DigestMod | None = ...) -> HMAC: ... class HMAC: digest_size: int