diff options
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/enum.rst | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Doc/library/enum.rst b/Doc/library/enum.rst index 52ef009..5db5639 100644 --- a/Doc/library/enum.rst +++ b/Doc/library/enum.rst @@ -124,9 +124,18 @@ Module Contents Enum class decorator that checks user-selectable constraints on an enumeration. + :func:`member` + + Make `obj` a member. Can be used as a decorator. + + :func:`nonmember` + + Do not make `obj` a member. Can be used as a decorator. + .. versionadded:: 3.6 ``Flag``, ``IntFlag``, ``auto`` .. versionadded:: 3.11 ``StrEnum``, ``EnumCheck``, ``FlagBoundary``, ``property`` +.. versionadded:: 3.11 ``member``, ``nonmember`` --------------- @@ -791,6 +800,18 @@ Utilities and Decorators .. versionadded:: 3.11 +.. decorator:: member + + A decorator for use in enums: it's target will become a member. + + .. versionadded:: 3.11 + +.. decorator:: nonmember + + A decorator for use in enums: it's target will not become a member. + + .. versionadded:: 3.11 + --------------- Notes |