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:
@@ -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',
|
||||
]
|
||||
|
||||
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
Add :func:`enum.show_flag_values` and ``enum.bin`` to ``enum.__all__``.
|
||||
Reference in New Issue
Block a user