mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-10-14 09:22:11 -05:00
Fix type annotation for `make_app` pytest fixture (#13768)
This commit is contained in:
1 parent
cb3fbe2a23
commit
087d77c823
1 file changed
+2
-2
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user