Reputation: 11108
I would like to create a new type using type(...)
. How do I provide the Meta class for this type?
Upvotes: 3
Views: 90
Reputation: 26150
You don't provide it to type
as an argument, the metaclass would subclass type
itself, so you would call the metaclass' constructor instead.
Upvotes: 4