From 3d88180892e829de2eb921930b75de59d36574e8 Mon Sep 17 00:00:00 2001 From: alemidev Date: Mon, 22 Nov 2021 02:52:51 +0100 Subject: [PATCH] oops call super constructor --- aiocraft/client.py | 1 + aiocraft/traits/callbacks.py | 1 + 2 files changed, 2 insertions(+) diff --git a/aiocraft/client.py b/aiocraft/client.py index dd2b76f..9c2422c 100644 --- a/aiocraft/client.py +++ b/aiocraft/client.py @@ -65,6 +65,7 @@ class MinecraftClient(CallbacksHolder, Runnable): poll_interval:float = 1.0, ): + super().__init__() self.host = host self.port = port diff --git a/aiocraft/traits/callbacks.py b/aiocraft/traits/callbacks.py index 5bbf606..178e0b4 100644 --- a/aiocraft/traits/callbacks.py +++ b/aiocraft/traits/callbacks.py @@ -9,6 +9,7 @@ class CallbacksHolder: _tasks : Dict[str, asyncio.Task] def __init__(self): + super().__init__() self._callbacks = {} def register(self, key:Any, callback:Callable):