use slightly simpler enum syntax

This commit is contained in:
Anthony Sottile 2020-11-09 12:29:57 -08:00
parent 10b0c113a4
commit 55cdfc6fd2

View file

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