| Total Complexity | 1 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | 1 | import abc |
|
| 2 | from typing import Any, Dict |
||
| 3 | |||
| 4 | 1 | ||
| 5 | class Condition(metaclass=abc.ABCMeta): |
||
| 6 | """ |
||
| 7 | An abstract parent class for conditions. |
||
| 8 | """ |
||
| 9 | |||
| 10 | 1 | # ------------------------------------------------------------------------------------------------------------------ |
|
| 11 | 1 | @abc.abstractmethod |
|
| 12 | def match(self, row: Dict[str, Any]) -> bool: |
||
| 13 | """ |
||
| 14 | Returns True if the row matches this condition. Returns False otherwise. |
||
| 15 | |||
| 16 | :param row: The row. |
||
| 17 | """ |
||
| 18 | raise NotImplementedError() |
||
| 19 | |||
| 21 |