gh-140766: [Enum] add show_flag_values and bin to enum.__all__ (GH-140765)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
Guo Ci
2025-10-30 13:32:55 -04:00
committed by GitHub
parent 95a3564869
commit e4deefbb2f
3 changed files with 4 additions and 2 deletions

View File

@@ -10,7 +10,8 @@ __all__ = [
'FlagBoundary', 'STRICT', 'CONFORM', 'EJECT', 'KEEP',
'global_flag_repr', 'global_enum_repr', 'global_str', 'global_enum',
'EnumCheck', 'CONTINUOUS', 'NAMED_FLAGS', 'UNIQUE',
'pickle_by_global_name', 'pickle_by_enum_name',
'pickle_by_global_name', 'pickle_by_enum_name', 'show_flag_values',
'bin',
]

View File

@@ -5324,7 +5324,7 @@ class TestStdLib(unittest.TestCase):
class MiscTestCase(unittest.TestCase):
def test__all__(self):
support.check__all__(self, enum, not_exported={'bin', 'show_flag_values'})
support.check__all__(self, enum)
@cpython_only
def test_lazy_import(self):

View File

@@ -0,0 +1 @@
Add :func:`enum.show_flag_values` and ``enum.bin`` to ``enum.__all__``.