diff --git a/pyproject.toml b/pyproject.toml index 94412e5c8..4d3339e7b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -86,7 +86,7 @@ lint = [ "ruff==0.5.1", "mypy==1.10.1", "sphinx-lint", - "types-docutils==0.21.0.20240708", + "types-docutils==0.21.0.20240711", "types-requests", "importlib_metadata", # for mypy (Python<=3.9) "tomli", # for mypy (Python<=3.10) diff --git a/sphinx/application.py b/sphinx/application.py index bf828fb89..5ab520b2d 100644 --- a/sphinx/application.py +++ b/sphinx/application.py @@ -758,7 +758,7 @@ class Sphinx: logger.warning(__('role %r is already registered, it will be overridden'), name, type='app', subtype='add_generic_role') role = roles.GenericRole(name, nodeclass) - docutils.register_role(name, role) # type: ignore[arg-type] + docutils.register_role(name, role) def add_domain(self, domain: type[Domain], override: bool = False) -> None: """Register a domain.