Skip to content

Commit

Permalink
Merge pull request #782 from adamtheturtle/rm-unnecessary-isinstance-2
Browse files Browse the repository at this point in the history
Remove unnecessary assert isinstance
  • Loading branch information
adamtheturtle committed May 10, 2024
2 parents f1d6987 + d1b6522 commit 443250f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/sphinx_substitution_extensions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ def process_link(
Override parent method to replace placeholders with given variables.
"""
document = self.inliner.document
assert isinstance(document, docutils.nodes.document)
for name, value in document.substitution_defs.items():
replacement = value.astext()
title = title.replace(f"|{name}|", replacement)
Expand Down

0 comments on commit 443250f

Please sign in to comment.