mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Remove mypy overrides for `tests/test_extensions/test_ext_autodoc_autodata.py
` (#13314)
This commit is contained in:
@@ -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) == [
|
||||
'',
|
||||
|
Reference in New Issue
Block a user