Skip to content

Commit

Permalink
Use defaultdict from collections instead of the type object (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
caizixian authored Jul 22, 2024
1 parent 10d5d2c commit ebf704a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/running/command/runbms.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit ebf704a

Please sign in to comment.