From ef613b3c10e148804b28ea2ca311b4986257a08b Mon Sep 17 00:00:00 2001 From: n07070 Date: Wed, 3 Jun 2026 23:51:38 +0200 Subject: [PATCH] Remove print, add task Typing --- src/task.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/task.py b/src/task.py index b7a01f8..9fc38a9 100644 --- a/src/task.py +++ b/src/task.py @@ -38,13 +38,11 @@ class PrintTask(ABC): A print task holds information about what we are looking to print. """ - def __init__(self, task_type): + def __init__(self, task_type: TaskType): self.task_id = self._generate_id() self.task_type = task_type self.status = "pending" # pending, processing, completed, failed - print("Created a new " + str(self.task_type) + " with ID " + self.task_id) - @abstractmethod def get_print_data(self): """Return data formatted for printer"""