Skip to content
Snippets Groups Projects
Commit 77008929 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

bugfix!

parent 1debadc0
No related branches found
No related tags found
No related merge requests found
# v2.4.3
* better test coverage
* bugfix release - add_labels would modify the result's hash!
# v2.4.2
......
__version__ = '2.4.3rc1'
__version__ = '2.4.3'
......@@ -63,8 +63,11 @@ class MetricData(JSONAble):
class MetricDataCollection(JSONAble):
def add_labels(self, labels: dict) -> None:
output = set()
for child in self.values:
child.add_labels(labels)
output.add(child)
self.values = output
def __repr__(self):
return 'MetricDataCollection(%s)' % (repr(self.values, ))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment