budosystems.utils.SingletonMeta

class SingletonMeta

Bases: type

Metaclass for single value classes.

Parameters:
  • name – Name of the new singleton class.

  • bases – Base classes from which the new class will inherit.

  • namespace – Namespace that will form the structure of the new class.

  • kwargs

    These parameters will be passed to the constructors of the bases to instantiate

    the singleton value.

    Inherited Members

    • mro

static __new__(mcs: Type[M], cls_name: str, bases: Tuple[type, ...], namespace: dict[str, Any], **_kwargs: Any) M
__init__(cls_name: str, bases: Tuple[type, ...], namespace: dict[str, Any], **kwargs: Any)