From ec7838123b0f9493c80137f327e5acd03b72750f Mon Sep 17 00:00:00 2001 From: "Antoine R. Dumont (@ardumont)" Date: Thu, 16 Dec 2021 16:10:20 +0100 Subject: [PATCH] Pin mypy and drop type annotations which makes mypy unhappy This also drops spurious copyright headers to those files if present. Related to T3812 --- swh/__init__.py | 3 +-- tox.ini | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/swh/__init__.py b/swh/__init__.py index 8d9f151..b36383a 100644 --- a/swh/__init__.py +++ b/swh/__init__.py @@ -1,4 +1,3 @@ from pkgutil import extend_path -from typing import List -__path__: List[str] = extend_path(__path__, __name__) +__path__ = extend_path(__path__, __name__) diff --git a/tox.ini b/tox.ini index 66e29ea..cef302c 100644 --- a/tox.ini +++ b/tox.ini @@ -34,7 +34,7 @@ commands = extras = testing deps = - mypy + mypy==0.920 commands = mypy swh