Skip to content

Commit

Permalink
chore: Ignore specious type failures. (#23)
Browse files Browse the repository at this point in the history
This adds an ignore line to two mypy false positives.
  • Loading branch information
Luke Sneeringer authored Jan 7, 2021
1 parent 651c79f commit 40c4b0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aip_site/md.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def blocked_content(self) -> str:
# We use the Markdown toc plugin to separate the headers and identify
# where to put the blocks. Iterate over each toc_token and encapsulate
# it in a block.
toc_tokens = self._engine.toc_tokens
toc_tokens = self._engine.toc_tokens # type: ignore
for ix, token in enumerate(toc_tokens):
try:
next_token = toc_tokens[ix + 1]
Expand Down Expand Up @@ -87,7 +87,7 @@ def toc(self) -> str:
# The `html` property caches, so this does not entail any additional
# performance hit.
self.html
return self._engine.toc
return self._engine.toc # type: ignore


def _add_block(content: str, toc_token, next_toc_token=None) -> str:
Expand Down

0 comments on commit 40c4b0e

Please sign in to comment.