Skip to content

Commit 3a45c59

Browse files
committed
fix(python): Fix mypy error
Signed-off-by: Steffen Vogel <[email protected]>
1 parent 1af30af commit 3a45c59

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

python/pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ email = '[email protected]'
5252
module = ['google']
5353
ignore_missing_imports = true
5454

55+
[[tool.mypy.overrides]]
56+
module = ['libconf']
57+
ignore_missing_imports = true
58+
59+
5560
[tool.black]
5661
extend-exclude = '''.*(\.pyi|_pb2.py)$'''
5762
line-length = 90

python/villas/node/opal_orchestra_ddf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
try:
1313
import libconf
1414
except ImportError:
15-
from . import libconf
15+
# In case we use a local copy of libconf
16+
from . import libconf # type: ignore
1617

1718

1819
def generate_ddf(node_cfg):

0 commit comments

Comments
 (0)