Skip to content

Commit

Permalink
Fix the CI (#434)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborbernat committed Mar 5, 2024
1 parent 2c37bfc commit 09c7b82
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/sphinx_autodoc_typehints/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -921,8 +921,7 @@ def sphinx_autodoc_typehints_type_role(
result in <span class="sphinx_autodoc_typehints-type"> </span>
"""
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
Expand Down
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand All @@ -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
Expand All @@ -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 =
Expand Down

0 comments on commit 09c7b82

Please sign in to comment.