templates/python: fix type annotations

This commit is contained in:
DavHau
2023-07-21 13:48:37 +02:00
parent e806b5549d
commit ca044a078c
3 changed files with 7 additions and 5 deletions

View File

@@ -4,13 +4,13 @@ import my_lib
# using the fixture from conftest.py
def test_is_git_repo(git_repo_path: str):
def test_is_git_repo(git_repo_path: str) -> None:
result = my_lib.detect_git_repo(git_repo_path)
assert result is True
# using the fixture from conftest.py
def test_is_not_git_repo():
def test_is_not_git_repo() -> None:
with tempfile.TemporaryDirectory() as tempdir:
result = my_lib.detect_git_repo(tempdir)
assert result is False