mirror of
https://github.com/python/cpython.git
synced 2025-08-24 18:55:00 +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
|
@ -27,7 +27,7 @@
|
|||
import sys
|
||||
from _ast import *
|
||||
from contextlib import contextmanager, nullcontext
|
||||
from enum import IntEnum, auto, _simple_enum
|
||||
from enum import IntEnum, auto
|
||||
|
||||
|
||||
def parse(source, filename='<unknown>', mode='exec', *,
|
||||
|
@ -636,8 +636,7 @@ class Param(expr_context):
|
|||
# We unparse those infinities to INFSTR.
|
||||
_INFSTR = "1e" + repr(sys.float_info.max_10_exp + 1)
|
||||
|
||||
@_simple_enum(IntEnum)
|
||||
class _Precedence:
|
||||
class _Precedence(IntEnum):
|
||||
"""Precedence table that originated from python grammar."""
|
||||
|
||||
TUPLE = auto()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue