Skip to content

Commit 0530f98

Browse files
Add type hint for a use of Pytest's tmp_path_factory (#12791)
1 parent f807729 commit 0530f98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sphinx/testing/fixtures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ def if_graphviz_found(app: SphinxTestApp) -> None: # NoQA: PT004
239239

240240

241241
@pytest.fixture(scope='session')
242-
def sphinx_test_tempdir(tmp_path_factory: Any) -> Path:
242+
def sphinx_test_tempdir(tmp_path_factory: pytest.TempPathFactory) -> Path:
243243
"""Temporary directory."""
244244
return tmp_path_factory.getbasetemp()
245245

0 commit comments

Comments
 (0)