Fix the type annotation for `sphinx.testing.fixtures.rootdir` (#12764)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
This commit is contained in:
nikkie 2024-08-12 01:56:37 +09:00 committed by GitHub
parent 629b0aef8c
commit df75a67c48
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -42,7 +42,7 @@ def pytest_configure(config: pytest.Config) -> None:
@pytest.fixture(scope='session')
def rootdir() -> str | None:
def rootdir() -> Path | None:
return None
@ -74,7 +74,7 @@ def app_params(
test_params: dict[str, Any],
shared_result: SharedResult,
sphinx_test_tempdir: str,
rootdir: str,
rootdir: Path,
) -> _app_params:
"""
Parameters that are specified by 'pytest.mark.sphinx' for