1
0
mirror of https://github.com/MarkParker5/STARK.git synced 2024-11-24 08:12:13 +02:00
STARK/General/Singleton.py
MarkParker5 89b60734ed update acobjects
create Notifications and DispatchQueue
2021-11-28 00:06:17 +02:00

10 lines
199 B
Python

from abc import ABC
class Singleton(ABC):
# Singleton
def __new__(cls):
if not hasattr(cls, 'instance'):
cls.instance = super().__new__(cls)
return cls.instance