Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mypy: add more ignored modules to
pyproject.toml
(spack#38769)
`mypy` will check *all* imported packages, even optional dependencies outside your project, and this can cause issues if you are targeting python versions *older* than the one you're running in. `mypy` will report issues in the latest versions of dependencies as errors even if installing on some older python would have installed an older version of the dependency. We saw this problem before with `numpy` in spack#34732. We've started seeing it with IPython in spack#38704. This fixes the issue by exempting `IPython` and a number of other imports of Spack's from `mypy` checking.