Skip to content

Commit e4deefb

Browse files
guociAlexWaygood
andauthored
gh-140766: [Enum] add show_flag_values and bin to enum.__all__ (GH-140765)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
1 parent 95a3564 commit e4deefb

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

Lib/enum.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
'FlagBoundary', 'STRICT', 'CONFORM', 'EJECT', 'KEEP',
1111
'global_flag_repr', 'global_enum_repr', 'global_str', 'global_enum',
1212
'EnumCheck', 'CONTINUOUS', 'NAMED_FLAGS', 'UNIQUE',
13-
'pickle_by_global_name', 'pickle_by_enum_name',
13+
'pickle_by_global_name', 'pickle_by_enum_name', 'show_flag_values',
14+
'bin',
1415
]
1516

1617

Lib/test/test_enum.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5324,7 +5324,7 @@ def __new__(cls, value, label):
53245324
class MiscTestCase(unittest.TestCase):
53255325

53265326
def test__all__(self):
5327-
support.check__all__(self, enum, not_exported={'bin', 'show_flag_values'})
5327+
support.check__all__(self, enum)
53285328

53295329
@cpython_only
53305330
def test_lazy_import(self):
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add :func:`enum.show_flag_values` and ``enum.bin`` to ``enum.__all__``.

0 commit comments

Comments
 (0)