From d33399a91501195fae66e6bd93f52e80ee214708 Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+aa-turner@users.noreply.github.com> Date: Sat, 20 Jul 2024 18:47:16 +0100 Subject: [PATCH] Remove deprecated functions in ``sphinx.util.typing`` --- CHANGES.rst | 3 +++ sphinx/util/typing.py | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) 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)), }