mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-14 13:00:10 -06:00
use slightly simpler enum syntax
This commit is contained in:
@@ -8,11 +8,7 @@ from typing import Optional
|
||||
from typing import Tuple
|
||||
from typing import Union
|
||||
|
||||
|
||||
class _Unset(enum.Enum):
|
||||
UNSET = 1
|
||||
|
||||
|
||||
_Unset = enum.Enum('_Unset', 'UNSET')
|
||||
UNSET = _Unset.UNSET
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user