Skip to content

Commit 14b7a78

Browse files
committed
Add type annotations required by mypy
1 parent 85845ec commit 14b7a78

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

coverage/sqldata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ def touch_files(self, filenames: Iterable[str], plugin_name: Optional[str] = Non
615615
# Set the tracer for this file
616616
self.add_file_tracers({filename: plugin_name})
617617

618-
def purge_files(self, filenames, context=None):
618+
def purge_files(self, filenames: Iterable[str], context: Optional[str] = None) -> None:
619619
"""Purge any existing coverage data for the given `filenames`.
620620
621621
If `context` is given, purge only data associated with that measurement context.

tests/test_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ def test_purge_filenames_context(self) -> None:
802802
""")
803803
fn2 = os.path.join(self.temp_dir, fn2)
804804

805-
def dummy_function():
805+
def dummy_function() -> None:
806806
unused = 42
807807

808808
# Start/stop since otherwise cantext

0 commit comments

Comments
 (0)