[Enum] fix doc string (GH-25376)

This commit is contained in:
Ethan Furman 2021-04-15 06:49:54 -07:00 committed by GitHub
parent 11e0b295de
commit 0dca5eb54b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -310,7 +310,7 @@ class _EnumDict(dict):
pass pass
elif _is_sunder(key): elif _is_sunder(key):
if key not in ( if key not in (
'_order_', '_create_pseudo_member_', '_order_',
'_generate_next_value_', '_missing_', '_ignore_', '_generate_next_value_', '_missing_', '_ignore_',
'_iter_member_', '_iter_member_by_value_', '_iter_member_by_def_', '_iter_member_', '_iter_member_by_value_', '_iter_member_by_def_',
): ):
@ -1131,7 +1131,9 @@ class Flag(Enum, boundary=STRICT):
@classmethod @classmethod
def _missing_(cls, value): def _missing_(cls, value):
""" """
Create a composite member iff value contains only members. Create a composite member containing all canonical members present in `value`.
If non-member values are present, result depends on `_boundary_` setting.
""" """
if not isinstance(value, int): if not isinstance(value, int):
raise ValueError( raise ValueError(