Bump types-docutils to 0.21.0.20240724

This commit is contained in:
Adam Turner 2024-07-24 12:01:47 +01:00
parent 6d97be4349
commit 3222415785
3 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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:

View File

@ -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', '.')