core: fix dispatcher argument name
authorDmitry Selyutin <ghostmansd@gmail.com>
Tue, 13 Jun 2023 20:37:49 +0000 (23:37 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Tue, 13 Jun 2023 20:37:49 +0000 (23:37 +0300)
src/mdis/core.py

index d1847d8679f197ca46ff4903d4cc883c82cde3c8..0af0e53c90ee3651eb88dc03fbd5ad193016597e 100644 (file)
@@ -40,8 +40,8 @@ class CallHook(object):
     def call(self):
         return self.__call
 
-    def __call__(self, visitor, instance):
-        return self.__call(visitor, instance)
+    def __call__(self, dispatcher, instance):
+        return self.__call(dispatcher, instance)
 
 
 def hook(*typeids):