diff --git a/swh/deposit/api/common.py b/swh/deposit/api/common.py index a1c9bbcac236d02d96147bdcda635b02bc40ed4f..b2a24959c0f72d0a77e922c7e81592070dcf1efb 100644 --- a/swh/deposit/api/common.py +++ b/swh/deposit/api/common.py @@ -116,7 +116,7 @@ class Receipt: def _compute_md5(filehandler: UploadedFile) -> bytes: h = hashlib.md5() for chunk in filehandler: - h.update(chunk) # type: ignore + h.update(chunk) return h.digest() diff --git a/swh/deposit/tests/conftest.py b/swh/deposit/tests/conftest.py index be3b947ff9d9ad9e967a8582a15f2b8920a441c5..e858a1214cc1967e3e34f78e8e71bccba1e22a83 100644 --- a/swh/deposit/tests/conftest.py +++ b/swh/deposit/tests/conftest.py @@ -1,4 +1,4 @@ -# Copyright (C) 2019-2021 The Software Heritage developers +# Copyright (C) 2019-2022 The Software Heritage developers # See the AUTHORS file at the top-level directory of this distribution # License: GNU General Public License version 3, or any later version # See top-level LICENSE file for more information @@ -11,7 +11,7 @@ import re from typing import TYPE_CHECKING, Dict, Mapping from xml.etree import ElementTree -from django.test.utils import setup_databases # type: ignore +from django.test.utils import setup_databases from django.urls import reverse_lazy as reverse import psycopg2 from psycopg2.extensions import ISOLATION_LEVEL_AUTOCOMMIT