File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 4
4
5
5
import textwrap
6
6
7
- from beartype .typing import Mapping
8
7
from markdown_it import MarkdownIt
9
8
from mdformat .renderer import RenderContext , RenderTreeNode
10
9
from mdformat .renderer .typing import Render
11
10
12
11
from .mdit_plugins import python_markdown_admon_plugin
13
12
13
+ try :
14
+ from beartype .typing import Mapping
15
+ except ImportError :
16
+ from collections .abc import Mapping
17
+
14
18
15
19
def update_mdit (mdit : MarkdownIt ) -> None :
16
20
"""Update the parser with supported formats."""
Original file line number Diff line number Diff line change @@ -26,7 +26,9 @@ extras = dev
26
26
commands = pre-commit run --config .pre-commit-test.yaml {posargs:--all-files --verbose --show-diff-on-failure}
27
27
28
28
[testenv:mypy]
29
- deps = mypy
29
+ deps =
30
+ beartype
31
+ mypy
30
32
commands = mypy ./mdformat_admon
31
33
32
34
[testenv:ruff]
You can’t perform that action at this time.
0 commit comments