Skip to content

Commit 2d835f6

Browse files
committed
update _StrChoiceEnum for click>=8.2.0 Choice options
1 parent 221d302 commit 2d835f6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

orthority/enums.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ def __repr__(self):
3030
def __str__(self):
3131
return self._value_
3232

33+
@property
34+
def name(self):
35+
# override for click>=8.2.0 Choice options which match passed values to Enum names
36+
return self._value_
37+
3338

3439
class CameraType(_StrChoiceEnum):
3540
"""Camera model types."""

0 commit comments

Comments
 (0)