Skip to content

Commit

Permalink
Fix mypy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
yaqwsx committed Mar 25, 2024
1 parent 73837fa commit 51ee017
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test-pcbdraw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
make git librsvg2-bin xvfb xdotool bats
sudo python3 -m pip install mypy
python3 -m pip install -e .\[dev\]
- run: mypy --version
- run: make mypy
- run: make test
- run: make package
Expand Down
3 changes: 1 addition & 2 deletions pcbdraw/mistune_shim.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
mistune_major_version = mistune_version[0]

if mistune_major_version == 3:
from mistune.plugins.footnotes import \
footnotes as plugin_footnotes # type: ignore
from mistune.plugins.footnotes import footnotes as plugin_footnotes # type: ignore
from mistune.plugins.table import table as plugin_table # type: ignore

InlineParser = mistune.InlineParser
Expand Down
2 changes: 1 addition & 1 deletion pcbdraw/populate.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import pcbdraw.mdrenderer

from .mistune_shim import mistune # type: ignore
from .mistune_shim import (HTMLRenderer, InlineParser, plugin_footnotes,
from .mistune_shim import (HTMLRenderer, InlineParser, plugin_footnotes, plugin_table) # type: ignore
from .pcbnew_common import fakeKiCADGui
from .plot import find_data_file, get_global_datapaths

Expand Down

0 comments on commit 51ee017

Please sign in to comment.