diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2021-11-11 02:07:48 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2021-11-11 02:07:48 +0900 |
commit | 53396360848812dd38d98c3fdd2605139ef2c306 (patch) | |
tree | deff2b03a24610ab51d2497242c2de880328bceb | |
parent | 5999cdb10dc92fdea71685c20824cbc84807712c (diff) | |
download | sphinx-git-53396360848812dd38d98c3fdd2605139ef2c306.tar.gz |
Fix the type of deprecation warning for get_signature_prefix (refs: #9833)
-rw-r--r-- | sphinx/domains/python.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/domains/python.py b/sphinx/domains/python.py index 46a67b4ea..b932a9ea5 100644 --- a/sphinx/domains/python.py +++ b/sphinx/domains/python.py @@ -26,7 +26,7 @@ from sphinx import addnodes from sphinx.addnodes import desc_signature, pending_xref, pending_xref_condition from sphinx.application import Sphinx from sphinx.builders import Builder -from sphinx.deprecation import RemovedInSphinx50Warning +from sphinx.deprecation import RemovedInSphinx50Warning, RemovedInSphinx60Warning from sphinx.directives import ObjectDescription from sphinx.domains import Domain, Index, IndexEntry, ObjType from sphinx.environment import BuildEnvironment @@ -501,7 +501,7 @@ class PyObject(ObjectDescription[Tuple[str, str]]): " returning a string is deprecated." " It must now return a list of nodes." " Return value was '{}'.".format(sig_prefix), - RemovedInSphinx50Warning) + RemovedInSphinx60Warning) signode += addnodes.desc_annotation(sig_prefix, '', # type: ignore nodes.Text(sig_prefix)) # type: ignore else: |