Skip to content

Commit 3796ea3

Browse files
committed
ui: fix pyrefly str to LiteralString conversion error
Get rid of pyrefly error messages inside ui, caused by a type mismatch between list[LiteralString] and the str type messages added to it. Signed-off-by: Andrea Cervesato <andrea.cervesato@suse.com>
1 parent 6ac2644 commit 3796ea3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libkirk/ui.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,9 @@ async def suite_completed(self, results: SuiteResults, exec_time: float) -> None
159159
duration = self._user_friendly_duration(results.exec_time)
160160
exec_time_uf = self._user_friendly_duration(exec_time)
161161

162-
message = []
162+
message: list[str] = []
163163
message.append(" " * 128)
164+
164165
message.append(f"Execution time: {exec_time_uf}\n")
165166
message.append(f"\tSuite: {results.suite.name}")
166167
message.append(f"\tTotal runs: {len(results.suite.tests)}")

0 commit comments

Comments
 (0)