Fix mypy errors in report.py

This commit is contained in:
Mikhail f. Shiryaev 2022-11-14 15:47:09 +01:00
parent 9dff6a80ab
commit 080ff97627
No known key found for this signature in database
GPG Key ID: 4B02ED204C7D93F4

View File

@ -229,8 +229,8 @@ def create_test_html_report(
if has_test_logs and not with_raw_logs: if has_test_logs and not with_raw_logs:
headers.append("Logs") headers.append("Logs")
headers = "".join(["<th>" + h + "</th>" for h in headers]) headers_html = "".join(["<th>" + h + "</th>" for h in headers])
test_part = HTML_TEST_PART.format(headers=headers, rows=rows_part) test_part = HTML_TEST_PART.format(headers=headers_html, rows=rows_part)
else: else:
test_part = "" test_part = ""
@ -341,7 +341,7 @@ def create_build_html_report(
if build_result.elapsed_seconds: if build_result.elapsed_seconds:
delta = datetime.timedelta(seconds=build_result.elapsed_seconds) delta = datetime.timedelta(seconds=build_result.elapsed_seconds)
else: else:
delta = "unknown" delta = "unknown" # type: ignore
row += "<td>{}</td>".format(str(delta)) row += "<td>{}</td>".format(str(delta))