diff options
| author | Scott Gasch <[email protected]> | 2021-04-13 13:54:19 -0700 |
|---|---|---|
| committer | Scott Gasch <[email protected]> | 2021-04-13 13:54:19 -0700 |
| commit | 64a9a97fdff29f4bb9eef4e80faaeaa520d59506 (patch) | |
| tree | 753619d47ca5f1b9a5200ce40a72e9a9a52e2f79 /predicate.py | |
| parent | d9863c6fc4dead77ce7c776f4fe1b7b83c85a07b (diff) | |
Create a predicate.py file and a directory write filter predicate
subclass.
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 |
