fix typing

This commit is contained in:
Simon 2023-08-25 15:00:03 +07:00
parent f1e25c9a20
commit 41f6a03751
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
1 changed files with 5 additions and 5 deletions

View File

@ -8,12 +8,12 @@ from home.src.ta.task_manager import TaskManager
class Notifications: class Notifications:
"""notification handler""" """notification handler"""
def __init__(self, name, task_id, task_title): def __init__(self, name: str, task_id: str, task_title: str):
self.name = name self.name: str = name
self.task_id = task_id self.task_id: str = task_id
self.task_title = task_title self.task_title: str = task_title
def send(self): def send(self) -> None:
"""send notifications""" """send notifications"""
apobj = apprise.Apprise() apobj = apprise.Apprise()
hooks: str | None = self.get_url() hooks: str | None = self.get_url()