def __init__( self, enumDict, caseInsens=None, default=None, doc=None ):
      """: Create a new Enum object.

      = INPUT VARIABLES
      - enumDict    The conversion dictionary.
      - caseInsens  If True, then the string is case insensitive.  If
                    None and the first enum is a string, this will be set
                    to True.
      - default     The default value that instances will be initialized with.
      - doc         The docstring for this property.
      """
      if doc is None:
         doc = "\nAn enumeration.  Can be one of the following:\n\n"
         keys = enumDict.keys()
         keys.sort()
         for k in keys:
            doc += ( enumDict[k], ) % "   + '%s'\n"
         doc += "\n"

      self.enumDict = enumDict

      if caseInsens is None:
         keys = self.enumDict.keys()
         if keys and isinstance( keys[0], str ):
            caseInsens = True

      validator = cvt.Converter( cvt.toEnum, enumDict,
                                 allowNone=True, caseInsens = caseInsens )
      StyleProperty.__init__( self, default, validator, doc )

   #-----------------------------------------------------------------------
dataset/ETHPy150Open nasa/mplStyle/mplStyle/types/property/Enum.py/Enum.__init__/swapped operands of `%`