File size: 286 Bytes
46b3240
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from abc import ABC, abstractmethod
from models import Task


class InputProvider(ABC):
    """Abstract interface for all input sources."""

    @abstractmethod
    def get_input(self) -> Task:
        pass

    @abstractmethod
    def is_done(self) -> bool:
        pass