move to xxh3 hashing algorithm

+ port: search
This commit is contained in:
cwilvx
2024-07-03 11:12:06 +03:00
parent ff7343a7be
commit a5634f267f
16 changed files with 322 additions and 182 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
import locale
from typing import TypeVar
from typing import Iterable, TypeVar
T = TypeVar("T")
@@ -16,5 +16,5 @@ def format_number(number: float) -> str:
def flatten(list_: list[list[T]]) -> list[T]:
def flatten(list_: Iterable[list[T]]) -> list[T]:
return [item for sublist in list_ for item in sublist]