nagiosplugin icon indicating copy to clipboard operation
nagiosplugin copied to clipboard

Performance class should be a dataclass

Open mpounsett opened this issue 3 years ago • 1 comments

The Performance class inherits from namedtuple and then implements additional methods. This seems like a prime candidate for a dataclass. Care should be taken that re-implementing this doesn't break the API.

mpounsett avatar Feb 07 '22 16:02 mpounsett

Reimplementing this will have to wait until support for python 3.6 is dropped.

mpounsett avatar Feb 12 '22 16:02 mpounsett