Skip to content

Commit

Permalink
Add type annotations required by mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
sdeibel committed Jan 31, 2023
1 parent 85845ec commit 14b7a78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion coverage/sqldata.py
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ def touch_files(self, filenames: Iterable[str], plugin_name: Optional[str] = Non
# Set the tracer for this file
self.add_file_tracers({filename: plugin_name})

def purge_files(self, filenames, context=None):
def purge_files(self, filenames: Iterable[str], context: Optional[str] = None) -> None:
"""Purge any existing coverage data for the given `filenames`.
If `context` is given, purge only data associated with that measurement context.
Expand Down
2 changes: 1 addition & 1 deletion tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,7 @@ def test_purge_filenames_context(self) -> None:
""")
fn2 = os.path.join(self.temp_dir, fn2)

def dummy_function():
def dummy_function() -> None:
unused = 42

# Start/stop since otherwise cantext
Expand Down

0 comments on commit 14b7a78

Please sign in to comment.