Category "metaclass"

Add a mixin to python enum after it's created?

The Problem Suppose I have an enum defined: from enum import Enum, auto class Foo(Enum): DAVE_GROHL = auto() MR_T = auto() and I want to extend this cla

Understanding __init_subclass__

I finally upgraded my python version and I was discovering the new features added. Among other things, I was scratching my head around the new __init_subclass__