- annotations = [
- ['celsius', 'Temperature in degrees Celsius'],
- ['kelvin', 'Temperature in Kelvin'],
- ['text-verbose', 'Human-readable text (verbose)'],
- ['text', 'Human-readable text'],
- ['warnings', 'Human-readable warnings'],
- ]
-
- def __init__(self, **kwargs):
+ annotations = (
+ ('celsius', 'Temperature in degrees Celsius'),
+ ('kelvin', 'Temperature in Kelvin'),
+ ('text-verbose', 'Human-readable text (verbose)'),
+ ('text', 'Human-readable text'),
+ ('warnings', 'Human-readable warnings'),
+ )
+
+ def __init__(self):
+ self.reset()
+
+ def reset(self):