Skip to content

Commit edf37be

Browse files
committed
Remove mypy overrides for test_transforms_move_module_targets
1 parent a27f375 commit edf37be

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,6 @@ module = [
283283
"tests.test_theming.test_templating",
284284
"tests.test_theming.test_theming",
285285
# tests/test_transforms
286-
"tests.test_transforms.test_transforms_move_module_targets",
287286
"tests.test_transforms.test_transforms_post_transforms_images",
288287
"tests.test_transforms.test_transforms_reorder_nodes",
289288
# tests/test_util

tests/test_transforms/test_transforms_move_module_targets.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
from __future__ import annotations
22

3+
from pathlib import Path
4+
35
import pytest
46
from docutils import nodes
57

@@ -29,7 +31,7 @@
2931
],
3032
)
3133
@pytest.mark.usefixtures('rollback_sysmodules')
32-
def test_move_module_targets(tmp_path, content):
34+
def test_move_module_targets(tmp_path: Path, content: str) -> None:
3335
# Test for the MoveModuleTargets transform
3436
tmp_path.joinpath('conf.py').touch()
3537
tmp_path.joinpath('index.rst').write_text(content, encoding='utf-8')
@@ -48,7 +50,7 @@ def test_move_module_targets(tmp_path, content):
4850

4951

5052
@pytest.mark.usefixtures('rollback_sysmodules')
51-
def test_move_module_targets_no_section(tmp_path):
53+
def test_move_module_targets_no_section(tmp_path: Path) -> None:
5254
# Test for the MoveModuleTargets transform
5355
tmp_path.joinpath('conf.py').touch()
5456
tmp_path.joinpath('index.rst').write_text(
@@ -63,7 +65,7 @@ def test_move_module_targets_no_section(tmp_path):
6365

6466

6567
@pytest.mark.usefixtures('rollback_sysmodules')
66-
def test_move_module_targets_disabled(tmp_path):
68+
def test_move_module_targets_disabled(tmp_path: Path) -> None:
6769
# Test for the MoveModuleTargets transform
6870
tmp_path.joinpath('conf.py').touch()
6971
tmp_path.joinpath('index.rst').write_text(CONTENT_PY, encoding='utf-8')

0 commit comments

Comments
 (0)