diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-02-16 20:18:34 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-16 20:18:34 +0900 |
commit | 81964e036b08e182fa9d58c6330a4094083f9070 (patch) | |
tree | 2a7fac748704d7f43f034e0431a4319ce9bff329 /sphinx/util/pycompat.py | |
parent | be608ca2313fc08eb842f3dc19d0f5d2d8227d08 (diff) | |
parent | ecae46027a3e33cf75c2d1eaecaf6f602d149b23 (diff) | |
download | sphinx-git-81964e036b08e182fa9d58c6330a4094083f9070.tar.gz |
Merge pull request #7128 from tk0miya/refactor_type_annotation2
refactor: Update type annotations in sphinx.util.*
Diffstat (limited to 'sphinx/util/pycompat.py')
-rw-r--r-- | sphinx/util/pycompat.py | 2 |
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 |