Skip to content

Commit 3284569

Browse files
committed
style: satisfy ruff encoding check
1 parent 7e99ead commit 3284569

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

machine_learning/min_hash.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
def _token_hash(token: str, seed: int, permutation: int) -> int:
1919
"""Return a deterministic 64-bit hash for one token and permutation."""
20-
payload = f"{seed}:{permutation}:{token}".encode("utf-8")
20+
payload = f"{seed}:{permutation}:{token}".encode()
2121
return int.from_bytes(hashlib.blake2b(payload, digest_size=8).digest(), "big")
2222

2323

0 commit comments

Comments
 (0)