summaryrefslogtreecommitdiff
path: root/sphinx/util/pycompat.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2020-02-11 01:41:55 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2020-02-16 17:52:23 +0900
commitecae46027a3e33cf75c2d1eaecaf6f602d149b23 (patch)
tree02679184db882cad03a0da6e96d0b19298cae10b /sphinx/util/pycompat.py
parent8576e97e34a9b39189cb4e8188407002cdab1a27 (diff)
downloadsphinx-git-ecae46027a3e33cf75c2d1eaecaf6f602d149b23.tar.gz
refactor: Update type annotations in sphinx.util.*
Diffstat (limited to 'sphinx/util/pycompat.py')
-rw-r--r--sphinx/util/pycompat.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/util/pycompat.py b/sphinx/util/pycompat.py
index ba4f83a71..061bbcb6d 100644
--- a/sphinx/util/pycompat.py
+++ b/sphinx/util/pycompat.py
@@ -52,7 +52,7 @@ class UnicodeMixin:
.. deprecated:: 2.0
"""
- def __str__(self):
+ def __str__(self) -> str:
warnings.warn('UnicodeMixin is deprecated',
RemovedInSphinx40Warning, stacklevel=2)
return self.__unicode__() # type: ignore