mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
[3.10] bpo-44559: [Enum] revert enum module to 3.9 (GH-27010)
* [Enum] revert enum module to 3.9
This commit is contained in:
parent
000b9e803a
commit
9bf7c2d638
29 changed files with 1790 additions and 4872 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