summaryrefslogtreecommitdiff
path: root/tests/functional/r/regression/regression_2306_enum_value.py
blob: 0cc23c2db78c4e50cf3bf8b81c94165f03fe0006 (plain)
1
2
3
4
5
6
7
8
9
10
11
# pylint: disable=missing-docstring,invalid-name

from enum import Enum

class Color(Enum):
    red = 1
    green = 2
    blue = 3

    def __lt__(self, other):
        return self.value < other.value