Reuse hashlib._Hash in hmac (#12793)

This commit is contained in:
Brian Schubert
2024-10-13 08:50:11 -04:00
committed by GitHub
parent 5fcd375815
commit 88a0f58c67

View File

@@ -1,12 +1,11 @@
from _typeshed import ReadableBuffer, SizedBuffer
from collections.abc import Callable
from hashlib import _Hash as _HashlibHash
from types import ModuleType
from typing import Any, AnyStr, overload
from typing import AnyStr, overload
from typing_extensions import TypeAlias
# TODO more precise type for object of hashlib
_Hash: TypeAlias = Any
_DigestMod: TypeAlias = str | Callable[[], _Hash] | ModuleType
_DigestMod: TypeAlias = str | Callable[[], _HashlibHash] | ModuleType
trans_5C: bytes
trans_36: bytes