Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3222415

Browse files
committed
Bump types-docutils to 0.21.0.20240724
1 parent 6d97be4 commit 3222415

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ lint = [
8686
"sphinx-lint>=0.9",
8787
"types-colorama==0.4.15.20240311",
8888
"types-defusedxml==0.7.0.20240218",
89-
"types-docutils==0.21.0.20240711",
89+
"types-docutils==0.21.0.20240724",
9090
"types-Pillow==10.2.0.20240520",
9191
"types-Pygments==2.18.0.20240506",
9292
"types-requests>=2.30.0", # align with requests

sphinx/builders/latex/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from docutils.writers.latex2e import Babel
66

77

8-
class ExtBabel(Babel): # type: ignore[misc]
8+
class ExtBabel(Babel):
99
cyrillic_languages = ('bulgarian', 'kazakh', 'mongolian', 'russian', 'ukrainian')
1010

1111
def __init__(self, language_code: str, use_polyglossia: bool = False) -> None:

sphinx/writers/latex.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1276,8 +1276,8 @@ def get_nested_level(node: Element) -> int:
12761276
else:
12771277
return get_nested_level(node.parent)
12781278

1279-
enum = "enum%s" % toRoman(get_nested_level(node)).lower() # type: ignore[no-untyped-call]
1280-
enumnext = "enum%s" % toRoman(get_nested_level(node) + 1).lower() # type: ignore[no-untyped-call]
1279+
enum = "enum%s" % toRoman(get_nested_level(node)).lower()
1280+
enumnext = "enum%s" % toRoman(get_nested_level(node) + 1).lower()
12811281
style = ENUMERATE_LIST_STYLE.get(get_enumtype(node))
12821282
prefix = node.get('prefix', '')
12831283
suffix = node.get('suffix', '.')

0 commit comments

Comments
 (0)