diff --git a/CHANGES.rst b/CHANGES.rst index 4733a2809..e3b896bf9 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -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 ---------- diff --git a/sphinx/util/typing.py b/sphinx/util/typing.py index a5d241705..20ecb6e6c 100644 --- a/sphinx/util/typing.py +++ b/sphinx/util/typing.py @@ -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)), }