Searched refs:metacls (Results 1 – 3 of 3) sorted by relevance
/third_party/python/Lib/ |
D | enum.py | 166 def __prepare__(metacls, cls, bases, **kwds): argument 168 metacls._check_for_existing_members(cls, bases) 173 member_type, first_enum = metacls._get_mixins_(cls, bases) 180 def __new__(metacls, cls, bases, classdict, **kwds): argument 191 member_type, first_enum = metacls._get_mixins_(cls, bases) 192 __new__, save_new, use_args = metacls._find_new_( 215 enum_class = super().__new__(metacls, cls, bases, classdict, **kwds) 495 metacls = cls.__class__ 498 classdict = metacls.__prepare__(class_name, bases) 518 enum_class = metacls.__new__(metacls, class_name, bases, classdict)
|
/third_party/python/Lib/test/ |
D | test_enum.py | 1205 def __new__(metacls, cls, bases, classdict): argument 1221 return super(auto_enum, metacls).__new__( 1222 metacls, cls, bases, temp)
|
D | test_grammar.py | 467 def __prepare__(metacls, name, bases, **kwds): argument
|