Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add both bin and show_flag_values to __all__
  • Loading branch information
guoci committed Oct 30, 2025
commit 0c30a27c8d6179bcc438fcedf9f3ecfe6a97de95
1 change: 1 addition & 0 deletions Lib/enum.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
'global_flag_repr', 'global_enum_repr', 'global_str', 'global_enum',
'EnumCheck', 'CONTINUOUS', 'NAMED_FLAGS', 'UNIQUE',
'pickle_by_global_name', 'pickle_by_enum_name', 'show_flag_values',
'bin',
]


Expand Down
2 changes: 1 addition & 1 deletion Lib/test/test_enum.py
Original file line number Diff line number Diff line change
Expand Up @@ -5324,7 +5324,7 @@ def __new__(cls, value, label):
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):
Expand Down
Loading