Skip to content

Commit 5339636

Browse files
committed
Fix the type of deprecation warning for get_signature_prefix (refs: #9833)
1 parent 5999cdb commit 5339636

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sphinx/domains/python.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
from sphinx.addnodes import desc_signature, pending_xref, pending_xref_condition
2727
from sphinx.application import Sphinx
2828
from sphinx.builders import Builder
29-
from sphinx.deprecation import RemovedInSphinx50Warning
29+
from sphinx.deprecation import RemovedInSphinx50Warning, RemovedInSphinx60Warning
3030
from sphinx.directives import ObjectDescription
3131
from sphinx.domains import Domain, Index, IndexEntry, ObjType
3232
from sphinx.environment import BuildEnvironment
@@ -501,7 +501,7 @@ def handle_signature(self, sig: str, signode: desc_signature) -> Tuple[str, str]
501501
" returning a string is deprecated."
502502
" It must now return a list of nodes."
503503
" Return value was '{}'.".format(sig_prefix),
504-
RemovedInSphinx50Warning)
504+
RemovedInSphinx60Warning)
505505
signode += addnodes.desc_annotation(sig_prefix, '', # type: ignore
506506
nodes.Text(sig_prefix)) # type: ignore
507507
else:

0 commit comments

Comments
 (0)