From 1c536c44b1b21547bad931bd1a3b188c9693746e Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Fri, 13 Nov 2020 19:05:26 +0100 Subject: [PATCH] Adding a todo --- autopipe/autopipe.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/autopipe/autopipe.py b/autopipe/autopipe.py index 0e9fa65..d6224a5 100644 --- a/autopipe/autopipe.py +++ b/autopipe/autopipe.py @@ -38,6 +38,11 @@ class Autopipe: handler = next((x for x in self.handlers if x[1](data)), None) if handler is None: return coordinator.default_handler(data) + # TODO rename handler interceptors + # TODO use a pipe array as the base pipe selector + # TODO allow anonymous pipe (a function instead of a pipe in the array) + # TODO use the Output() class to end the pipeline, without this the default_handler is used for next items + # TODO change the default_handler error to ask if the Output() was forgotten return handler(data) def pipe_handler(self, f, selector: Callable[[APData], bool]):