pass args kwargs in notifier

This commit is contained in:
əlemi 2022-04-19 02:36:21 +02:00
parent 49fe4f185f
commit 6813181800
No known key found for this signature in database
GPG key ID: BBCBFE5D7244634E

View file

@ -87,7 +87,8 @@ class Addon:
class Notifier(Addon): # TODO this should be an Addon too! class Notifier(Addon): # TODO this should be an Addon too!
_report_functions : List[Callable] _report_functions : List[Callable]
def __init__(self): def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self._report_functions = [] self._report_functions = []
def add_reporter(self, fn:Callable): def add_reporter(self, fn:Callable):