You've already forked STARK
mirror of
https://github.com/MarkParker5/STARK.git
synced 2025-11-28 21:39:53 +02:00
10 lines
199 B
Python
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
|