Lines Matching refs:classdict
135 def __new__(metacls, cls, bases, classdict): argument
142 classdict.setdefault('_ignore_', []).append('_ignore_')
143 ignore = classdict['_ignore_']
145 classdict.pop(key, None)
147 __new__, save_new, use_args = metacls._find_new_(classdict, member_type,
152 enum_members = {k: classdict[k] for k in classdict._member_names}
153 for name in classdict._member_names:
154 del classdict[name]
157 _order_ = classdict.pop('_order_', None)
166 if '__doc__' not in classdict:
167 classdict['__doc__'] = 'An enumeration.'
170 enum_class = super().__new__(metacls, cls, bases, classdict)
194 if '__reduce_ex__' not in classdict:
205 for member_name in classdict._member_names:
404 classdict = metacls.__prepare__(class_name, bases)
423 classdict[member_name] = member_value
424 enum_class = metacls.__new__(metacls, class_name, bases, classdict)
475 def _find_new_(classdict, member_type, first_enum): argument
486 __new__ = classdict.get('__new__', None)