Description
Many of the current errors when running the command mypy .
are implementation errors of the following form: scheduling\shortest_job_first.py:8: error: Cannot find implementation or library stub for module named 'pandas'
. These errors can be fixed by adding the comment # type: ignore
at the end of the line, thereby telling mypy to ignore them, for example import pandas as pd # type: ignore
. But all these errors can be silenced by running the command mypy . --ignore-missing-imports
, avoiding the need to fix them one by one. So the question is: should these errors be fixed for each file or can they be ignored since the check to be implemented will silence them anyways? Without the ignore-parameter, we have: Found 586 errors in 189 files
. With it, we have: Found 477 errors in 132 files
.