Skip to content

Commit

Permalink
Fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
danjujan committed Aug 2, 2023
1 parent 66be7da commit afa3356
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions varats/varats/data/reports/llvm_coverage_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -504,10 +504,8 @@ def __contains__(self, element: CodeRegion) -> bool:
class FilenameRegionMapping(tp.Dict[str, CodeRegion]):
"""Mapping from function names to CodeRegion objects."""

def __init__(
self, *args, base_dir: tp.Optional[Path] = None, **kwargs
) -> None:
self.base_dir = base_dir
def __init__(self, *args, base_dir: tp.Optional[Path] = None, **kwargs):

Check failure on line 507 in varats/varats/data/reports/llvm_coverage_report.py

View workflow job for this annotation

GitHub Actions / mypy

[mypy] varats/varats/data/reports/llvm_coverage_report.py#L507

error: Function is missing a type annotation for one or more arguments [no-untyped-def]
Raw output
varats/varats/data/reports/llvm_coverage_report.py:507:5: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
self.base_dir: tp.Optional[Path] = base_dir
super().__init__(*args, **kwargs)

def add(self, region: CodeRegion) -> None:
Expand Down

0 comments on commit afa3356

Please sign in to comment.