mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-28 21:12:16 +00:00
deleted leftover file
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
from typing import Dict, Generic, TypeVar
|
||||
|
||||
T = TypeVar("T")
|
||||
|
||||
|
||||
class SingletonMeta(type, Generic[T]):
|
||||
# TODO : check if we want to update this to be thread safe
|
||||
_instances: Dict[T, T] = {}
|
||||
|
||||
def __call__(cls, *args, **kwargs):
|
||||
if cls not in cls._instances:
|
||||
instance = super().__call__(*args, **kwargs)
|
||||
cls._instances[cls] = instance
|
||||
|
||||
return cls._instances[cls]
|
||||
Reference in New Issue
Block a user