From 1167cb6efb8b373a27d04c98b6e44ff9ec0c9e53 Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+aa-turner@users.noreply.github.com> Date: Mon, 24 Apr 2023 08:20:29 +0100 Subject: [PATCH 1/2] Remove LaTeXWriter.docclasses --- sphinx/writers/latex.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/sphinx/writers/latex.py b/sphinx/writers/latex.py index 5116c21818a..e7d31b70e31 100644 --- a/sphinx/writers/latex.py +++ b/sphinx/writers/latex.py @@ -7,7 +7,6 @@ from __future__ import annotations import re -import warnings from collections import defaultdict from os import path from typing import TYPE_CHECKING, Any, Iterable, cast @@ -16,7 +15,6 @@ from docutils.nodes import Element, Node, Text from sphinx import addnodes, highlighting -from sphinx.deprecation import RemovedInSphinx70Warning from sphinx.domains import IndexEntry from sphinx.domains.std import StandardDomain from sphinx.errors import SphinxError @@ -2121,13 +2119,6 @@ def visit_math_reference(self, node: Element) -> None: def depart_math_reference(self, node: Element) -> None: pass - @property - def docclasses(self) -> tuple[str, str]: - """Prepends prefix to sphinx document classes""" - warnings.warn('LaTeXWriter.docclasses() is deprecated.', - RemovedInSphinx70Warning, stacklevel=2) - return ('howto', 'manual') - # FIXME: Workaround to avoid circular import # refs: https://github.com/sphinx-doc/sphinx/issues/5433 From bdbc866dc3305f30de6c27f5c68d22d18c40ea22 Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+aa-turner@users.noreply.github.com> Date: Fri, 28 Apr 2023 10:44:55 +0100 Subject: [PATCH 2/2] CHANGES --- CHANGES | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGES b/CHANGES index b76832c8363..1bf8c99161c 100644 --- a/CHANGES +++ b/CHANGES @@ -26,6 +26,8 @@ Incompatible changes * #11379: Make the ``env`` argument to ``Builder`` subclasses required. * #11380: autosummary: Always emit grouped import exceptions. * #11381: Remove deprecated ``style`` key for HTML templates. +* #11382: Remove deprecated ``sphinx.writers.latex.LaTeXTranslator.docclasses`` + attribute. Deprecated ----------