mirror of
https://github.com/python/cpython.git
synced 2025-09-09 18:32:22 +00:00
Revert "bpo-38659: [Enum] add _simple_enum decorator (GH-25285)" (GH-25476)
This reverts commit dbac8f40e8
.
This commit is contained in:
parent
dbac8f40e8
commit
503cdc7c12
20 changed files with 34 additions and 871 deletions
|
@ -47,7 +47,7 @@ Typical usage:
|
|||
import os
|
||||
import sys
|
||||
|
||||
from enum import Enum, _simple_enum
|
||||
from enum import Enum
|
||||
|
||||
|
||||
__author__ = 'Ka-Ping Yee <ping@zesty.ca>'
|
||||
|
@ -75,8 +75,7 @@ int_ = int # The built-in int type
|
|||
bytes_ = bytes # The built-in bytes type
|
||||
|
||||
|
||||
@_simple_enum(Enum)
|
||||
class SafeUUID:
|
||||
class SafeUUID(Enum):
|
||||
safe = 0
|
||||
unsafe = -1
|
||||
unknown = None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue