diff --git a/pyproject.toml b/pyproject.toml index c4e97325c..74fc7212b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -86,7 +86,7 @@ lint = [ "sphinx-lint>=0.9", "types-colorama==0.4.15.20240311", "types-defusedxml==0.7.0.20240218", - "types-docutils==0.21.0.20240711", + "types-docutils==0.21.0.20240724", "types-Pillow==10.2.0.20240520", "types-Pygments==2.18.0.20240506", "types-requests>=2.30.0", # align with requests diff --git a/sphinx/builders/latex/util.py b/sphinx/builders/latex/util.py index 82d991192..aeef26014 100644 --- a/sphinx/builders/latex/util.py +++ b/sphinx/builders/latex/util.py @@ -5,7 +5,7 @@ from __future__ import annotations from docutils.writers.latex2e import Babel -class ExtBabel(Babel): # type: ignore[misc] +class ExtBabel(Babel): cyrillic_languages = ('bulgarian', 'kazakh', 'mongolian', 'russian', 'ukrainian') def __init__(self, language_code: str, use_polyglossia: bool = False) -> None: diff --git a/sphinx/writers/latex.py b/sphinx/writers/latex.py index 7cd6350c3..4badfa87f 100644 --- a/sphinx/writers/latex.py +++ b/sphinx/writers/latex.py @@ -1276,8 +1276,8 @@ class LaTeXTranslator(SphinxTranslator): else: return get_nested_level(node.parent) - enum = "enum%s" % toRoman(get_nested_level(node)).lower() # type: ignore[no-untyped-call] - enumnext = "enum%s" % toRoman(get_nested_level(node) + 1).lower() # type: ignore[no-untyped-call] + enum = "enum%s" % toRoman(get_nested_level(node)).lower() + enumnext = "enum%s" % toRoman(get_nested_level(node) + 1).lower() style = ENUMERATE_LIST_STYLE.get(get_enumtype(node)) prefix = node.get('prefix', '') suffix = node.get('suffix', '.')