Remove deprecated functions in `sphinx.util.typing`

This commit is contained in:
Adam Turner 2024-07-20 18:47:16 +01:00
parent 7225e4032a
commit d33399a915
2 changed files with 3 additions and 1 deletions

View File

@ -36,6 +36,9 @@ Incompatible changes
* Removed :py:func:`!sphinx.util.osutil.cd`
(use :py:func:`contextlib.chdir`).
Patch by Adam Turner.
* Removed :py:func:`!sphinx.util.typing.stringify`
(use :py:func:`!sphinx.util.typing.stringify_annotation`).
Patch by Adam Turner.
Deprecated
----------

View File

@ -575,7 +575,6 @@ def _format_literal_arg_stringify(arg: Any, /, *, mode: str) -> str:
# deprecated name -> (object to return, canonical path or empty string, removal version)
_DEPRECATED_OBJECTS: dict[str, tuple[Any, str, tuple[int, int]]] = {
'stringify': (stringify_annotation, 'sphinx.util.typing.stringify_annotation', (8, 0)),
}