AnP/Python/Interfaces/Managers/PseudoLoRAsManagerInterface.py

20 lines
541 B
Python

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from typing import Self, Any, Callable
from abc import ABC, abstractmethod
from Models.PseudoLoRAModel import PseudoLoRAModel
class PseudoLoRAsManagerInterface(ABC):
@abstractmethod
def update(self:Self) -> None:pass
@abstractmethod
def add(self:Self, inputs:Any|None) -> None:pass
@abstractmethod
def clean_cache(self:Self) -> None:pass
@abstractmethod
def get(self:Self, callback:Callable[[list[PseudoLoRAModel]], bool]) -> list[tuple[str, str]]:pass