summaryrefslogtreecommitdiff
path: root/tests/test_ext_autodoc.py
diff options
context:
space:
mode:
authorAdam Turner <9087854+AA-Turner@users.noreply.github.com>2023-01-02 17:49:18 +0000
committerGitHub <noreply@github.com>2023-01-02 17:49:18 +0000
commit77a02cf696f8375791a2f5aa5c38306ca080d443 (patch)
treed7fd73833c2c6435d82e5f67f9e21b112fc058cf /tests/test_ext_autodoc.py
parentdc3f22a370b1a04d99591eddecfec835555feaf0 (diff)
downloadsphinx-git-77a02cf696f8375791a2f5aa5c38306ca080d443.tar.gz
Use PEP 604 display for ``typing.Optional`` and ``typing.Union`` (#11072)
Diffstat (limited to 'tests/test_ext_autodoc.py')
-rw-r--r--tests/test_ext_autodoc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_ext_autodoc.py b/tests/test_ext_autodoc.py
index ec4388bf0..8f723deb4 100644
--- a/tests/test_ext_autodoc.py
+++ b/tests/test_ext_autodoc.py
@@ -808,7 +808,7 @@ def test_autodoc_imported_members(app):
"imported-members": None,
"ignore-module-all": None}
actual = do_autodoc(app, 'module', 'target', options)
- assert '.. py:function:: function_to_be_imported(app: ~typing.Optional[Sphinx]) -> str' in actual
+ assert '.. py:function:: function_to_be_imported(app: Sphinx | None) -> str' in actual
@pytest.mark.sphinx('html', testroot='ext-autodoc')