Skip to content

Commit

Permalink
fix: update mdformat_admon to resolve untyped errors
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleKing committed Mar 12, 2024
1 parent f7ce813 commit 6732b5c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion mdformat_mkdocs/mdit_plugins/_content_tabs.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from markdown_it.rules_block import StateBlock
from mdformat_admon.factories import ( # type: ignore[import-untyped]
from mdformat_admon.factories import (
AdmonitionData,
admon_plugin_factory,
new_token,
Expand Down
6 changes: 2 additions & 4 deletions mdformat_mkdocs/mdit_plugins/_mkdocs_admon.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,14 @@
from typing import Any

from markdown_it.rules_block import StateBlock
from mdformat_admon.factories import ( # type: ignore[import-untyped]
from mdformat_admon.factories import (
AdmonitionData,
admon_plugin_factory,
new_token,
parse_possible_whitespace_admon_factory,
parse_tag_and_title,
)
from mdformat_admon.mdit_plugins import ( # type: ignore[import-untyped]
format_python_markdown_admon_markup,
)
from mdformat_admon.mdit_plugins import format_python_markdown_admon_markup

PREFIX = "admonition_mkdocs"
"""Prefix used to differentiate the parsed output."""
Expand Down
2 changes: 1 addition & 1 deletion mdformat_mkdocs/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from markdown_it import MarkdownIt
from mdformat.renderer.typing import Postprocess, Render
from mdformat_admon import RENDERERS as ADMON_RENDERS # type: ignore[import-untyped]
from mdformat_admon import RENDERERS as ADMON_RENDERS

from ._normalize_list import normalize_list as unbounded_normalize_list
from ._postprocess_inline import postprocess_inline
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ keywords = ["mdformat", "markdown", "markdown-it"]
requires-python = ">=3.8.4"
dependencies = [
"mdformat >= 0.7.16",
"mdformat-admon >= 2.0.1",
"mdformat-admon >= 2.0.2",
"mdformat-gfm >= 0.3.6",
"more-itertools >= 10.2.0"
]
Expand Down

0 comments on commit 6732b5c

Please sign in to comment.