Skip to content

Commit

Permalink
ci: Fix mypy complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Sep 1, 2022
1 parent 5665470 commit 58ec926
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/markdown_exec/rendering.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from __future__ import annotations

from itertools import chain
from textwrap import indent
from xml.etree.ElementTree import Element

Expand Down Expand Up @@ -130,7 +131,8 @@ def run(self, root: Element): # noqa: D102,WPS231
def _mimic(md: Markdown) -> Markdown:
md = getattr(md, "_original_md", md)
new_md = Markdown() # noqa: WPS442
new_md.registerExtensions(md.registeredExtensions + ["tables", "md_in_html"], {})
extensions = list(chain(md.registeredExtensions, ["tables", "md_in_html"]))
new_md.registerExtensions(extensions, {})
new_md.treeprocessors.register(
_IdPrependingTreeprocessor(md, ""),
_IdPrependingTreeprocessor.name,
Expand Down

0 comments on commit 58ec926

Please # to comment.