<s> """<STR_LIT>""" <EOL> __version__ = "<STR_LIT>" <EOL> from . . StyleProperty import StyleProperty <EOL> from . . import convert as cvt <EOL> __all__ = [ '<STR_LIT>' ] <EOL> class Enum ( StyleProperty ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , enumDict , caseInsens = None , default = None , doc = None ) : <EOL> """<STR_LIT>""" <EOL> if doc is None : <EOL> doc = "<STR_LIT>" <EOL> keys = enumDict . keys ( ) <EOL> keys . sort ( ) <EOL> for k in keys : <EOL> doc += "<STR_LIT>" % ( enumDict [ k ] , ) <EOL> doc += "<STR_LIT:\n>" <EOL> self . enumDict = enumDict <EOL> if caseInsens is None : <EOL> keys = self . enumDict . keys ( ) <EOL> if keys and isinstance ( keys [ <NUM_LIT:0> ] , str ) : <EOL> caseInsens = True <EOL> validator = cvt . Converter ( cvt . toEnum , enumDict , <EOL> allowNone = True , caseInsens = caseInsens ) <EOL> StyleProperty . __init__ ( self , default , validator , doc ) </s>
