summaryrefslogtreecommitdiff
path: root/sphinx/util/typing.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2020-11-10 23:21:51 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2020-11-10 23:21:51 +0900
commit1254b8011347b309af122dbe91a9439cc56f4381 (patch)
tree241b3f47ed71c3500330690118de5a7c7e55e2d4 /sphinx/util/typing.py
parent7299d589c61d3558efb9777d03454f8e2a3dafd1 (diff)
parent229e11c488fc1fbd15b0a209782aa94dc6abdf58 (diff)
downloadsphinx-git-1254b8011347b309af122dbe91a9439cc56f4381.tar.gz
Merge branch '3.x'
Diffstat (limited to 'sphinx/util/typing.py')
-rw-r--r--sphinx/util/typing.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/util/typing.py b/sphinx/util/typing.py
index ab02f1f6b..ebd6518e0 100644
--- a/sphinx/util/typing.py
+++ b/sphinx/util/typing.py
@@ -215,7 +215,7 @@ def stringify(annotation: Any) -> str:
if isinstance(annotation, str):
if annotation.startswith("'") and annotation.endswith("'"):
# might be a double Forward-ref'ed type. Go unquoting.
- return annotation[1:-2]
+ return annotation[1:-1]
else:
return annotation
elif isinstance(annotation, TypeVar):