API refactor
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-10-07 16:25:52 +09:00
parent 76d0d86211
commit 91c7e04474
1171 changed files with 81940 additions and 44117 deletions

View File

@@ -38,6 +38,7 @@ class MetricName(object):
# as messages are sent we record the sizes
sensor.record(message_size)
"""
__slots__ = ('_name', '_group', '_description', '_tags', '_hash')
def __init__(self, name, group, description=None, tags=None):
"""
@@ -93,7 +94,7 @@ class MetricName(object):
return True
if other is None:
return False
return (type(self) == type(other) and
return (isinstance(self, type(other)) and
self.group == other.group and
self.name == other.name and
self.tags == other.tags)