From 39936cd18ae6419d8a388676b3b4704b7792c0e3 Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Mon, 31 Oct 2022 23:28:53 -0700 Subject: [PATCH] hmac: also support bytearray in 3.7 branch (#9054) --- stdlib/hmac.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/hmac.pyi b/stdlib/hmac.pyi index c5ab94c6c..dc29836b6 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