Skip to content

Commit

Permalink
Reuse hashlib._Hash in hmac (#12793)
Browse files Browse the repository at this point in the history
  • Loading branch information
brianschubert authored Oct 13, 2024
1 parent 5fcd375 commit 88a0f58
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions stdlib/hmac.pyi
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 88a0f58

Please sign in to comment.