oops call super constructor

This commit is contained in:
əlemi 2021-11-22 02:52:51 +01:00
parent 540dbd5d90
commit 3d88180892
2 changed files with 2 additions and 0 deletions

View file

@ -65,6 +65,7 @@ class MinecraftClient(CallbacksHolder, Runnable):
poll_interval:float = 1.0, poll_interval:float = 1.0,
): ):
super().__init__()
self.host = host self.host = host
self.port = port self.port = port

View file

@ -9,6 +9,7 @@ class CallbacksHolder:
_tasks : Dict[str, asyncio.Task] _tasks : Dict[str, asyncio.Task]
def __init__(self): def __init__(self):
super().__init__()
self._callbacks = {} self._callbacks = {}
def register(self, key:Any, callback:Callable): def register(self, key:Any, callback:Callable):