From ebf704a65e9c467b05f03d3a6ed416ffe9b59f93 Mon Sep 17 00:00:00 2001 From: Zixian Cai <2891235+caizixian@users.noreply.github.com> Date: Mon, 22 Jul 2024 23:12:38 +1000 Subject: [PATCH] Use defaultdict from collections instead of the type object (#154) --- src/running/command/runbms.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/running/command/runbms.py b/src/running/command/runbms.py index 188688b..35dbf03 100644 --- a/src/running/command/runbms.py +++ b/src/running/command/runbms.py @@ -31,6 +31,7 @@ from running.command.fillin import fillin import math import yaml +from collections import defaultdict if TYPE_CHECKING: from running.plugin.runbms import RunbmsPlugin @@ -264,9 +265,9 @@ def run_one_benchmark( for p in plugins.values(): p.start_benchmark(hfac, size, bm) oomed_count: DefaultDict[str, int] - oomed_count = DefaultDict(int) + oomed_count = defaultdict(int) timeout_count: DefaultDict[str, int] - timeout_count = DefaultDict(int) + timeout_count = defaultdict(int) logged_in_users: Set[str] logged_in_users = get_logged_in_users() if len(logged_in_users) > 1: