parameters: (self, *items)
docstring: Initialize an Enum.
  
          Parameters
          ----------
          *items
              The allowed values which can be assigned to the enum.
docstring_summary: Initialize an Enum.
docstring_tokens: Initialize an Enum .
function: def __init__(self, *items):
          """Initialize an Enum.
  
          Parameters
          ----------
          *items
              The allowed values which can be assigned to the enum.
  
          """
          if len(items) == 0:
              raise ValueError("an Enum requires at least 1 item")
          self.set_default_value_mode(DefaultValue.Static, items[0])
          self.set_validate_mode(Validate.Enum, items)
function_tokens: def __init__ ( self , * items ) : if len ( items ) == 0 : raise ValueError ( "an Enum requires at least 1 item" ) self . set_default_value_mode ( DefaultValue . Static , items [ 0 ] ) self . set_validate_mode ( Validate . Enum , items )