Skip to content

Commit a02551c

Browse files
committed
Remove mypy overrides for tests/test_util/test_util.py
1 parent ad360fd commit a02551c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,6 @@ module = [
286286
"tests.test_transforms.test_transforms_post_transforms_images",
287287
"tests.test_transforms.test_transforms_reorder_nodes",
288288
# tests/test_util
289-
"tests.test_util.test_util",
290289
"tests.test_util.test_util_display",
291290
"tests.test_util.test_util_docutils",
292291
"tests.test_util.test_util_inventory",

tests/test_util/test_util.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
from __future__ import annotations
44

5+
from typing import TYPE_CHECKING
6+
57
import pytest
68

79
import sphinx.util
@@ -29,8 +31,11 @@
2931
relative_uri,
3032
)
3133

34+
if TYPE_CHECKING:
35+
from pathlib import Path
36+
3237

33-
def test_ensuredir(tmp_path):
38+
def test_ensuredir(tmp_path: Path) -> None:
3439
# Does not raise an exception for an existing directory.
3540
ensuredir(tmp_path)
3641

0 commit comments

Comments
 (0)