From 3808efa3784271ad46cf09d55f84c9a0f8e24483 Mon Sep 17 00:00:00 2001
From: Antoine Lambert <antoine.lambert@inria.fr>
Date: Wed, 9 Jun 2021 14:47:33 +0200
Subject: [PATCH] mypy: Fix errors with release >= v0.900

---
 requirements-test.txt | 3 +++
 swh/__init__.py       | 4 ++--
 swh/web/__init__.py   | 4 ++--
 3 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/requirements-test.txt b/requirements-test.txt
index 2407c40..365c4fb 100644
--- a/requirements-test.txt
+++ b/requirements-test.txt
@@ -1,3 +1,6 @@
 pytest
 pytest-mock
 requests_mock
+types-python-dateutil
+types-pyyaml
+types-requests
diff --git a/swh/__init__.py b/swh/__init__.py
index f14e196..8d9f151 100644
--- a/swh/__init__.py
+++ b/swh/__init__.py
@@ -1,4 +1,4 @@
 from pkgutil import extend_path
-from typing import Iterable
+from typing import List
 
-__path__ = extend_path(__path__, __name__)  # type: Iterable[str]
+__path__: List[str] = extend_path(__path__, __name__)
diff --git a/swh/web/__init__.py b/swh/web/__init__.py
index f14e196..8d9f151 100644
--- a/swh/web/__init__.py
+++ b/swh/web/__init__.py
@@ -1,4 +1,4 @@
 from pkgutil import extend_path
-from typing import Iterable
+from typing import List
 
-__path__ = extend_path(__path__, __name__)  # type: Iterable[str]
+__path__: List[str] = extend_path(__path__, __name__)
-- 
GitLab