diff options
Diffstat (limited to 'predicate.py')
| -rw-r--r-- | predicate.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/predicate.py b/predicate.py new file mode 100644 index 0000000..54c0775 --- /dev/null +++ b/predicate.py @@ -0,0 +1,13 @@ +#!/usr/bin/env python3 + +from abc import ABC, abstractmethod +from typing import Any + + +class Predicate(ABC): + def __init__(self): + super().__init__() + + @abstractmethod + def apply(self, item: Any) -> bool: + pass |
