diff --git a/mypy.ini b/mypy.ini index f2cab72..cabc284 100644 --- a/mypy.ini +++ b/mypy.ini @@ -1,25 +1,26 @@ [mypy] namespace_packages = True warn_unused_ignores = True # support for django magic: https://github.com/typeddjango/django-stubs plugins = mypy_django_plugin.main, mypy_drf_plugin.main [mypy.plugins.django-stubs] django_settings_module = swh.auth.tests.django.app.apptest.settings # 3rd party libraries without stubs (yet) [mypy-jose.*] ignore_missing_imports = True [mypy-keycloak.*] ignore_missing_imports = True [mypy-pkg_resources.*] ignore_missing_imports = True [mypy-pytest.*] ignore_missing_imports = True - +[mypy-yaml.*] +ignore_missing_imports = True diff --git a/requirements.txt b/requirements.txt index a536a34..957da68 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,7 @@ # Add here external Python modules dependencies, one per line. Module names # should match https://pypi.python.org/pypi names. For the full spec or # dependency lines, see https://pip.readthedocs.org/en/1.1/requirements.html python-keycloak >= 0.19.0 +PyYAML +click +types-click diff --git a/swh/__init__.py b/swh/__init__.py index e780381..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__: Iterable[str] = extend_path(__path__, __name__) +__path__: List[str] = extend_path(__path__, __name__)