CXCV/Python/Interfaces/Managers/ControllersManagerInterface.py

16 lines
460 B
Python

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