Skip to content

Commit

Permalink
Merge pull request #9837 from tk0miya/9833_RemovedInSphinx60Warning
Browse files Browse the repository at this point in the history
Fix the type of deprecation warning for get_signature_prefix (refs: #9833)
  • Loading branch information
tk0miya committed Nov 10, 2021
2 parents 5999cdb + 5339636 commit d321a97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sphinx/domains/python.py
Expand Up @@ -26,7 +26,7 @@
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
Expand Down Expand Up @@ -501,7 +501,7 @@ def handle_signature(self, sig: str, signode: desc_signature) -> 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:
Expand Down

0 comments on commit d321a97

Please sign in to comment.