metaclass
A metaclass is a class whose instances are classes. In object-oriented programming, a metaclass defines the behavior of classes themselves, including how they are created, what attributes they have, and how they participate in inheritance. Metaclasses provide a way to customize class construction and to impose structure or behavior on a group of classes.
In Python, every class has a metaclass, with the default being type. A class can specify a
Metaclasses are commonly used to enforce coding standards, inject common methods, register classes automatically, or implement
A key distinction is that a class is a blueprint for objects, while a metaclass is a