From 090f98b3a921ada3620aa56f958d2ff096db7d09 Mon Sep 17 00:00:00 2001 From: yihong0618 Date: Sun, 26 Oct 2025 17:41:00 +0800 Subject: [PATCH] fix: delete unused _stdlib_enums in enum.py Signed-off-by: yihong0618 --- Lib/enum.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Lib/enum.py b/Lib/enum.py index c00ae85d2f8efe..936bcea0619e7d 100644 --- a/Lib/enum.py +++ b/Lib/enum.py @@ -17,7 +17,7 @@ # Dummy value for Enum and Flag as there are explicit checks for them # before they have been created. # This is also why there are checks in EnumType like `if Enum is not None` -Enum = Flag = EJECT = _stdlib_enums = ReprEnum = None +Enum = Flag = EJECT = ReprEnum = None class nonmember(object): """ @@ -2189,5 +2189,3 @@ def _old_convert_(etype, name, module, filter, source=None, *, boundary=None): members.sort(key=lambda t: t[0]) cls = etype(name, members, module=module, boundary=boundary or KEEP) return cls - -_stdlib_enums = IntEnum, StrEnum, IntFlag