NoSubclassMeta

Contents

NoSubclassMeta#

class brainstate.mixin.NoSubclassMeta(name, bases, classdict)[source]#

Metaclass that prevents a class from being subclassed.

This is used to ensure that certain classes (like ParamDescriber) are used as-is and not extended through inheritance, which could lead to unexpected behavior.

Raises:

TypeError – If an attempt is made to subclass a class using this metaclass.