Skip to content

Commit a0dcf22

Browse files
authored
Use defaultdict from collections instead of the type object
1 parent 10d5d2c commit a0dcf22

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/running/command/runbms.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
from running.command.fillin import fillin
3232
import math
3333
import yaml
34+
from collections import defaultdict
3435

3536
if TYPE_CHECKING:
3637
from running.plugin.runbms import RunbmsPlugin
@@ -264,9 +265,9 @@ def run_one_benchmark(
264265
for p in plugins.values():
265266
p.start_benchmark(hfac, size, bm)
266267
oomed_count: DefaultDict[str, int]
267-
oomed_count = DefaultDict(int)
268+
oomed_count = defaultdict(int)
268269
timeout_count: DefaultDict[str, int]
269-
timeout_count = DefaultDict(int)
270+
timeout_count = defaultdict(int)
270271
logged_in_users: Set[str]
271272
logged_in_users = get_logged_in_users()
272273
if len(logged_in_users) > 1:

0 commit comments

Comments
 (0)