pyrit.common.Singleton#
- class Singleton(name, bases, namespace, /, **kwargs)[source]#
Bases:
ABCMeta
A metaclass for creating singleton classes. A singleton class can only have one instance. If an instance of the class exists, it returns that instance; if not, it creates and returns a new one.
- __init__(*args, **kwargs)#
Methods
__init__
(*args, **kwargs)mro
()Return a type's method resolution order.
register
(subclass)Register a virtual subclass of an ABC.