diff options
author | Adam Turner <9087854+AA-Turner@users.noreply.github.com> | 2023-01-02 17:49:18 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-02 17:49:18 +0000 |
commit | 77a02cf696f8375791a2f5aa5c38306ca080d443 (patch) | |
tree | d7fd73833c2c6435d82e5f67f9e21b112fc058cf /sphinx/util/inspect.py | |
parent | dc3f22a370b1a04d99591eddecfec835555feaf0 (diff) | |
download | sphinx-git-77a02cf696f8375791a2f5aa5c38306ca080d443.tar.gz |
Use PEP 604 display for ``typing.Optional`` and ``typing.Union`` (#11072)
Diffstat (limited to 'sphinx/util/inspect.py')
-rw-r--r-- | sphinx/util/inspect.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sphinx/util/inspect.py b/sphinx/util/inspect.py index 7c0a9f066..26922519a 100644 --- a/sphinx/util/inspect.py +++ b/sphinx/util/inspect.py @@ -22,8 +22,7 @@ from typing import Any, Callable, Dict, Mapping, Sequence, cast from sphinx.pycode.ast import unparse as ast_unparse from sphinx.util import logging -from sphinx.util.typing import ForwardRef -from sphinx.util.typing import stringify as stringify_annotation +from sphinx.util.typing import ForwardRef, stringify_annotation logger = logging.getLogger(__name__) |