Skip to content

Commit 55cdfc6

Browse files
committed
use slightly simpler enum syntax
1 parent 10b0c11 commit 55cdfc6

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

pre_commit/envcontext.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,7 @@
88
from typing import Tuple
99
from typing import Union
1010

11-
12-
class _Unset(enum.Enum):
13-
UNSET = 1
14-
15-
11+
_Unset = enum.Enum('_Unset', 'UNSET')
1612
UNSET = _Unset.UNSET
1713

1814

0 commit comments

Comments
 (0)