symbrim.core.singleton.Singleton

class symbrim.core.singleton.Singleton(*args: object, **kwargs: dict[str, object])

Bases: object

Makes a class a singleton via inheritance.

Attributes

Methods

__init__

activate

Activate the instance of the class.

deactivate

Deactivate the instance of the class.

__weakref__

list of weak references to the object (if defined)

activate() None

Activate the instance of the class.

deactivate() None

Deactivate the instance of the class.