diff --git a/src/trackbert/classes/notifier.py b/src/trackbert/classes/notifier.py index ca11c67..e224f6b 100644 --- a/src/trackbert/classes/notifier.py +++ b/src/trackbert/classes/notifier.py @@ -1,5 +1,5 @@ class BaseNotifier: - def __init__(self, *args, **kwargs): + def __init__(self, **kwargs): pass def notify(self, title: str, message: str, urgent: bool = False) -> None: diff --git a/src/trackbert/notifiers/matrix.py b/src/trackbert/notifiers/matrix.py index cbd31de..1bc8c26 100644 --- a/src/trackbert/notifiers/matrix.py +++ b/src/trackbert/notifiers/matrix.py @@ -7,8 +7,8 @@ from ..classes.notifier import BaseNotifier class Matrix(BaseNotifier): - def __init__(self, config: Dict[str, Any], *args, **kwargs): - self.config = config + def __init__(self, **kwargs): + self.config = kwargs["config"] def enabled(self) -> bool: return bool(self.config) diff --git a/src/trackbert/notifiers/notify_send.py b/src/trackbert/notifiers/notify_send.py index 26e4dfc..ddba22d 100644 --- a/src/trackbert/notifiers/notify_send.py +++ b/src/trackbert/notifiers/notify_send.py @@ -8,7 +8,7 @@ from pathlib import Path class NotifySend(BaseNotifier): - def __init__(self, *args, **kwargs): + def __init__(self, **kwargs): pass def notify(