NuRadioReco.utilities.metaclasses module

class NuRadioReco.utilities.metaclasses.Singleton[source]

Bases: type

Can be assigned to classes as a metaclass.

By default, only one instance of a Singleton can exist at a time, as the __call__ method is overwritten to return the existing instance if one exists.

Methods

__call__(*args, **kwargs)

Overwrites the __call__ method

mro(/)

Return a type's method resolution order.

mro(/)

Return a type’s method resolution order.