From 41f6a037514ef3272b49b891c4fd9c70c01e740f Mon Sep 17 00:00:00 2001 From: Simon Date: Fri, 25 Aug 2023 15:00:03 +0700 Subject: [PATCH] fix typing --- tubearchivist/home/src/ta/notify.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tubearchivist/home/src/ta/notify.py b/tubearchivist/home/src/ta/notify.py index d882128..5b1c9c7 100644 --- a/tubearchivist/home/src/ta/notify.py +++ b/tubearchivist/home/src/ta/notify.py @@ -8,12 +8,12 @@ from home.src.ta.task_manager import TaskManager class Notifications: """notification handler""" - def __init__(self, name, task_id, task_title): - self.name = name - self.task_id = task_id - self.task_title = task_title + def __init__(self, name: str, task_id: str, task_title: str): + self.name: str = name + self.task_id: str = task_id + self.task_title: str = task_title - def send(self): + def send(self) -> None: """send notifications""" apobj = apprise.Apprise() hooks: str | None = self.get_url()