mypy: Fix errors with v0.900 release
(swh) ✔ ~/swh/swh-environment/swh-web [master|⚑ 65]
11:27 $ make check
pre-commit run --all-files
Trim Trailing Whitespace.................................................Passed
Check JSON...............................................................Passed
Check Yaml...............................................................Passed
flake8...................................................................Passed
codespell................................................................Passed
mypy.....................................................................Failed
- hook id: mypy
- exit code: 1
swh/web/__init__.py:4: error: Argument 1 to "extend_path" has incompatible type "Iterable[str]"; expected "List[str]"
swh/__init__.py:4: error: Argument 1 to "extend_path" has incompatible type "Iterable[str]"; expected "List[str]"
swh/web/api/renderers.py:6: error: Library stubs not installed for "yaml" (or incompatible with Python 3.7)
swh/web/api/renderers.py:6: note: Hint: "python3 -m pip install types-PyYAML"
swh/web/common/utils.py:12: error: Library stubs not installed for "docutils.core" (or incompatible with Python 3.7)
swh/web/common/utils.py:13: error: Library stubs not installed for "docutils.parsers.rst" (or incompatible with Python 3.7)
swh/web/common/utils.py:13: error: Library stubs not installed for "docutils" (or incompatible with Python 3.7)
swh/web/common/utils.py:13: error: Library stubs not installed for "docutils.parsers" (or incompatible with Python 3.7)
swh/web/common/utils.py:14: error: Library stubs not installed for "docutils.utils" (or incompatible with Python 3.7)
swh/web/common/utils.py:15: error: Library stubs not installed for "docutils.writers.html5_polyglot" (or incompatible with Python 3.7)
swh/web/common/origin_save.py:14: error: Library stubs not installed for "requests" (or incompatible with Python 3.7)
swh/web/admin/deposit.py:6: error: Library stubs not installed for "requests" (or incompatible with Python 3.7)
swh/web/admin/deposit.py:6: note: Hint: "python3 -m pip install types-requests"
swh/web/admin/deposit.py:6: note: (or run "mypy --install-types" to install all missing stub packages)
swh/web/admin/deposit.py:6: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
swh/web/admin/deposit.py:7: error: Library stubs not installed for "requests.auth" (or incompatible with Python 3.7)
swh/web/tests/common/test_origin_save.py:13: error: Library stubs not installed for "requests" (or incompatible with Python 3.7)
swh/web/misc/urls.py:8: error: Library stubs not installed for "requests" (or incompatible with Python 3.7)
swh/web/api/apidoc.py:14: error: Library stubs not installed for "docutils.nodes" (or incompatible with Python 3.7)
swh/web/api/apidoc.py:14: note: Hint: "python3 -m pip install types-docutils"
swh/web/api/apidoc.py:14: error: Library stubs not installed for "docutils" (or incompatible with Python 3.7)
swh/web/api/apidoc.py:15: error: Library stubs not installed for "docutils.parsers.rst" (or incompatible with Python 3.7)
swh/web/api/apidoc.py:15: error: Library stubs not installed for "docutils.parsers" (or incompatible with Python 3.7)
swh/web/api/apidoc.py:16: error: Library stubs not installed for "docutils.utils" (or incompatible with Python 3.7)
swh/web/api/views/graph.py:10: error: Library stubs not installed for "requests" (or incompatible with Python 3.7)
swh/web/tests/api/views/test_origin.py:11: error: Library stubs not installed for "requests.utils" (or incompatible with Python 3.7)
Migrated from D5834 (view on Phabricator)