We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ed580f commit 3e4ee75Copy full SHA for 3e4ee75
1 file changed
probables/hashes.py
@@ -41,7 +41,7 @@ def hashing_func(key, depth=1):
41
return hashing_func
42
43
44
-def hash_with_depth_int(func: HashFuncT | SimpleHashT) -> HashFuncT:
+def hash_with_depth_int(func: Union[HashFuncT, SimpleHashT]) -> HashFuncT:
45
"""Decorator to turn a function that takes a single key and hashes it to
46
an int. Wraps functions to be used in Bloom filters and Count-Min
47
sketch data structures.
0 commit comments