Skip to content

Commit 51ee017

Browse files
committed
Fix mypy errors
1 parent 73837fa commit 51ee017

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/test-pcbdraw.yml

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
make git librsvg2-bin xvfb xdotool bats
2222
sudo python3 -m pip install mypy
2323
python3 -m pip install -e .\[dev\]
24+
- run: mypy --version
2425
- run: make mypy
2526
- run: make test
2627
- run: make package

pcbdraw/mistune_shim.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
mistune_major_version = mistune_version[0]
1414

1515
if mistune_major_version == 3:
16-
from mistune.plugins.footnotes import \
17-
footnotes as plugin_footnotes # type: ignore
16+
from mistune.plugins.footnotes import footnotes as plugin_footnotes # type: ignore
1817
from mistune.plugins.table import table as plugin_table # type: ignore
1918

2019
InlineParser = mistune.InlineParser

pcbdraw/populate.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import pcbdraw.mdrenderer
1717

1818
from .mistune_shim import mistune # type: ignore
19-
from .mistune_shim import (HTMLRenderer, InlineParser, plugin_footnotes,
19+
from .mistune_shim import (HTMLRenderer, InlineParser, plugin_footnotes, plugin_table) # type: ignore
2020
from .pcbnew_common import fakeKiCADGui
2121
from .plot import find_data_file, get_global_datapaths
2222

0 commit comments

Comments
 (0)