diff --git a/coverage/sqldata.py b/coverage/sqldata.py index 8ef614540..ee8c8544f 100644 --- a/coverage/sqldata.py +++ b/coverage/sqldata.py @@ -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. diff --git a/tests/test_api.py b/tests/test_api.py index f784ef3c5..885831550 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -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