Merge pull request #1691 from pre-commit/slightly_simpler_enum

use slightly simpler enum syntax
This commit is contained in:
Anthony Sottile 2020-11-09 13:24:05 -08:00 committed by GitHub
commit 8d28c9ab40
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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