Fix type annotation for `make_app` pytest fixture (#13768)

This commit is contained in:
Adam Dangoor authored and GitHub committed 2025-07-27 20:56:23 +01:00
1 parent cb3fbe2a23
commit 087d77c823
1 file changed
+2 -2
+2 -2
View File
@@ -151,7 +151,7 @@ def test_params(request: Any) -> dict[str, Any]:
def app(
test_params: dict[str, Any],
app_params: _app_params,
make_app: Callable[[], SphinxTestApp],
make_app: Callable[..., SphinxTestApp],
shared_result: SharedResult,
) -> Iterator[SphinxTestApp]:
"""Provides the 'sphinx.application.Sphinx' object"""
@@ -183,7 +183,7 @@ def warning(app: SphinxTestApp) -> StringIO:
@pytest.fixture
def make_app(test_params: dict[str, Any]) -> Iterator[Callable[[], SphinxTestApp]]:
def make_app(test_params: dict[str, Any]) -> Iterator[Callable[..., SphinxTestApp]]:
"""Provides make_app function to initialize SphinxTestApp instance.
if you want to initialize 'app' in your test function. please use this
instead of using SphinxTestApp class directory.