From 0d37893f1b7d03a4be13bec6e9c8bd787c5a1c57 Mon Sep 17 00:00:00 2001 From: Austin Bingham Date: Wed, 29 May 2024 14:16:46 +0200 Subject: [PATCH] Added __repr__ to the config_changes and result_dep classes. --- doit/task.py | 3 +++ doit/tools.py | 3 +++ 2 files changed, 6 insertions(+) diff --git a/doit/task.py b/doit/task.py index f864d1a7..0fdd15f6 100644 --- a/doit/task.py +++ b/doit/task.py @@ -672,3 +672,6 @@ def result_saver(): if last_success is None: return False return last_success == dep_result + + def __repr__(self): + return 'result_dep("%s")' % self.dep_name diff --git a/doit/tools.py b/doit/tools.py index 1dc4a09f..2d882936 100644 --- a/doit/tools.py +++ b/doit/tools.py @@ -79,6 +79,9 @@ def __call__(self, task, values): return False return (last_success == self.config_digest) + def __repr__(self): + return "config_changed(%r)" % self.config + # uptodate