We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e31ad68 + 4bbbad6 commit 050d78dCopy full SHA for 050d78d
.ruff.toml
@@ -20,7 +20,6 @@ ignore = [
20
"B008", # function-call-in-default-argument
21
"F401", # unused-import
22
"RUF013", # implicit-optional
23
- "RUF015", # unnecessary-iterable-allocation-for-first-element
24
25
"B010", # set-attr-with-constant
26
"B905", # zip-without-explicit-strict
src/powerapi/dispatch_rule/hwpc_dispatch_rule.py
@@ -98,7 +98,7 @@ def _number_of_core_per_socket(group):
98
:type group: Dict
99
:rtype: int : the number of core per socket in this group
100
"""
101
- return len(list(group.values())[0])
+ return len(next(iter(group.values())))
102
103
104
def _extract_non_shared_group(report):
0 commit comments