fix: fix mypy warning about representation of bytes

This commit is contained in:
Really Him
2025-05-12 23:28:26 -04:00
parent 1e7d4bc254
commit c53b53030d

View File

@@ -102,10 +102,10 @@ def git_log(repo: git.Repo, max_count: int = 10) -> list[str]:
log = []
for commit in commits:
log.append(
f"Commit: {commit.hexsha}\n"
f"Author: {commit.author}\n"
f"Commit: {commit.hexsha!r}\n"
f"Author: {commit.author!r}\n"
f"Date: {commit.authored_datetime}\n"
f"Message: {commit.message}\n"
f"Message: {commit.message!r}\n"
)
return log