Remove mypy overrides for `tests/test_extensions/test_ext_autodoc_autodata.py` (#13314)

This commit is contained in:
Adam Dangoor
2025-02-07 14:47:00 +00:00
committed by GitHub
parent e33b6ff82d
commit 36e3f3250d
2 changed files with 11 additions and 7 deletions

View File

@@ -6,13 +6,18 @@ source file translated by test_build.
from __future__ import annotations
from typing import TYPE_CHECKING
import pytest
from tests.test_extensions.autodoc_util import do_autodoc
if TYPE_CHECKING:
from sphinx.testing.util import SphinxTestApp
@pytest.mark.sphinx('html', testroot='ext-autodoc')
def test_autodata(app):
def test_autodata(app: SphinxTestApp) -> None:
actual = do_autodoc(app, 'data', 'target.integer')
assert list(actual) == [
'',
@@ -26,7 +31,7 @@ def test_autodata(app):
@pytest.mark.sphinx('html', testroot='ext-autodoc')
def test_autodata_novalue(app):
def test_autodata_novalue(app: SphinxTestApp) -> None:
options = {'no-value': None}
actual = do_autodoc(app, 'data', 'target.integer', options)
assert list(actual) == [
@@ -40,7 +45,7 @@ def test_autodata_novalue(app):
@pytest.mark.sphinx('html', testroot='ext-autodoc')
def test_autodata_typed_variable(app):
def test_autodata_typed_variable(app: SphinxTestApp) -> None:
actual = do_autodoc(app, 'data', 'target.typed_vars.attr2')
assert list(actual) == [
'',
@@ -54,7 +59,7 @@ def test_autodata_typed_variable(app):
@pytest.mark.sphinx('html', testroot='ext-autodoc')
def test_autodata_type_comment(app):
def test_autodata_type_comment(app: SphinxTestApp) -> None:
actual = do_autodoc(app, 'data', 'target.typed_vars.attr3')
assert list(actual) == [
'',
@@ -69,7 +74,7 @@ def test_autodata_type_comment(app):
@pytest.mark.sphinx('html', testroot='ext-autodoc')
def test_autodata_GenericAlias(app):
def test_autodata_GenericAlias(app: SphinxTestApp) -> None:
actual = do_autodoc(app, 'data', 'target.genericalias.T')
assert list(actual) == [
'',
@@ -84,7 +89,7 @@ def test_autodata_GenericAlias(app):
@pytest.mark.sphinx('html', testroot='ext-autodoc')
def test_autodata_hide_value(app):
def test_autodata_hide_value(app: SphinxTestApp) -> None:
actual = do_autodoc(app, 'data', 'target.hide_value.SENTINEL1')
assert list(actual) == [
'',