Skip to content

Commit

Permalink
attempt to use typealias
Browse files Browse the repository at this point in the history
  • Loading branch information
barrust committed Dec 27, 2024
1 parent a2622de commit 2cb28d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions probables/hashes.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
from functools import wraps
from hashlib import md5, sha256
from struct import unpack
from typing import Callable, Union
from typing import Callable, TypeAlias

from probables.constants import UINT32_T_MAX, UINT64_T_MAX

KeyT = Union[str, bytes]
KeyT: TypeAlias = str | bytes
SimpleHashT = Callable[[KeyT, int], int]
HashResultsT = list[int]
HashFuncT = Callable[[KeyT, int], HashResultsT]
Expand Down

0 comments on commit 2cb28d0

Please sign in to comment.