From 5b4881fc7751c58d906b57476cc6ca6ec001d2be Mon Sep 17 00:00:00 2001 From: guoci Date: Thu, 20 Nov 2025 16:31:27 -0500 Subject: [PATCH] [stdlib][enum] add `Flag._numeric_repr_` --- stdlib/enum.pyi | 1 + 1 file changed, 1 insertion(+) diff --git a/stdlib/enum.pyi b/stdlib/enum.pyi index c131c9392393..c6cc5a961ee7 100644 --- a/stdlib/enum.pyi +++ b/stdlib/enum.pyi @@ -255,6 +255,7 @@ _auto_null: Any class Flag(Enum): _name_: str | None # type: ignore[assignment] _value_: int + _numeric_repr_: Callable[[int], str] @_magic_enum_attr def name(self) -> str | None: ... # type: ignore[override] @_magic_enum_attr