Currently, type hints are not added to tests to avoid the maintenance burden, and mypy does not check the tests. In general, it would be nice to have type hints on tests, espsecially where they aid in reading. This is particularly important for some cases, see here.
In a new PR, we can start by:
- extend mypy to cover tests
- start adding type hints where useful, here first.
- extend developer docs to explain the situation
Currently, type hints are not added to tests to avoid the maintenance burden, and mypy does not check the tests. In general, it would be nice to have type hints on tests, espsecially where they aid in reading. This is particularly important for some cases, see here.
In a new PR, we can start by: