Fix mypy errors in test_translators.py