From c3b20008c1fc9043cffee7839531395e73a1f1e4 Mon Sep 17 00:00:00 2001 From: Matthias Diener Date: Wed, 10 Apr 2024 15:08:13 -0500 Subject: [PATCH] add type annotations --- test/test_gather.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test_gather.py b/test/test_gather.py index 3d61bcc..211c1e9 100644 --- a/test/test_gather.py +++ b/test/test_gather.py @@ -11,7 +11,7 @@ def __call__(self) -> int: return 15 -def create_log(filename: str): +def create_log(filename: str) -> None: logmgr = LogManager(filename, "wo") # Generic run metadata, such as command line, host, and time @@ -40,7 +40,7 @@ def create_log(filename: str): logmgr.close() -def test_auto_gather_single(): +def test_auto_gather_single() -> None: # run example create_log("log.sqlite") assert os.path.exists("log.sqlite"), "The logging file was not generated." @@ -91,7 +91,7 @@ def test_auto_gather_single(): os.remove("log.sqlite") -def test_auto_gather_multi(): +def test_auto_gather_multi() -> None: # run example def is_unique_filename(str: str): return str.startswith("multi-log")