I'm trying to run mypy
type hints and just get a lot of errors for external libraries.
I've checked this topic in the docs
and have a mypy.ini
like this:
# Global options:
[mypy]
python_version = 3.8
; warn_return_any = True
; warn_unused_configs = True
# Per-module options:
[httplib2]
ignore_missing_imports = True
[google.cloud]
ignore_missing_imports = True
but when I run mypy it still fills the console with these errors. And, ironically, doesn't find any deliberate errors in my own code.
(venv) dcollier@dcsan:~/dev/kzen$ mypy cxutils/digger/chat_stat.py
cxutils/gbot.py:11: error: Skipping analyzing 'httplib2': found module but no type hints or library stubs
cxutils/logit.py:10: error: Skipping analyzing 'google.cloud': found module but no type hints or library stubs
cxutils/logit.py:12: error: Skipping analyzing 'ansimarkup': found module but no type hints or library stubs
cxutils/biglib.py:18: error: Skipping analyzing 'pandas_gbq': found module but no type hints or library stubs
... etc
I'm using mypy in a virtualenv and which mypy
confirms this.