From: Dmitry Selyutin Date: Tue, 13 Jun 2023 21:56:56 +0000 (+0300) Subject: dispatcher: forbid using base dispatcher X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a68bea7477050544067030b6359ce86349ca979b;p=mdis.git dispatcher: forbid using base dispatcher --- diff --git a/src/mdis/dispatcher.py b/src/mdis/dispatcher.py index be8e42e..3a5dc6c 100644 --- a/src/mdis/dispatcher.py +++ b/src/mdis/dispatcher.py @@ -43,3 +43,7 @@ class Dispatcher(metaclass=DispatcherMeta): if hook is None: hook = self.__class__.dispatch() return hook(dispatcher=self, instance=instance) + + @_core.hook(object) + def dispatch_object(self, instance): + raise NotImplementedError()