From 40c4b0e13bb2e10843ecd5f40fe15033a9eec2bd Mon Sep 17 00:00:00 2001 From: Luke Sneeringer Date: Thu, 7 Jan 2021 11:38:30 -0800 Subject: [PATCH] chore: Ignore specious type failures. (#23) This adds an ignore line to two mypy false positives. --- aip_site/md.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aip_site/md.py b/aip_site/md.py index 4d129bd..9f5c85e 100644 --- a/aip_site/md.py +++ b/aip_site/md.py @@ -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] @@ -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: