From 99f23ddaea4dcb74fbf68feb154152af001ac901 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Sat, 13 May 2023 23:25:38 +0300 Subject: [PATCH] Updated for typing --- slpkg/checksum.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/slpkg/checksum.py b/slpkg/checksum.py index f82a2bdd..ec9b6953 100644 --- a/slpkg/checksum.py +++ b/slpkg/checksum.py @@ -34,9 +34,9 @@ class Md5sum: filename = source_file.split('/')[-1] source_path = Path(path, filename) - md5 = self.read_binary_file(source_path) + md5: bytes = self.read_binary_file(source_path) file_check: str = hashlib.md5(md5).hexdigest() - checksum = "".join(checksum) + checksum: str = "".join(checksum) if file_check != checksum: self.ascii.draw_checksum_error_box(filename, checksum, file_check)