From 0f01db13cf3fda54cd2faf5d71e032e45a0dfc0a Mon Sep 17 00:00:00 2001 From: guoci Date: Mon, 27 Oct 2025 10:44:39 -0400 Subject: [PATCH] Add `show_flag_values` in `enum` module. https://docs.python.org/3/library/enum.html#enum.show_flag_values --- stdlib/enum.pyi | 1 + 1 file changed, 1 insertion(+) diff --git a/stdlib/enum.pyi b/stdlib/enum.pyi index 4ac860f5e611..c131c9392393 100644 --- a/stdlib/enum.pyi +++ b/stdlib/enum.pyi @@ -309,6 +309,7 @@ if sys.version_info >= (3, 11): def global_enum(cls: _EnumerationT, update_str: bool = False) -> _EnumerationT: ... def global_enum_repr(self: Enum) -> str: ... def global_flag_repr(self: Flag) -> str: ... + def show_flag_values(value: int) -> list[int]: ... if sys.version_info >= (3, 12): # The body of the class is the same, but the base classes are different.