From 1c83171885ce938a437617cb1f3913f51a1f43f0 Mon Sep 17 00:00:00 2001 From: hauntsaninja Date: Tue, 15 Oct 2024 00:12:55 -0700 Subject: [PATCH] Use sha1 for hashing --- mypy/util.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mypy/util.py b/mypy/util.py index 4b1b918b92e6..75b3e9101731 100644 --- a/mypy/util.py +++ b/mypy/util.py @@ -535,9 +535,7 @@ def hash_digest(data: bytes) -> str: accidental collision, but we don't really care about any of the cryptographic properties. """ - # Once we drop Python 3.5 support, we should consider using - # blake2b, which is faster. - return hashlib.sha256(data).hexdigest() + return hashlib.sha1(data).hexdigest() def parse_gray_color(cup: bytes) -> str: