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):