Skip to content

Commit

Permalink
build(pylint): Fix pylint consider-using-dict-items warning
Browse files Browse the repository at this point in the history
  • Loading branch information
gfieni committed Mar 7, 2024
1 parent 5231434 commit c2d6aca
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/powerapi/database/prometheus_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,8 @@ def _report_to_measure_and_key(self, report):
return key, value

def _update_exposed_measure(self):
for key in self.exposed_measure:
for key, args in self.exposed_measure.items():

Check warning on line 128 in src/powerapi/database/prometheus_db.py

View check run for this annotation

Codecov / codecov/patch

src/powerapi/database/prometheus_db.py#L128

Added line #L128 was not covered by tests
if key not in self.measure_for_current_period:
args = self.exposed_measure[key]
self.energy_metric.remove(*args)
self.exposed_measure = self.measure_for_current_period
self.measure_for_current_period = {}
Expand Down

0 comments on commit c2d6aca

Please sign in to comment.