Skip to content

Commit e9d6d4b

Browse files
committed
Move typing ignore config to where canmatrix is used.
This should have the advantage of affecting various type checkers, not only mypy. When the upstream canmatrix package does support type hints (work is underway), this place is likely to get noticed and the comment removed.
1 parent 34a3cc9 commit e9d6d4b

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

canopen/pdo/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def export(self, filename):
9898
:rtype: canmatrix.canmatrix.CanMatrix
9999
"""
100100
try:
101-
from canmatrix import canmatrix
101+
from canmatrix import canmatrix # type:ignore # (typing still in progress)
102102
from canmatrix import formats
103103
except ImportError:
104104
raise NotImplementedError("This feature requires the 'canopen[db_export]' feature")

pyproject.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,3 @@ exclude = [
5656
"^test*",
5757
"^setup.py*",
5858
]
59-
60-
[[tool.mypy.overrides]]
61-
module = ["canmatrix.*"]
62-
ignore_missing_imports = true

0 commit comments

Comments
 (0)