Python Metaclasses: The Class Behind the Class
Demystifying Python metaclasses — from type as the metaclass of all classes, to Singleton patterns, interface enforcement, and when to use __init_subclass__ instead.
Demystifying Python metaclasses — from type as the metaclass of all classes, to Singleton patterns, interface enforcement, and when to use __init_subclass__ instead.