Skip to content

Commit eeddc7f

Browse files
committed
lint: add type annotation
Signed-off-by: Mike Fiedler <[email protected]>
1 parent ba04e22 commit eeddc7f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tests/test_numfig_only.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,16 @@
22

33
from __future__ import annotations
44

5+
from typing import TYPE_CHECKING
6+
57
import pytest
68

9+
if TYPE_CHECKING:
10+
from sphinx.testing.util import SphinxTestApp
11+
712

813
@pytest.mark.sphinx('html', testroot='numfig-only', confoverrides={'numfig': True})
9-
def test_numfig_with_only_directive_html(app, status, warning):
14+
def test_numfig_with_only_directive_html(app: SphinxTestApp) -> None:
1015
"""Test that figure numbers are assigned correctly with only directive in HTML."""
1116
app.build()
1217

@@ -24,7 +29,7 @@ def test_numfig_with_only_directive_html(app, status, warning):
2429

2530

2631
@pytest.mark.sphinx('latex', testroot='numfig-only', confoverrides={'numfig': True})
27-
def test_numfig_with_only_directive_latex(app, status, warning):
32+
def test_numfig_with_only_directive_latex(app: SphinxTestApp) -> None:
2833
"""Test that figure numbers are assigned correctly with only directive in LaTeX.
2934
3035
Note: This test verifies that figure numbering works correctly with the only directive.

0 commit comments

Comments
 (0)