types.ClassType
We can provide a custom metaclass by setting
__metaclass__
in a class definition to any callable that takes the same arguments astype
.
When the Python interpreter executes a class statement […], it calls type with the following arguments: