From f41343abe847fa88a4cbb46d856bfc44efa8595a Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Tue, 27 Jun 2023 15:07:59 +0200 Subject: python: Add type hints and fix style in rules scripts --- CC/test/runner | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'CC/test/runner') diff --git a/CC/test/runner b/CC/test/runner index 0647621..fc1f04c 100755 --- a/CC/test/runner +++ b/CC/test/runner @@ -18,14 +18,14 @@ import os import subprocess import time -time_start = time.time() -time_stop = 0 -result = "UNKNOWN" -stderr = "" -stdout = "" +time_start: float = time.time() +time_stop: float = 0 +result: str = "UNKNOWN" +stderr: str = "" +stdout: str = "" -def dump_results(): +def dump_results() -> None: with open("result", "w") as f: f.write("%s\n" % (result, )) with open("time-start", "w") as f: -- cgit v1.2.3