mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-08 21:15:17 +08:00
hmac: also support bytearray in 3.7 branch (#9054)
This commit is contained in:
1 parent
524cd53d73
commit
39936cd18a
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user