Skip to content

Commit

Permalink
fix mypy typing using lepture/mistune#375
Browse files Browse the repository at this point in the history
  • Loading branch information
fmigneault committed Jan 9, 2024
1 parent 29f90c7 commit 2c9d377
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion schema_salad/makedoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
Set,
Tuple,
Union,
cast,
)
from urllib.parse import urldefrag

Expand Down Expand Up @@ -606,7 +607,7 @@ def extendsfrom(item: Dict[str, Any], ex: List[Dict[str, Any]]) -> None:
escape=escape,
)
##markdown2html.before_parse_hooks.append(markdown_list_hook) # FIXME: this can be removed with mistune v3!
doc = markdown2html(doc)
doc = cast(str, markdown2html(doc))

if f["type"] == "record":
doc += "<h3>Fields</h3>"
Expand Down

0 comments on commit 2c9d377

Please sign in to comment.