Skip to content

Commit 087d77c

Browse files
Fix type annotation for make_app pytest fixture (sphinx-doc#13768)
1 parent cb3fbe2 commit 087d77c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sphinx/testing/fixtures.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def test_params(request: Any) -> dict[str, Any]:
151151
def app(
152152
test_params: dict[str, Any],
153153
app_params: _app_params,
154-
make_app: Callable[[], SphinxTestApp],
154+
make_app: Callable[..., SphinxTestApp],
155155
shared_result: SharedResult,
156156
) -> Iterator[SphinxTestApp]:
157157
"""Provides the 'sphinx.application.Sphinx' object"""
@@ -183,7 +183,7 @@ def warning(app: SphinxTestApp) -> StringIO:
183183

184184

185185
@pytest.fixture
186-
def make_app(test_params: dict[str, Any]) -> Iterator[Callable[[], SphinxTestApp]]:
186+
def make_app(test_params: dict[str, Any]) -> Iterator[Callable[..., SphinxTestApp]]:
187187
"""Provides make_app function to initialize SphinxTestApp instance.
188188
if you want to initialize 'app' in your test function. please use this
189189
instead of using SphinxTestApp class directory.

0 commit comments

Comments
 (0)