From 340b0010229b1fe5151139f9e975521f7ef58030 Mon Sep 17 00:00:00 2001 From: Stefano Zacchiroli <zack@upsilon.cc> Date: Fri, 27 Sep 2019 09:12:30 +0200 Subject: [PATCH] init.py: switch to documented way of extending path make mypy 0.730 pass cleanly again --- swh/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/swh/__init__.py b/swh/__init__.py index de9df068..f14e1965 100644 --- a/swh/__init__.py +++ b/swh/__init__.py @@ -1,4 +1,4 @@ +from pkgutil import extend_path from typing import Iterable -__path__ = __import__('pkgutil').extend_path(__path__, - __name__) # type: Iterable[str] +__path__ = extend_path(__path__, __name__) # type: Iterable[str] -- GitLab