mypy currently ignores the tests/ directory. We should enable it. @picnixz this is likely a job for you as you're far more comfortable with the sphinx tests than I! This could also be done incrementally using the 'allow-list' approach i've been using to ratchet up the type linting strictness in the main package