visitor: simplify default hook
authorDmitry Selyutin <ghostmansd@gmail.com>
Wed, 28 Jun 2023 22:11:55 +0000 (01:11 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Wed, 28 Jun 2023 22:11:55 +0000 (01:11 +0300)
src/mdis/visitor.py

index bb87fd6dbeec2d46bf24ed8355719037e9d31348..b9c205687eb5717d272b4057d37579fae6c9f527 100644 (file)
@@ -15,12 +15,12 @@ class VisitorMeta(dispatcher.DispatcherMeta):
 
 class Visitor(dispatcher.Dispatcher, metaclass=VisitorMeta):
     @dispatcher.Hook(object)
-    def dispatch_object(self, node, *arguments):
+    def dispatch_object(self, node):
         return node
 
 
 class ContextVisitor(Visitor):
     @dispatcher.Hook(object)
     @contextlib.contextmanager
-    def dispatch_object(self, node, *arguments):
+    def dispatch_object(self, node):
         yield node