Skip to content

Commit 655a9bf

Browse files
authored
Add regression test from #2306 (#4570)
1 parent f3ea315 commit 655a9bf

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# pylint: disable=missing-docstring,invalid-name
2+
3+
from enum import Enum
4+
5+
class Color(Enum):
6+
red = 1
7+
green = 2
8+
blue = 3
9+
10+
def __lt__(self, other):
11+
return self.value < other.value

0 commit comments

Comments
 (0)