Skip to content

Commit

Permalink
more changes
Browse files Browse the repository at this point in the history
  • Loading branch information
barrust committed Dec 27, 2024
1 parent 822df8a commit a2622de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions probables/cuckoo/countingcuckoo.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,7 @@ def init_error_rate(
return cku

@classmethod
def load_error_rate(
cls, error_rate: float, filepath: str | Path, hash_function: SimpleHashT | None = None
):
def load_error_rate(cls, error_rate: float, filepath: str | Path, hash_function: SimpleHashT | None = None):
"""Initialize a previously exported Cuckoo Filter based on error rate
Args:
Expand Down
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
from typing import Callable, Union

from probables.constants import UINT32_T_MAX, UINT64_T_MAX

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

0 comments on commit a2622de

Please sign in to comment.