Skip to content

Commit cb3fbe2

Browse files
Remove mypy overrides for tests/test_intl/test_catalogs.py (sphinx-doc#13767)
1 parent 8dd3d88 commit cb3fbe2

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

pyproject.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,6 @@ module = [
272272
"tests.test_extensions.test_ext_napoleon",
273273
"tests.test_extensions.test_ext_todo",
274274
"tests.test_extensions.test_ext_viewcode",
275-
# tests/test_intl
276-
"tests.test_intl.test_catalogs",
277275
# tests/test_markup
278276
"tests.test_markup.test_markup",
279277
"tests.test_markup.test_parser",

tests/test_intl/test_catalogs.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,14 @@
99
import pytest
1010

1111
if TYPE_CHECKING:
12+
from collections.abc import Iterator
13+
14+
from sphinx.testing.fixtures import _app_params
1215
from sphinx.testing.util import SphinxTestApp
1316

1417

1518
@pytest.fixture
16-
def _setup_test(app_params):
19+
def _setup_test(app_params: _app_params) -> Iterator[None]:
1720
assert isinstance(app_params.kwargs['srcdir'], Path)
1821
srcdir = app_params.kwargs['srcdir']
1922
src_locale_dir = srcdir / 'xx' / 'LC_MESSAGES'

0 commit comments

Comments
 (0)