Skip to content

Commit

Permalink
Merge pull request #1691 from pre-commit/slightly_simpler_enum
Browse files Browse the repository at this point in the history
use slightly simpler enum syntax
  • Loading branch information
asottile committed Nov 9, 2020
2 parents e836e55 + 55cdfc6 commit 8d28c9a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pre_commit/envcontext.py
Expand Up @@ -8,11 +8,7 @@
from typing import Tuple
from typing import Union


class _Unset(enum.Enum):
UNSET = 1


_Unset = enum.Enum('_Unset', 'UNSET')
UNSET = _Unset.UNSET


Expand Down

0 comments on commit 8d28c9a

Please sign in to comment.