Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
AA-Turner committed Jan 19, 2024
1 parent a9ba9f9 commit 49d1e71
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sphinx/ext/autodoc/typehints.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
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,
Expand Down
3 changes: 2 additions & 1 deletion sphinx/ext/extlinks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 49d1e71

Please sign in to comment.