16 lines
454 B
Python
16 lines
454 B
Python
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
|
|
from typing import Self, Any
|
|
from abc import ABC, abstractmethod
|
|
|
|
class TerminalManagerInterface(ABC):
|
|
|
|
@abstractmethod
|
|
def get_i_command(self, names:str|list[str]|tuple[str, ...]) -> int|None:pass
|
|
|
|
@abstractmethod
|
|
def add(self:Self, inputs:Any|None, overwrite:bool = False) -> None:pass
|
|
|
|
|
|
def close(self:Self, parameters:dict[str, Any|None], *arguments:list[Any|None]) -> None:pass |