walker: update naming conventions
authorDmitry Selyutin <ghostmansd@gmail.com>
Tue, 13 Jun 2023 21:54:35 +0000 (00:54 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Tue, 13 Jun 2023 22:00:50 +0000 (01:00 +0300)
src/mdis/walker.py

index 3adb93c5d3cbf2f71b3a3f090f1ede1dd8886e14..507d9531730d61eba680fcc3879b4457cb22e880 100644 (file)
@@ -8,17 +8,17 @@ class WalkerMeta(_dispatcher.DispatcherMeta):
 
 class Walker(_dispatcher.Dispatcher, metaclass=WalkerMeta):
     @_core.hook(tuple, list, set, frozenset)
-    def sequence(self, instance):
+    def dispatch_sequence(self, instance):
         for item in instance:
             yield item
             yield from self(item)
 
     @_core.hook(dict)
-    def mapping(self, instance):
+    def dispatch_mapping(self, instance):
         for (key, value) in instance.items():
             yield (key, value)
             yield from self((key, value))
 
     @_core.hook(object)
-    def object(self, instance):
+    def dispatch_object(self, instance):
         yield from ()