mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-10-14 09:22:11 -05:00
Remove mypy overrides for `tests/test_intl/test_catalogs.py` (#13767)
This commit is contained in:
1 parent
8dd3d886ef
commit
cb3fbe2a23
2 files changed
+4
-3
No files matched your search
@@ -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",
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in new issue
Block a user