projects
/
mdis.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a28cb1
)
dispatcher: forbid using base dispatcher
author
Dmitry Selyutin
<ghostmansd@gmail.com>
Tue, 13 Jun 2023 21:56:56 +0000
(
00:56
+0300)
committer
Dmitry Selyutin
<ghostmansd@gmail.com>
Tue, 13 Jun 2023 22:01:14 +0000
(
01:01
+0300)
src/mdis/dispatcher.py
patch
|
blob
|
history
diff --git
a/src/mdis/dispatcher.py
b/src/mdis/dispatcher.py
index be8e42e3e0f2ba1bdadb46853b95190982d3d27b..3a5dc6ce8419cac76654c9b71593e89a014bcd3c 100644
(file)
--- 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()