From cb3fbe2a23d5019d739de9733da8e49b3c320eaa Mon Sep 17 00:00:00 2001 From: Adam Dangoor Date: Sun, 27 Jul 2025 20:55:40 +0100 Subject: [PATCH] Remove mypy overrides for ``tests/test_intl/test_catalogs.py`` (#13767) --- pyproject.toml | 2 -- tests/test_intl/test_catalogs.py | 5 ++++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 9440a9d21a..77ee042a73 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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", diff --git a/tests/test_intl/test_catalogs.py b/tests/test_intl/test_catalogs.py index 022d5c6a64..200e8d9528 100644 --- a/tests/test_intl/test_catalogs.py +++ b/tests/test_intl/test_catalogs.py @@ -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'