Skip to content

Commit

Permalink
add type annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasdiener committed Apr 10, 2024
1 parent ccbf1ea commit e0d8ea8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test_gather.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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."
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit e0d8ea8

Please sign in to comment.