diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-11-10 23:21:51 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-11-10 23:21:51 +0900 |
commit | 1254b8011347b309af122dbe91a9439cc56f4381 (patch) | |
tree | 241b3f47ed71c3500330690118de5a7c7e55e2d4 /sphinx/util/typing.py | |
parent | 7299d589c61d3558efb9777d03454f8e2a3dafd1 (diff) | |
parent | 229e11c488fc1fbd15b0a209782aa94dc6abdf58 (diff) | |
download | sphinx-git-1254b8011347b309af122dbe91a9439cc56f4381.tar.gz |
Merge branch '3.x'
Diffstat (limited to 'sphinx/util/typing.py')
-rw-r--r-- | sphinx/util/typing.py | 2 |
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): |