Fix formatting

This commit is contained in:
Adam Turner 2024-01-19 04:40:29 +00:00
parent a9ba9f92d3
commit 49d1e7142e
2 changed files with 3 additions and 2 deletions

View File

@ -14,10 +14,10 @@ from sphinx.util import inspect
from sphinx.util.typing import stringify_annotation
if TYPE_CHECKING:
from sphinx.ext.autodoc import Options
from docutils.nodes import Element
from sphinx.application import Sphinx
from sphinx.ext.autodoc import Options
def record_typehints(app: Sphinx, objtype: str, name: str, obj: Any,

View File

@ -96,7 +96,8 @@ def make_link_role(name: str, base_url: str, caption: str) -> RoleFunction:
# Remark: It is an implementation detail that we use Pythons %-formatting.
# So far we only expose ``%s`` and require quoting of ``%`` using ``%%``.
def role(typ: str, rawtext: str, text: str, lineno: int,
inliner: Inliner, options: dict[str, Any] | None = None, content: Sequence[str] = (),
inliner: Inliner, options: dict[str, Any] | None = None,
content: Sequence[str] = (),
) -> tuple[list[Node], list[system_message]]:
text = utils.unescape(text)
has_explicit_title, title, part = split_explicit_title(text)