mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Reuse hashlib._Hash in hmac (#12793)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user