NucelarMonitor/Python/Interfaces/Managers/DispatchersManagerInterface.py

16 lines
452 B
Python

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from typing import Any, Self, TypeVar
from abc import ABC, abstractmethod
from Abstracts.DispatcherAbstract import DispatcherAbstract
T = TypeVar("T", bound = DispatcherAbstract)
class DispatchersManagerInterface(ABC):
@abstractmethod
def get(self:Self, Type:type[T], key:str) -> T|None:pass
@abstractmethod
def add(self:Self, inputs:Any|None, overwrite:bool = False) -> None:pass