Remove mypy overrides for `tests/test_intl/test_catalogs.py` (#13767)

This commit is contained in:
Adam Dangoor authored and GitHub committed 2025-07-27 20:55:40 +01:00
1 parent 8dd3d886ef
commit cb3fbe2a23
2 files changed
+4 -3

No files matched your search

-2
View File
@@ -272,8 +272,6 @@ module = [
"tests.test_extensions.test_ext_napoleon",
"tests.test_extensions.test_ext_todo",
"tests.test_extensions.test_ext_viewcode",
# tests/test_intl
"tests.test_intl.test_catalogs",
# tests/test_markup
"tests.test_markup.test_markup",
"tests.test_markup.test_parser",
+4 -1
View File
@@ -9,11 +9,14 @@ from typing import TYPE_CHECKING
import pytest
if TYPE_CHECKING:
from collections.abc import Iterator
from sphinx.testing.fixtures import _app_params
from sphinx.testing.util import SphinxTestApp
@pytest.fixture
def _setup_test(app_params):
def _setup_test(app_params: _app_params) -> Iterator[None]:
assert isinstance(app_params.kwargs['srcdir'], Path)
srcdir = app_params.kwargs['srcdir']
src_locale_dir = srcdir / 'xx' / 'LC_MESSAGES'