mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
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:
parent
629b0aef8c
commit
df75a67c48
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user