def __add__(self, other: Optional['MacroAverageMetric']) -> 'MacroAverageMetric':
    if (other is None):
        return self
    output = dict(**self._values)
    for (k, v) in other._values.items():
        output[k] = (output.get(k, None) + v)
    return MacroAverageMetric(output)
def __add__(self, other: Optional['MacroAverageMetric']) -> 'MacroAverageMetric':
    if (other is None):
        return self
    output = dict(**self._values)
    for (k, v) in other._values.items():
        output[k] = (output.get(k, None) + v)
    return MacroAverageMetric(output)