Moves categorizer into transform module. Puts the categorizer under unit tests.
11 lines
263 B
Python
11 lines
263 B
Python
from abc import ABC, abstractmethod
|
|
from typing import Sequence
|
|
|
|
from pfbudget.db.model import Transaction
|
|
|
|
|
|
class Transformer(ABC):
|
|
@abstractmethod
|
|
def transform(self, _: Sequence[Transaction]) -> Sequence[Transaction]:
|
|
raise NotImplementedError
|