From 09c7b8267b4ef2484f3133a0b6382c186a9e60a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bern=C3=A1t=20G=C3=A1bor?= Date: Mon, 4 Mar 2024 16:57:27 -0800 Subject: [PATCH] Fix the CI (#434) --- src/sphinx_autodoc_typehints/__init__.py | 3 +-- tox.ini | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/sphinx_autodoc_typehints/__init__.py b/src/sphinx_autodoc_typehints/__init__.py index 757da53..c9e4243 100644 --- a/src/sphinx_autodoc_typehints/__init__.py +++ b/src/sphinx_autodoc_typehints/__init__.py @@ -921,8 +921,7 @@ def sphinx_autodoc_typehints_type_role( result in """ unescaped = unescape(text) - # the typestubs for docutils don't have any info about Inliner - doc = parse(unescaped, inliner.document.settings) # type: ignore[attr-defined] + doc = parse(unescaped, inliner.document.settings) n = nodes.inline(text) n["classes"].append("sphinx_autodoc_typehints-type") n += doc.children[0].children diff --git a/tox.ini b/tox.ini index 62d4dab..398d5b0 100644 --- a/tox.ini +++ b/tox.ini @@ -51,7 +51,7 @@ extras = description = run type check on code base deps = mypy==1.8 - types-docutils>=0.20.0.20240201 + types-docutils>=0.20.0.20240304 set_env = {tty:MYPY_FORCE_COLOR = 1} commands = @@ -63,7 +63,7 @@ description = combine coverage files and generate diff (against DIFF_AGAINST def skip_install = true deps = covdefaults>=2.3 - coverage>=7.4.2 + coverage>=7.4.3 diff-cover>=8.0.3 extras = parallel_show_output = true @@ -88,7 +88,7 @@ depends = description = check that the long description is valid (need for PyPI) skip_install = true deps = - build[virtualenv]>=1.0.3 + build[virtualenv]>=1.1.1 twine>=5 extras = commands =