mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
use slightly simpler enum syntax
This commit is contained in:
parent
10b0c113a4
commit
55cdfc6fd2
1 changed files with 1 additions and 5 deletions
|
|
@ -8,11 +8,7 @@ from typing import Optional
|
||||||
from typing import Tuple
|
from typing import Tuple
|
||||||
from typing import Union
|
from typing import Union
|
||||||
|
|
||||||
|
_Unset = enum.Enum('_Unset', 'UNSET')
|
||||||
class _Unset(enum.Enum):
|
|
||||||
UNSET = 1
|
|
||||||
|
|
||||||
|
|
||||||
UNSET = _Unset.UNSET
|
UNSET = _Unset.UNSET
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue