mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix formatting
This commit is contained in:
parent
a9ba9f92d3
commit
49d1e7142e
@ -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,
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user