Skip to content

Commit 4f62813

Browse files
committed
Fix ty warnings in XML report tests
1 parent ea6d2ee commit 4f62813

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

test/recommend/test_recommend_pipeline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
import javalang
1111
import javalang.tree
12-
from lxml import etree
12+
from lxml import etree # type: ignore[import-untyped]
1313

1414
from aibolit import __main__ as aibolit_main
1515
from aibolit.config import Config

test/scripts/test_calculate_metrics.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ def load_calculate_metrics_module():
1212
raise RuntimeError(f'Failed to load module spec from {script_path}')
1313
if spec.loader is None:
1414
raise RuntimeError(f'Failed to load module loader from {script_path}')
15+
loader = spec.loader
1516
module = importlib.util.module_from_spec(spec)
16-
spec.loader.exec_module(module)
17+
loader.exec_module(module)
1718
return module
1819

1920

0 commit comments

Comments
 (0)