Skip to content

Commit

Permalink
chore: misc
Browse files Browse the repository at this point in the history
  • Loading branch information
phil65 committed Oct 10, 2023
1 parent aced39a commit 09a2f2d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mknodes/pages/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def status(self) -> datatypes.PageStatusStr | None:
MkDocs-Material supports `"new"`, `"deprecated"` and `"encrypted"` by default
by showing an icon in the site nav. Additional icons can be added during
the build process via
[MaterialTheme.add_status_icon][mknodes.theme.materialtheme.MaterialTheme.add_status_icon].
[MaterialTheme.add_status_icon][mknodes.MaterialTheme.add_status_icon].
"""
return self.get("status")

Expand Down
2 changes: 1 addition & 1 deletion mknodes/templatenodes/mkcallable.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def __init__(
self.args = args or []
self.kw_args = kw_args or {}

def __call__(self):
def __call__(self) -> mk.MkNode:
node = self.fn(*self.args, **self.kw_args)
node.parent = self.parent
return node
Expand Down
2 changes: 1 addition & 1 deletion mknodes/utils/annotationappender.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def __init__(self):
self.count = 0
self.matches = []

def __call__(self, match):
def __call__(self, match) -> str:
line = match.group()
self.count += 1
self.matches.append((self.count, match.group(2)))
Expand Down
2 changes: 1 addition & 1 deletion mknodes/utils/linkreplacer.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def __init__(self):
self.mapping = collections.defaultdict(list)
self.page_url = ""

def __call__(self, match):
def __call__(self, match) -> str:
filename = urllib.parse.unquote(match.group(3).strip())
if filename not in self.mapping:
return f"`{match.group(1)}`"
Expand Down

0 comments on commit 09a2f2d

Please sign in to comment.