From 6488b0dbb4bd26b8804b332d7ca42cee89d0d036 Mon Sep 17 00:00:00 2001 From: Jan Schmitz <44864658+danjujan@users.noreply.github.com> Date: Wed, 25 Oct 2023 14:52:13 +0200 Subject: [PATCH] Fix mypy + pylint --- varats/varats/data/reports/llvm_coverage_report.py | 2 +- varats/varats/plots/llvm_coverage_plot.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/varats/varats/data/reports/llvm_coverage_report.py b/varats/varats/data/reports/llvm_coverage_report.py index 7461d4962..c740be68c 100644 --- a/varats/varats/data/reports/llvm_coverage_report.py +++ b/varats/varats/data/reports/llvm_coverage_report.py @@ -818,7 +818,7 @@ def parse_instrs(self, ignore_conditions: bool = True) -> None: self._annotate_vara_instr(vara_instr) def _annotate_vara_instr(self, vara_instr: VaraInstr) -> None: - source_file = vara_instr.source_file + source_file = str(vara_instr.source_file) # Convert absolute paths to relative paths when possible try: relative_path = Path(source_file).relative_to(self.absolute_path) diff --git a/varats/varats/plots/llvm_coverage_plot.py b/varats/varats/plots/llvm_coverage_plot.py index 1d39f447b..bdac8003c 100644 --- a/varats/varats/plots/llvm_coverage_plot.py +++ b/varats/varats/plots/llvm_coverage_plot.py @@ -723,7 +723,7 @@ def _save_plot( workaround for workaround, value in workarounds.items() if value ).replace('_', '-') - workaround_dir = (binary_dir / f"{name}: {text}") + workaround_dir = binary_dir / f"{name}: {text}" workaround_dir.mkdir(parents=True) feature_annotations = \